netwatch-notify: ignore disabled hosts

This commit is contained in:
Christian Hesse 2020-07-18 00:01:51 +02:00
parent b27d875111
commit 1bac1b4d3d

View file

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