mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-28 20:30:05 +02:00
netwatch-notify: ignore disabled hosts
This commit is contained in:
parent
b27d875111
commit
1bac1b4d3d
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
: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 HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
||||
:local HostName ($HostInfo->"hostname");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue