Module: check_mk
Branch: master
Commit: f8d2a2fad05ef8dd3be33a46cedd820feb001e05
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8d2a2fad05ef8…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Nov 13 12:31:56 2017 +0100
5443 FIX cisco_redundancy: Discover 'Redundancy Framework Status' service if
devices supports that.
Change-Id: Id0e3415377961e9fed69742bf71a109699bbd997
---
.werks/5443 | 11 +++++++++++
checks/cisco_redundancy | 9 ++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/.werks/5443 b/.werks/5443
new file mode 100644
index 0000000..9c1c984
--- /dev/null
+++ b/.werks/5443
@@ -0,0 +1,11 @@
+Title: cisco_redundancy: Discover 'Redundancy Framework Status' service if
devices supports that.
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1510572474
+
+
diff --git a/checks/cisco_redundancy b/checks/cisco_redundancy
index c72ce13..f09b7f4 100644
--- a/checks/cisco_redundancy
+++ b/checks/cisco_redundancy
@@ -34,7 +34,14 @@
def inventory_cisco_redundancy(info):
- return [(None, {"init_states" : info[0][:5]})]
+ try:
+ swact_reason = info[0][5]
+ except IndexError:
+ pass
+ else:
+ if swact_reason != "1":
+ return [(None, {"init_states" : info[0][:5]})]
+ return []
def check_cisco_redundancy(_no_item, params, info):