Module: check_mk
Branch: master
Commit: 4befdeca3c6ac9f66380db0dbb7101777d8969c9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4befdeca3c6ac9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Oct 21 10:15:01 2011 +0200
smart.temp warn levels were off by one degree
---
checks/smart | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/smart b/checks/smart
index 5c2a73a..b121818 100644
--- a/checks/smart
+++ b/checks/smart
@@ -128,9 +128,9 @@ def check_smart_temp(item, params, info):
if len(line) >= 13 and line[0] == item and line[4] ==
"Temperature_Celsius":
celsius = int(line[12])
perfdata = [ ( "temp", celsius, warn, crit ) ]
- if celsius > crit:
+ if celsius >= crit:
return (2, "CRIT - Temperature is %dC" % celsius, perfdata)
- elif celsius > warn:
+ elif celsius >= warn:
return (1, "WARN - Temperature is %dC" % celsius, perfdata)
else:
return (0, "OK - Temperature is %dC" % celsius, perfdata)