Module: check_mk
Branch: master
Commit: c6224720e48e124c5f596be646f2dddf035eacc0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c6224720e48e12…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Wed Nov 27 16:46:50 2013 +0100
cmciii_pu_canbus: performance data fixed
---
checks/cmciii_pu_canbus | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/cmciii_pu_canbus b/checks/cmciii_pu_canbus
index b4fe7a7..2cc7b0f 100644
--- a/checks/cmciii_pu_canbus
+++ b/checks/cmciii_pu_canbus
@@ -36,9 +36,9 @@ def check_cmciii_pu_canbus(item, params, info):
for oid_num in range(0, len(info[0])):
if re.match(item,info[0][oid_num]):
descr = info[1][oid_num]
- value = info[1][oid_num+1]
- crit = info[1][oid_num+2]
- warn = info[1][oid_num+3]
+ value = re.sub(" ","",info[1][oid_num+1])
+ crit = info[1][oid_num+2].split(" ")[0]
+ warn = info[1][oid_num+3].split(" ")[0]
status = info[1][oid_num+5]
if status.lower() == "ok":
state = 0