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