mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
netwatch-notify: match on word boundary
This commit is contained in:
parent
f60c72dc78
commit
4321d8fa54
1 changed files with 1 additions and 1 deletions
|
@ -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") ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue