Module: check_mk
Branch: master
Commit: eeb2941172bcb107efa272866ab102a7b7bf0512
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eeb2941172bcb1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 27 15:43:06 2015 +0100
#2171 FIX netapp_api_vf_status: Handling "DR backup" as normal (OK) state now
---
.werks/2171 | 10 ++++++++++
ChangeLog | 1 +
checks/netapp_api_vf_status | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2171 b/.werks/2171
new file mode 100644
index 0000000..294dba4
--- /dev/null
+++ b/.werks/2171
@@ -0,0 +1,10 @@
+Title: netapp_api_vf_status: Handling "DR backup" as normal (OK) state now
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1427467363
+
+
diff --git a/ChangeLog b/ChangeLog
index 6f9ecc3..0df0b32 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -291,6 +291,7 @@
* 2170 FIX: jolokia_metrics_gc: Fixed exception when GC time not reported by server
* 2109 FIX: netapp_api_volumes: now using the defined levels when using the Nagios
core
* 1241 FIX: hp_prolaint: Unkown state is not longer handled as OK...
+ * 2171 FIX: netapp_api_vf_status: Handling "DR backup" as normal (OK) state
now
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/netapp_api_vf_status b/checks/netapp_api_vf_status
index 71f8fe4..8ec54e3 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] != "running" and 2 or 0
+ state = filer_states[item] not in ["running", "DR backup"] and 2
or 0
return state, "Status is %s" % filer_states[item]
check_info["netapp_api_vf_status"] = {