[checkmk-commits] Check_MK Git: check_mk: update #2072: netapp_api_volumes raises WARN for non online volumes

Andreas Boesl ab at mathias-kettner.de
Wed Apr 29 12:41:34 CEST 2015


Module: check_mk
Branch: master
Commit: bd0406a0c96087d881c38b97339f76d297f434e1
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bd0406a0c96087d881c38b97339f76d297f434e1

Author: Andreas Boesl <ab at 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



More information about the checkmk-commits mailing list