aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-11-25 08:39:07 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-11-25 08:39:07 +0100
commit0ad94b042de8dac6939f330c2b4270701c5da6d1 (patch)
tree33b9365c5dc85432b5e32d0ef450f68640fec68a /netwatch-notify
parentad85f22540f3216224efc4fd36d1ffbf54a1486e (diff)
netwatch-notify: support type https-getrouteros-7.7beta8
... which was introduced in RouterOS 7.7beta8.
Diffstat (limited to 'netwatch-notify')
-rw-r--r--netwatch-notify2
1 files changed, 1 insertions, 1 deletions
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") ]);