aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-16 17:51:21 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-16 17:51:21 +0200
commit5859b0406ee11f07af2cfe97ab9e2a9a7c30ffa8 (patch)
treeac375a54b7b1853966ee27354e640b85d907d353 /netwatch-notify
parent806d9bd4fbcb141555b01e32b79aa3db7c91ce34 (diff)
netwatch-notify: move symbol before text
Diffstat (limited to 'netwatch-notify')
-rw-r--r--netwatch-notify4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-notify b/netwatch-notify
index 0df92b5..5b0c629 100644
--- a/netwatch-notify
+++ b/netwatch-notify
@@ -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={