mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
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:
parent
447e1d99f9
commit
5a02c32d7d
1 changed files with 1 additions and 1 deletions
|
@ -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") ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue