Module: check_mk
Branch: master
Commit: 97c8c01ddb7f907cb5c2e2a99d5d67a7f1d5cdde
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97c8c01ddb7f90…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 27 11:03:39 2010 +0200
Fixed small coding error in megaraid_pdisks
---
ChangeLog | 4 ++--
checks/megaraid_pdisks | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a771acb..b2d9a24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,8 +16,8 @@
%u. That will be replaced with the user name and thus makes the
service description unique.
* win_dhcp_pools: better handle invalid agent output
- * hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to
- Andreas Döhler)
+ * hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to Andreas
Döhler)
+ * megaraid_pdisks: Fixed coding error
Livestatus:
* Prohibit { and } in regular expressions. This avoids a segmentation
diff --git a/checks/megaraid_pdisks b/checks/megaraid_pdisks
index d327fca..4e2b0db 100644
--- a/checks/megaraid_pdisks
+++ b/checks/megaraid_pdisks
@@ -51,6 +51,7 @@ def check_megaraid_pdisks(item, target_state, info):
# item is "$ENCLOSURE/$SLOT"
# param is the target state
for line in info:
+ found = None
if line[0] == "Enclosure":
enclosure = int(line[-1])
elif line[0] == "Slot":