From 0ad94b042de8dac6939f330c2b4270701c5da6d1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 25 Nov 2022 08:39:07 +0100 Subject: netwatch-notify: support type https-get ... which was introduced in RouterOS 7.7beta8. --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwatch-notify b/netwatch-notify index 7a0766c..7ee2026 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -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") ]); -- cgit v1.2.3-70-g09d2