Module: check_mk
Branch: master
Commit: 3fc60dbe42b33e33622021f4b4c6fc770813bb4e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3fc60dbe42b33e…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Nov 4 11:44:39 2015 +0100
#1300 FIX ovs_bonding: Fixed discovery exception in case of not active bond
---
.werks/1300 | 10 ++++++++++
ChangeLog | 1 +
checks/ovs_bonding | 2 ++
3 files changed, 13 insertions(+)
diff --git a/.werks/1300 b/.werks/1300
new file mode 100644
index 0000000..1d3aa16
--- /dev/null
+++ b/.werks/1300
@@ -0,0 +1,10 @@
+Title: ovs_bonding: Fixed discovery exception in case of not active bond
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1446633826
+
+
diff --git a/ChangeLog b/ChangeLog
index acb20d5..77c20eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@
* 2445 FIX: ibm_svc_disks: fixed crash in case special agent reports too much data
columns per line
* 2734 FIX: cmctc.temp: fix exception of type UnicodeDecodeError
* 2446 FIX: Active checks check_mail, check_mail_loop: did not work with POP3
protocol...
+ * 1300 FIX: ovs_bonding: Fixed discovery exception in case of not active bond
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/ovs_bonding b/checks/ovs_bonding
index 440cfaa..8f2e762 100644
--- a/checks/ovs_bonding
+++ b/checks/ovs_bonding
@@ -62,6 +62,8 @@ def parse_ovs_bonding(info):
parsed = {}
for bond, status in bonds.items():
all_down = True
+ if not status['active']:
+ continue
for st in status["interfaces"].values():
if st["status"] == "up":
all_down = False