mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
netwatch-notify: move symbol before text
This commit is contained in:
parent
806d9bd4fb
commit
5859b0406e
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
|||
:local Count ($Metric->"count");
|
||||
:set ($Metric->"count") 0;
|
||||
:if ($Metric->"notified" = true) do={
|
||||
$SendNotification ("Netwatch Notify: \E2\9C\85 " . $HostName . " up") \
|
||||
$SendNotification ("\E2\9C\85 Netwatch Notify: " . $HostName . " up") \
|
||||
("Host " . $HostName . " (" . $HostVal->"host" . ") is up since " . $HostVal->"since" . ".\n" . \
|
||||
"It was down for " . $Count . " checks.");
|
||||
:if ([ :typeof ($HostInfo->"up-hook") ] = "str") do={
|
||||
|
@ -45,7 +45,7 @@
|
|||
$LogPrintExit info ("Host " . $HostName . " (" . $HostVal->"host" . ") is down for " . \
|
||||
$Metric->"count" . " checks.") false;
|
||||
:if ($Metric->"count" >= 5 && $Metric->"notified" != true) do={
|
||||
$SendNotification ("Netwatch Notify: \E2\9D\8C " . $HostName . " down") \
|
||||
$SendNotification ("\E2\9D\8C Netwatch Notify: " . $HostName . " down") \
|
||||
("Host " . $HostName . " (" . $HostVal->"host" . ") is down since " . $HostVal->"since" . ".");
|
||||
:set ($Metric->"notified") true;
|
||||
:if ([ :typeof ($HostInfo->"down-hook") ] = "str") do={
|
||||
|
|
Loading…
Reference in a new issue