Module: check_mk
Branch: master
Commit: 33d0fcc89837b1ff4161fa79b454b2431afe85dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33d0fcc89837b1…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Oct 15 16:55:14 2014 +0200
akcp_sensor_temp: Now uses Fahrenheit conversion from temperature.include instead of
check_mk_base.py
---
checks/akcp_sensor_temp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/checks/akcp_sensor_temp b/checks/akcp_sensor_temp
index 77c6649..eddcc70 100644
--- a/checks/akcp_sensor_temp
+++ b/checks/akcp_sensor_temp
@@ -45,17 +45,16 @@ def check_akcp_sensor_temp(item, params, info):
return 3, "Sensor is offline"
if degreeraw != "":
- temp = saveint(degreeraw) / 10.0
+ temp = int(degreeraw) / 10.0
else:
temp = float(degree)
# break temp down to celsius if it had been defined as Fahrenheit.
if degreetype == "0":
- temp = to_celsius(temp)
+ temp = fahrenheit_to_celsius(temp)
return check_temperature(temp, params)
- return 3, "Sensor not found"
# possible values for sensorProbeTempStatus:
# noStatus(1), normal(2), highWarning(3), highCritical(4),