aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--doc/netwatch-notify.md2
-rw-r--r--netwatch-notify.rsc6
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/netwatch-notify.md b/doc/netwatch-notify.md
index 6df233b..efae5cf 100644
--- a/doc/netwatch-notify.md
+++ b/doc/netwatch-notify.md
@@ -3,6 +3,8 @@ Notify on host up and down
[⬅️ Go back to main README](../README.md)
+[![required RouterOS version](https://img.shields.io/badge/RouterOS-7.9beta4-yellow?style=flat)](https://mikrotik.com/download/changelogs/)
+
> ℹ️ **Info**: This script can not be used on its own but requires the base
> installation. See [main README](../README.md) for details.
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 ({});
}