netwatch-notify: properly check for disabled state

Looks like checking for 'disabled=no' fails with net netwatch
in RouterOS 7.4...
This commit is contained in:
Christian Hesse 2022-07-05 15:30:39 +02:00
parent 447e1d99f9
commit 5a02c32d7d

View file

@ -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") ];