diff --git a/check-health.d/temperature.rsc b/check-health.d/temperature.rsc index e41b0067..1869946d 100644 --- a/check-health.d/temperature.rsc +++ b/check-health.d/temperature.rsc @@ -14,7 +14,6 @@ :local FuncName [ :tostr $0 ]; :local ScriptName [ :tostr $1 ]; - :global CheckHealthCPUUtilization; :global CheckHealthLast; :global CheckHealthTemperature; :global CheckHealthTemperatureDeviation; @@ -58,8 +57,7 @@ $SendNotification2 ({ origin=$ScriptName; \ subject=([ $SymbolForNotification "fire" ] . "Health warning: " . $Name); \ message=("The " . $Name . " on " . $Identity . " is above threshold: " . \ - $Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \ - ($CheckHealthCPUUtilization / 10) . "%!") }); + $Value . "\C2\B0" . "C") }); :set ($CheckHealthTemperatureNotified->$Name) true; } :if ($Value <= ($CheckHealthTemperature->$Name - $CheckHealthTemperatureDeviation) && \ @@ -67,8 +65,7 @@ $SendNotification2 ({ origin=$ScriptName; \ subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Health recovery: " . $Name); \ message=("The " . $Name . " on " . $Identity . " dropped below threshold: " . \ - $Value . "\C2\B0C\n\n" . "The average CPU utilization is at " . \ - ($CheckHealthCPUUtilization / 10) . "%!") }); + $Value . "\C2\B0" . "C") }); :set ($CheckHealthTemperatureNotified->$Name) false; } } diff --git a/doc/check-health.d/notification-06-temperature-high.avif b/doc/check-health.d/notification-06-temperature-high.avif index a1b4195a..908e8f2e 100644 Binary files a/doc/check-health.d/notification-06-temperature-high.avif and b/doc/check-health.d/notification-06-temperature-high.avif differ diff --git a/doc/check-health.d/notification-07-temperature-ok.avif b/doc/check-health.d/notification-07-temperature-ok.avif index c0f5c8a5..8f509e8d 100644 Binary files a/doc/check-health.d/notification-07-temperature-ok.avif and b/doc/check-health.d/notification-07-temperature-ok.avif differ