Module: check_mk
Branch: master
Commit: bd0406a0c96087d881c38b97339f76d297f434e1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bd0406a0c96087…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Apr 29 12:41:25 2015 +0200
update #2072: netapp_api_volumes raises WARN for non online volumes
---
checks/netapp_api_volumes | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/netapp_api_volumes b/checks/netapp_api_volumes
index 62616ee..c7514e9 100644
--- a/checks/netapp_api_volumes
+++ b/checks/netapp_api_volumes
@@ -64,8 +64,8 @@ def check_netapp_api_volumes(item, params, parsed):
if not volume:
return 3, "Volume not found in agent output"
- if volume.get("state") == "offline":
- return 1, "Volume is offline"
+ if volume.get("state") != "online":
+ return 1, "Volume is %s" % volume.get("state")
mega = 1024.0 * 1024.0
size_total = int(volume.get("size-total")) / mega