[checkmk-commits] Check_MK Git: check_mk: akcp_exp_humidity, akcp_sensor_humidity: fix exception in dicovery function

Mathias Kettner mk at mathias-kettner.de
Wed Apr 8 16:59:44 CEST 2015


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

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Wed Apr  8 16:59:42 2015 +0200

akcp_exp_humidity, akcp_sensor_humidity: fix exception in dicovery function

---

 checks/akcp_sensor.include |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/checks/akcp_sensor.include b/checks/akcp_sensor.include
index c7919aa..344075b 100644
--- a/checks/akcp_sensor.include
+++ b/checks/akcp_sensor.include
@@ -69,12 +69,12 @@ def inventory_akcp_sensor_no_params(info):
 #   |                                                  |___/               |
 #   +----------------------------------------------------------------------+
 
-akcp_humidity_defaultlevels = (35, 40, 60, 65)
+akcp_humidity_defaultlevels = (30, 35, 60, 65)
 
 def inventory_akcp_humidity(info):
-    for line in info:
-        if line[-1] == "1":
-            yield desc, "akcp_humidity_defaultlevels"
+    for description, percent, status, online in info:
+        if online == "1":
+            yield description, "akcp_humidity_defaultlevels"
 
 def check_akcp_humidity(item, params, info):
     for description, percent, status, online in info:



More information about the checkmk-commits mailing list