Module: check_mk
Branch: master
Commit: 9c0e7444e7d80a7bd4e7e6d724b1971fae7361f8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c0e7444e7d80a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 16 10:12:23 2015 +0200
#2330 ovs_bonding: Linux agent now supports OVS version 6.2
Thanks to Alexander Scholler.
---
.werks/2330 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.linux | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/2330 b/.werks/2330
new file mode 100644
index 0000000..28064bd
--- /dev/null
+++ b/.werks/2330
@@ -0,0 +1,9 @@
+Title: ovs_bonding: Linux agent now supports OVS version 6.2
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i2
+Date: 1434442321
+Class: feature
+
+Thanks to Alexander Scholler.
diff --git a/ChangeLog b/ChangeLog
index 72f2696..aa0e9a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@
* 2123 datapower_fs: new check to monitor filesystems on IBMs Datapower Gateways
* 2124 datapower_pdrive, datapower_ldrive: new checks to monitor disk states of IBM
Datapower Gateways
* 2125 datapower_raid_bat: new check to monitor the battery of RAID controllers of
IBM Datapower Gateways
+ * 2330 ovs_bonding: Linux agent now supports OVS version 6.2...
* 2323 FIX: df: Fix new graphs for all filesystem checks in case of existing inode
information
* 2305 FIX: agent_vsphere, esx_vsphere_sensors: now able to handle sensor names with
semicolon...
* 2118 FIX: aix_sap_processlist: agent plugin now is more general to deal with
various AIX versions...
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index ce4972e..90940d5 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -240,7 +240,7 @@ fi
# Same for Open vSwitch bonding
if type ovs-appctl > /dev/null ; then
echo '<<<ovs_bonding:sep(58)>>>'
- for bond in $(ovs-appctl bond/list | sed -e 1d | cut -f2) ; do
+ for bond in $(ovs-appctl bond/list | sed -e 1d | rev | cut -f3 | rev) ; do
echo "[$bond]"
ovs-appctl bond/show $bond
done