Skip to content

Commit

Permalink
update #2072: netapp_api_volumes raises WARN for non online volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Boesl committed Apr 29, 2015
1 parent 344766f commit bd0406a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks/netapp_api_volumes
Expand Up @@ -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
Expand Down

0 comments on commit bd0406a

Please sign in to comment.