diff options
author | Christian Hesse <mail@eworm.de> | 2020-03-24 12:28:06 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-03-24 12:28:06 +0100 |
commit | 7e982a470d1acbf2983c1bc71049106a94fad109 (patch) | |
tree | e4f05e056698d52828c7c88cd40ea43765c68451 /netwatch-notify | |
parent | 111e339d06049cc713455749d2978ffd6b9ab819 (diff) |
netwatch-notify: add fancy unicode symbols
https://www.compart.com/de/unicode/block/U+2700
Diffstat (limited to 'netwatch-notify')
-rw-r--r-- | netwatch-notify | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-notify b/netwatch-notify index 85a1ee5..5b47e3b 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -28,7 +28,7 @@ :local Count ($Metric->"count"); :set ($Metric->"count") 0; :if ($Metric->"notified" = true) do={ - $SendNotification ("Netwatch Notify: " . $HostName . " up") \ + $SendNotification ("Netwatch Notify: \E2\9C\85 " . $HostName . " up") \ ("Host " . $HostName . " (" . $HostVal->"host" . ") is up since " . $HostVal->"since" . ".\n" . \ "It was down for " . $Count . " checks."); } @@ -38,7 +38,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: " . $HostName . " down") \ + $SendNotification ("Netwatch Notify: \E2\9D\8C " . $HostName . " down") \ ("Host " . $HostName . " (" . $HostVal->"host" . ") is down since " . $HostVal->"since" . "."); :set ($Metric->"notified") true; } |