Module: check_mk
Branch: master
Commit: b8f2cea79ce59ad02e73666a7a2f3e9f4f72a177
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b8f2cea79ce59a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 12 09:43:09 2015 +0200
#2676 FIX cisco_asa_failover: Failover state is not treated as warning state anymore
The Cisco ASA cluster is operating as expected and in practice, it does not really
matter which of the cluster members is the primary one. So the failover state, where
the secondary device is the active one, is not treated as warning anymore.
---
.werks/2676 | 11 +++++++++++
ChangeLog | 1 +
checks/cisco_asa_failover | 4 ++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/2676 b/.werks/2676
new file mode 100644
index 0000000..ba82368
--- /dev/null
+++ b/.werks/2676
@@ -0,0 +1,11 @@
+Title: cisco_asa_failover: Failover state is not treated as warning state anymore
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1444635713
+Class: fix
+
+The Cisco ASA cluster is operating as expected and in practice, it does not really
+matter which of the cluster members is the primary one. So the failover state, where
+the secondary device is the active one, is not treated as warning anymore.
diff --git a/ChangeLog b/ChangeLog
index 8fee803..66e1a8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -216,6 +216,7 @@
* 2622 FIX: postfix_mailq: Fixed exception when postfix is installed but not
configured properly
* 2675 FIX: checkpoint_connections checkpoint_packets: Fixed wrong discovered
services on non checkpoint devices
* 2657 FIX: windows agent: fixed failure to resolve named performance counters...
+ * 2676 FIX: cisco_asa_failover: Failover state is not treated as warning state
anymore...
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checks/cisco_asa_failover b/checks/cisco_asa_failover
index 8c16433..0f4e565 100644
--- a/checks/cisco_asa_failover
+++ b/checks/cisco_asa_failover
@@ -68,8 +68,8 @@ def check_cisco_asa_failover(_no_item, _no_params, info):
or (unit_type == "secondary" and device_state == 10):
state = 0
elif device_state in [ 9, 10 ] and other_device_state in [ 9, 10 ]:
- state = 1
- details = "The cluster is in failover state"
+ state = 0
+ details = "The cluster is in failover state (Secondary device is
active)"
elif device_state == 4:
state = 2
details = "The device reports an error state"