aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-27 22:55:40 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-27 22:55:40 +0200
commit4321d8fa54cd2b8454a072ad68355380248d5818 (patch)
treece06b722522fd81b9beee3a79f5b46fa1bab760a
parentf60c72dc78da3ff14ccc23988b342d94a662f406 (diff)
netwatch-notify: match on word boundary
-rw-r--r--netwatch-notify.rsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 5482ea3..28bde24 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -58,7 +58,7 @@ $ScriptLock $0;
:set NetwatchNotify ({});
}
-:foreach Host in=[ /tool/netwatch/find where comment~"notify" !disabled status!="unknown" ] do={
+:foreach Host in=[ /tool/netwatch/find where comment~"\\bnotify\\b" !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") ];