Module: check_mk
Branch: master
Commit: c40203df3d55a4b9e57307b4c33ea12f77b84a3f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c40203df3d55a4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Apr 22 14:11:48 2016 +0200
3421 FIX cisco_asa_failover: Do not discover interfaces where failover is not enabled
Thanks to Udo Wöhler.
---
.werks/3421 | 10 ++++++++++
ChangeLog | 1 +
checks/cisco_asa_failover | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3421 b/.werks/3421
new file mode 100644
index 0000000..2d32dae
--- /dev/null
+++ b/.werks/3421
@@ -0,0 +1,10 @@
+Title: cisco_asa_failover: Do not discover interfaces where failover is not enabled
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461327076
+
+Thanks to Udo Wöhler.
diff --git a/ChangeLog b/ChangeLog
index 997bf1a..1cf78a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -177,6 +177,7 @@
* 3435 FIX: check_varnish_uptime: Fixed broken check
* 3419 FIX: solaris_mem: avoid crash in case of empty agent section, treat section as
missing...
* 3420 FIX: check_ftp, check_tcp, check_smtp: add missing CRIT levels for certificate
live time...
+ * 3421 FIX: cisco_asa_failover: Do not discover interfaces where failover is not
enabled...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/cisco_asa_failover b/checks/cisco_asa_failover
index 3918bdc..1c316b7 100644
--- a/checks/cisco_asa_failover
+++ b/checks/cisco_asa_failover
@@ -43,7 +43,7 @@ def inventory_cisco_asa_failover(info):
return None
for deviceentry in info[-2:]:
- if "this device" in deviceentry[0]:
+ if "this device" in deviceentry[0] and not "Failover Off" in
deviceentry[2]:
return [ (None, None) ]