netwatch-notify: ignore status 'unknown'

This commit is contained in:
Christian Hesse 2023-05-31 15:11:26 +02:00
parent 1568df3b4f
commit f416b0e59d
1 changed files with 1 additions and 1 deletions

View File

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