aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-18 00:01:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-18 00:01:51 +0200
commit1bac1b4d3d91c366842437cc477274b7c7d40d3f (patch)
treebb9f0894646081841b5890ab3f413c8d5a096413
parentb27d875111271743be939368935ab28d93eae042 (diff)
netwatch-notify: ignore disabled hosts
-rw-r--r--netwatch-notify2
1 files changed, 1 insertions, 1 deletions
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");