mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
netwatch-notify: support type https-get
... which was introduced in RouterOS 7.7beta8.
This commit is contained in:
parent
ad85f22540
commit
0ad94b042d
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ $ScriptLock $0;
|
|||
|
||||
:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled ] do={
|
||||
:local HostVal [ /tool/netwatch/get $Host ];
|
||||
:local Type [ $IfThenElse ($HostVal->"type" ~ "^(http-get|tcp-conn)\$") "service" "host" ];
|
||||
:local Type [ $IfThenElse ($HostVal->"type" ~ "^(https?-get|tcp-conn)\$") "service" "host" ];
|
||||
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
||||
:local HostDetails ($HostVal->"host" . \
|
||||
[ $IfThenElse ([ :len ($HostInfo->"resolve") ] > 0) (", " . $HostInfo->"resolve") ]);
|
||||
|
|
Loading…
Reference in a new issue