aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-health6
1 files changed, 6 insertions, 0 deletions
diff --git a/check-health b/check-health
index 8dfbc16..c30eee1 100644
--- a/check-health
+++ b/check-health
@@ -70,6 +70,12 @@
$LogPrintExit info ("No threshold given for " . $Name . ", assuming 50C.") false;
:set ($CheckHealthTemperature->$Name) 50;
}
+ :if ($Temperature > $CheckHealthLast->$Name + 20) do={
+ $LogPrintExit info ("The " . $Name . " spikes from " . $CheckHealthLast->$Name . \
+ "\C2\B0" . "C to " . $Temperature . "\C2\B0" . "C, ignoring.") false;
+ :set Temperature ($CheckHealthLast->$Name);
+ :set ($CheckHealthCurrent->$Name) ($CheckHealthLast->$Name + 3);
+ }
:if ($Temperature > $CheckHealthTemperature->$Name && \
$CheckHealthTemperatureNotified->$Name != true) do={
$SendNotification ([ $SymbolForNotification "fire" ] . "Health warning: " . $Name) \