aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-05-31 15:24:16 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-06-28 11:29:02 +0200
commit6247b739a127c7c37dbcd50c1392c05e3a34a681 (patch)
treeb701f0fc54c3e310ef85f489feec3894abd968ca /netwatch-notify.rsc
parent3ed124a013cdfa46f7f36713262f316803d469c4 (diff)
netwatch-notify: drop the delay on startup...routeros-7.9beta4-6
... now that in RouterOS 7.9 netwatch itself comes with a startup-delay. Hosts in state 'unknown' are just ignored.
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r--netwatch-notify.rsc6
1 files changed, 2 insertions, 4 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 910fb73..15a17b2 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -3,6 +3,8 @@
# Copyright (c) 2020-2023 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.9beta4
+#
# monitor netwatch and send notifications
# https://git.eworm.de/cgit/routeros-scripts/about/doc/netwatch-notify.md
@@ -54,10 +56,6 @@ $ScriptLock $0;
:local ScriptFromTerminalCached [ $ScriptFromTerminal $0 ];
-:if ([ /system/resource/get uptime ] < 5m) do={
- $LogPrintExit2 info $0 ("System just booted, giving netwatch some time to settle.") true;
-}
-
:if ([ :typeof $NetwatchNotify ] = "nothing") do={
:set NetwatchNotify ({});
}