Module: check_mk
Branch: master
Commit: b4936e01632394a3a3f7e485ac1444437e0d4db5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4936e01632394…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 19 12:12:30 2012 +0100
zpool_status: fixed crash when spares devices where available
---
ChangeLog | 1 +
checks/zpool_status | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3a01224..8de3cbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,6 +36,7 @@
* Add: flexible notifcations: filter by hostname
* FIX: fixed missing localisation in check_parameteres.py
* FIX: userdb/ldap.py: fixed invalid call site.getsitepackages() for python 2.6
+ * FIX: zpool_status: fixed crash when spare devices were available
Multisite:
diff --git a/checks/zpool_status b/checks/zpool_status
index 1c76baf..a72581c 100644
--- a/checks/zpool_status
+++ b/checks/zpool_status
@@ -89,6 +89,10 @@ def check_zpool_status(_no_item, _no_params, info):
start_pool = False
pool_messages[last_pool] = " ".join(line[1:])
continue
+
+ if line[0] == "spares":
+ start_pool = False
+ continue
if start_pool == True:
if line[1] != "ONLINE":