mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
netwatch-notify: ignore status 'unknown'
This commit is contained in:
parent
1568df3b4f
commit
f416b0e59d
1 changed files with 1 additions and 1 deletions
|
@ -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") ];
|
||||
|
|
Loading…
Reference in a new issue