Module: check_mk
Branch: master
Commit: 8e14db790eae098be27492a0dd56145e36b23a86
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e14db790eae09…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Jul 9 10:05:26 2015 +0200
netapp_api_vf_status: Modified check to consider the state migrating OK
---
checkman/netapp_api_vf_status | 5 +++--
checks/netapp_api_vf_status | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/checkman/netapp_api_vf_status b/checkman/netapp_api_vf_status
index 39ab79d..ce038dc 100644
--- a/checkman/netapp_api_vf_status
+++ b/checkman/netapp_api_vf_status
@@ -5,8 +5,9 @@ license: GPL
distribution: check_mk
description:
This check monitors the states of the vFilers of the NetApp Filer.
- Possible states are {running}, {stopped}, {inconsistent} or {defunct}.
- If vFiler state differs from {running} the check goes {CRIT}.
+ Possible states are {running}, {stopped}, {inconsistent}, {DR backup},
+ {migrating} or {defunct}. If vFiler state is not {running},
+ {DR backup} or {migrating} the check goes {CRIT}.
inventory:
One check is created per vFiler.
diff --git a/checks/netapp_api_vf_status b/checks/netapp_api_vf_status
index 8ec54e3..3509b83 100644
--- a/checks/netapp_api_vf_status
+++ b/checks/netapp_api_vf_status
@@ -39,7 +39,7 @@ def check_netapp_api_vf_status(item, _no_params, info):
if item not in filer_states:
return
- state = filer_states[item] not in ["running", "DR backup"] and 2
or 0
+ state = filer_states[item] not in ["running", "DR backup",
"migrating"] and 2 or 0
return state, "Status is %s" % filer_states[item]
check_info["netapp_api_vf_status"] = {