mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 04:40:07 +02:00
netwatch-notify: unbreak custom count
This commit is contained in:
parent
021463c76b
commit
cf5220278d
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@
|
|||
:set ($Metric->"since") ($HostVal->"since");
|
||||
$LogPrintExit info ("Host " . $HostName . " (" . $HostVal->"host" . ") is down for " . \
|
||||
$Metric->"count" . " checks.") false;
|
||||
:if ($Metric->"count" >= [ $IfThenElse ([ :typeof ($HostVal->"count") ] != "nothing") ($HostVal->"count") 5 ] && \
|
||||
:if ($Metric->"count" >= [ $IfThenElse ([ :typeof ($HostInfo->"count") ] != "nothing") ($HostInfo->"count") 5 ] && \
|
||||
$Metric->"notified" != true) do={
|
||||
$SendNotification ([ $SymbolForNotification "cross-mark" ] . "Netwatch Notify: " . $HostName . " down") \
|
||||
("Host " . $HostName . " (" . $HostVal->"host" . ") is down since " . $HostVal->"since" . ".");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue