mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
netwatch-notify: ignore disabled hosts
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
:set NetwatchNotify [ :toarray "" ];
|
:set NetwatchNotify [ :toarray "" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Host in=[ / tool netwatch find where comment~"^notify," ] do={
|
:foreach Host in=[ / tool netwatch find where comment~"^notify," disabled=no ] do={
|
||||||
:local HostVal [ / tool netwatch get $Host ];
|
:local HostVal [ / tool netwatch get $Host ];
|
||||||
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
||||||
:local HostName ($HostInfo->"hostname");
|
:local HostName ($HostInfo->"hostname");
|
||||||
|
Reference in New Issue
Block a user