Module: check_mk
Branch: master
Commit: bfc9387a2260648e22fe45877fbf611be3d1dcd8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bfc9387a226064…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 14 17:43:05 2011 +0100
FIX: cmctc: fix inventory in case of incomplete entries
---
ChangeLog | 1 +
checks/cmctc | 4 +---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 94a177f..0500cb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@
* FIX: df: fix status in case of critical trend and warning used
* FIX: df: fix display of trend warn/crit in PNP-graph
* df: split PNP graphs for growth/trend into two graphs
+ * FIX: cmctc: fix inventory in case of incomplete entries
1.1.10:
diff --git a/checks/cmctc b/checks/cmctc
index ed5bb33..d74bc66 100644
--- a/checks/cmctc
+++ b/checks/cmctc
@@ -35,9 +35,7 @@
# 7: description
def inventory_cmctc_temp(checkname, info):
- # return all temperature sensors
- return [ (line[0], line[7], None) \
- for line in info if int(line[1]) == 10 ]
+ return [ (line[0], None) for line in info if saveint(line[1]) == 10 ]
def check_cmctc_temp(item, no_params, info):
for line in info: # , value1, value2 in info: