Module: check_mk
Branch: master
Commit: e5fd3fdbadec92293bac35b11c09b4d8ac5273f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5fd3fdbadec92…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Sep 28 15:01:11 2012 +0200
Fix: fst_temp: Wrong sensor ouput
---
checks/fsc_temp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/fsc_temp b/checks/fsc_temp
index 0fc36d8..fc22977 100644
--- a/checks/fsc_temp
+++ b/checks/fsc_temp
@@ -37,7 +37,7 @@ def check_fsc_temp(item, _no_params, info):
crit = int(line[3])
infotext = "%d C (levels at %d C / %d C)" % (current, warn, crit)
perfdata = [ ("temp", current, warn, crit, 0 ) ]
- if current == -1:
+ if current == -1 or current == 4294967295:
return(3, "UNKNOWN - Problem with sensor")
elif current >= crit and crit > 0:
return (2, "CRIT - %s" % infotext, perfdata)