Module: check_mk
Branch: master
Commit: ffbe9ef810c1f21448a29802a2a902ed59f4fd04
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ffbe9ef810c1f2…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Apr 26 22:58:38 2012 +0200
Fix: Megaraid catched wrong output from some versions
---
checks/megaraid_pdisks | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/checks/megaraid_pdisks b/checks/megaraid_pdisks
index 0cdf8c7..6ce5d3d 100644
--- a/checks/megaraid_pdisks
+++ b/checks/megaraid_pdisks
@@ -59,7 +59,8 @@ def megaraid_pdisks_parse(info):
current_adapter = {}
adapters[int(line[1])] = current_adapter
elif line[0] == 'dev2enc':
- current_adapter[int(line[5])] = int(line[2])
+ if line[2].isdigit():
+ current_adapter[int(line[5])] = int(line[2])
elif line[0] == 'Adapter' and len(line) == 2:
current_adapter = adapters[int(line[1][1:])] # Raute weglassen
adapter = int(line[1][1:])