From f416b0e59dfebdd852bd7fba782eb9de54044ea6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 31 May 2023 15:11:26 +0200 Subject: netwatch-notify: ignore status 'unknown' --- netwatch-notify.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netwatch-notify.rsc') 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") ]; -- cgit v1.2.3-54-g00ecf