From 5a02c32d7d0c5d8b0951898e040b7918ff1b560a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 5 Jul 2022 15:30:39 +0200 Subject: netwatch-notify: properly check for disabled state Looks like checking for 'disabled=no' fails with net netwatch in RouterOS 7.4... --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwatch-notify b/netwatch-notify index 45b0c76..d9b8cf0 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -54,7 +54,7 @@ $ScriptLock $0; :set NetwatchNotify [ :toarray "" ]; } -:foreach Host in=[ /tool/netwatch/find where comment~"notify" disabled=no ] do={ +:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled ] do={ :local HostVal [ /tool/netwatch/get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; -- cgit v1.2.3-54-g00ecf