aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-16 17:48:21 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-16 17:48:21 +0200
commit806d9bd4fbcb141555b01e32b79aa3db7c91ce34 (patch)
treefe1d3a1176089d69ff697ed3de330db04352415d /check-health
parent371e96911d507a1ac3147ec131de7bc5dce595cb (diff)
check-health: move symbol before text
Diffstat (limited to 'check-health')
-rw-r--r--check-health10
1 files changed, 5 insertions, 5 deletions
diff --git a/check-health b/check-health
index 7192b46..3710bd2 100644
--- a/check-health
+++ b/check-health
@@ -26,7 +26,7 @@
[ :typeof ($CheckHealthCurrent->$Voltage) ] = "num") do={
:if ($CheckHealthLast->$Voltage * (100 + $CheckHealthVoltagePercent) < $CheckHealthCurrent->$Voltage * 100 || \
$CheckHealthLast->$Voltage * 100 > $CheckHealthCurrent->$Voltage * (100 + $CheckHealthVoltagePercent)) do={
- $SendNotification ("Health warning: \E2\9A\A1 " . $Voltage) \
+ $SendNotification ("\E2\9A\A1 Health warning: " . $Voltage) \
("The " . $Voltage . " on " . $Identity . " jumped more than " . $CheckHealthVoltagePercent . "%.\n\n" . \
"old value: " . [ $FormatVoltage ($CheckHealthLast->$Voltage) ] . "\n" . \
"new value: " . [ $FormatVoltage ($CheckHealthCurrent->$Voltage) ]);
@@ -39,12 +39,12 @@
[ :typeof ($CheckHealthCurrent->($PSU . "-state")) ] = "str") do={
:if ($CheckHealthLast->($PSU . "-state") = "ok" && \
$CheckHealthCurrent->($PSU . "-state") != "ok") do={
- $SendNotification ("Health warning: \E2\9D\8C " . $PSU . " state") \
+ $SendNotification ("\E2\9D\8C Health warning: " . $PSU . " state") \
("The power supply unit '" . $PSU . "' on " . $Identity . " failed!");
}
:if ($CheckHealthLast->($PSU . "-state") != "ok" && \
$CheckHealthCurrent->($PSU . "-state") = "ok") do={
- $SendNotification ("Health recovery: \E2\9C\85 " . $PSU . " state") \
+ $SendNotification ("\E2\9C\85 Health recovery: " . $PSU . " state") \
("The power supply unit '" . $PSU . "' on " . $Identity . " recovered!");
}
}
@@ -59,13 +59,13 @@
}
:if ($CheckHealthLast->$Temperature <= $CheckHealthTemperature->$Temperature && \
$CheckHealthCurrent->$Temperature > $CheckHealthTemperature->$Temperature) do={
- $SendNotification ("Health warning: \F0\9F\94\A5 " . $Temperature) \
+ $SendNotification ("\F0\9F\94\A5 Health warning: " . $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: \E2\9C\85 " . $Temperature) \
+ $SendNotification ("\E2\9C\85 Health recovery: " . $Temperature) \
("The " . $Temperature . " on " . $Identity . " dropped below threshold: " . \
$CheckHealthCurrent->$Temperature . "\C2\B0" . "C");
}