aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-05-31 15:11:26 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-05-31 15:13:14 +0200
commitf416b0e59dfebdd852bd7fba782eb9de54044ea6 (patch)
treeb8e138b7fd5c3fbd916d94f4307fd5e701385ac3 /netwatch-notify.rsc
parent1568df3b4f16837427dc2b6018347f35caf55100 (diff)
netwatch-notify: ignore status 'unknown'
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r--netwatch-notify.rsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 3f47304..910fb73 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -62,7 +62,7 @@ $ScriptLock $0;
:set NetwatchNotify ({});
}
-:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled ] do={
+:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled status!="unknown" ] do={
:local HostVal [ /tool/netwatch/get $Host ];
:local Type [ $IfThenElse ($HostVal->"type" ~ "^(https?-get|tcp-conn)\$") "service" "host" ];
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];