[checkmk-commits] Check_MK Git: check_mk: fixed exception in cisco_temp_sensor

Andreas Boesl ab at mathias-kettner.de
Wed Aug 13 17:13:04 CEST 2014


Module: check_mk
Branch: master
Commit: 70fea83a663d3a7b20166991cac19b4477f7c9d3
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=70fea83a663d3a7b20166991cac19b4477f7c9d3

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Wed Aug 13 17:12:55 2014 +0200

fixed exception in cisco_temp_sensor

---

 checks/cisco_temp_sensor |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/checks/cisco_temp_sensor b/checks/cisco_temp_sensor
index 06cc9cd..2a1d8f1 100644
--- a/checks/cisco_temp_sensor
+++ b/checks/cisco_temp_sensor
@@ -119,13 +119,13 @@ def parse_cisco_temp_sensor(info):
     for id, sensortype, value, sensorstate in state_info:
        thresholds.setdefault(id, [])
 
-    for endoid, level in levels_info:
+    for endoid, levels in levels_info:
        # endoid is e.g. 21549.9 or 21459.10
        level = saveint(levels)
        if level > 70:
            level = level / 10
        id, subid = endoid.split('.')
-       thresholds.setdefault(id, []).append(level)
+       thresholds.setdefault(id, []).append(levels)
 
     # Create main dictionary (only of temperature sensors)
     sensors = []
@@ -134,7 +134,7 @@ def parse_cisco_temp_sensor(info):
         # 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. 
+        # 60 degree, so i choiced 70.
         value = saveint(value)
         if value > 70:
             value = value / 10



More information about the checkmk-commits mailing list