Skip to content
Permalink
Browse files

update #2072: netapp_api_volumes raises WARN for non online volumes

  • Loading branch information
Andreas Boesl
Andreas Boesl committed Apr 29, 2015
1 parent 344766f commit bd0406a0c96087d881c38b97339f76d297f434e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit bd0406a

Please sign in to comment.
You can’t perform that action at this time.