Module: check_mk
Branch: master
Commit: a1b0c5a5c32d6c9ea59a7e9834e3582e82b9bea3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1b0c5a5c32d6c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 17 09:46:00 2011 +0100
FIX: ucd_cpu_util: fix check in case of missing hi, si and st
---
ChangeLog | 1 +
checks/ucd_cpu_util | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fe00c57..8bfd637 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
* FIX: df: fix display of trend warn/crit in PNP-graph
* FIX: cmctc: fix inventory in case of incomplete entries
* FIX: ucd_cpu_load and ucd_cpu_util: make scan function find Rittal
+ * FIX: ucd_cpu_util: fix check in case of missing hi, si and st
* printer_supply: Changed order of tests. When a printer reports -3 this
is used before the check if maxlevel is -2.
* cisco_locif: The check has been removed. Please switch to if/if64
diff --git a/checks/ucd_cpu_util b/checks/ucd_cpu_util
index 9cca8a5..0afe4cc 100644
--- a/checks/ucd_cpu_util
+++ b/checks/ucd_cpu_util
@@ -39,7 +39,7 @@ def inventory_ucd_cpu_util(checktype, info):
return [(None, "kernel_util_default_levels")]
def check_ucd_cpu_util(item, params, info):
- counters = map(int, info[0])
+ counters = map(saveint, info[0])
rates = []
this_time = time.time()
some_counter_wrapped = False