From 1bac1b4d3d91c366842437cc477274b7c7d40d3f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 18 Jul 2020 00:01:51 +0200 Subject: netwatch-notify: ignore disabled hosts --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwatch-notify b/netwatch-notify index 0f464a9..898ca99 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -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"); -- cgit v1.2.3-54-g00ecf