Module: check_mk
Branch: master
Commit: 3d607501efb2862c0e468e32690841f06fd76820
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3d607501efb286…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Aug 5 17:00:01 2014 +0200
cisco_temp_sensor: missing changes for werk 198
---
.werks/198 | 5 ++++-
checks/cisco_temp_sensor | 7 +++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/198 b/.werks/198
index b22d797..419ee24 100644
--- a/.werks/198
+++ b/.werks/198
@@ -1,9 +1,12 @@
Title: cisco_temp_sensor: Removed dicey detection for temperature value.
Level: 1
Component: checks
-Compatible: incomp
+Compatible: compa
Version: 1.2.5i6
Date: 1407250309
Class: fix
+Cause of a dicey detection, also values who are not given in tens of degrees became
divided by ten.
+This werk tryes to fix this
+
diff --git a/checks/cisco_temp_sensor b/checks/cisco_temp_sensor
index c6742f4..4a0affa 100644
--- a/checks/cisco_temp_sensor
+++ b/checks/cisco_temp_sensor
@@ -145,6 +145,13 @@ def check_cisco_temp_sensor(item, _no_params, info):
for id, descr, sensortype, value, sensorstate, levels in sensors:
if item == descr:
warn, crit = levels[0:2]
+ # poor try to find temperature values
+ # who are given in tens of degress.
+ # Seems that some new firmware show this behavier.
+ # A normal Temperature Sensor has only a range up to
+ # 60 degree, so i choiced 70.
+ if value > 70:
+ value = value / 10
if sensorstate == "2":
return (3, "data from sensor currently not available")
elif sensorstate == "3":