aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-24 12:38:03 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-24 12:38:03 +0100
commit524cc29e996c6fee05e066b21453962f4cd32be6 (patch)
treec0f9ea764e51e7e46b94ce0c34c88c78ce1046fc /check-health
parent0229516bb5cea7c5f94cc8c9591368d8e89830d7 (diff)
check-health: add fancy unicode symbols
Diffstat (limited to 'check-health')
-rw-r--r--check-health8
1 files changed, 4 insertions, 4 deletions
diff --git a/check-health b/check-health
index b693410..a7ead46 100644
--- a/check-health
+++ b/check-health
@@ -36,12 +36,12 @@
[ :typeof ($CheckHealthCurrent->($PSU . "-state")) ] = "str") do={
:if ($CheckHealthLast->($PSU . "-state") = "ok" && \
$CheckHealthCurrent->($PSU . "-state") != "ok") do={
- $SendNotification ("Health warning: " . $PSU . " state") \
+ $SendNotification ("Health warning: \E2\9D\8C " . $PSU . " state") \
("The power supply unit '" . $PSU . "' on " . $Identity . " failed!");
}
:if ($CheckHealthLast->($PSU . "-state") != "ok" && \
$CheckHealthCurrent->($PSU . "-state") = "ok") do={
- $SendNotification ("Health recovery: " . $PSU . " state") \
+ $SendNotification ("Health recovery: \E2\9C\85 " . $PSU . " state") \
("The power supply unit '" . $PSU . "' on " . $Identity . " recovered!");
}
}
@@ -56,13 +56,13 @@
}
:if ($CheckHealthLast->$Temperature <= $CheckHealthTemperature->$Temperature && \
$CheckHealthCurrent->$Temperature > $CheckHealthTemperature->$Temperature) do={
- $SendNotification ("Health warning: " . $Temperature) \
+ $SendNotification ("Health warning: \E2\9D\8C " . $Temperature) \
("The " . $Temperature . " on " . $Identity . " is above threshold: " . \
$CheckHealthCurrent->$Temperature . "\C2\B0" . "C");
}
:if ($CheckHealthLast->$Temperature > $CheckHealthTemperature->$Temperature && \
$CheckHealthCurrent->$Temperature <= $CheckHealthTemperature->$Temperature) do={
- $SendNotification ("Health recovery: " . $Temperature) \
+ $SendNotification ("Health recovery: \E2\9C\85 " . $Temperature) \
("The " . $Temperature . " on " . $Identity . " dropped below threshold: " . \
$CheckHealthCurrent->$Temperature . "\C2\B0" . "C");
}