Module: check_mk
Branch: master
Commit: f570b4c29701f1ae970346e69b02b63a837bf56e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f570b4c29701f1…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Feb 7 13:20:57 2013 +0100
fix: lnx_bonding remove extra info from primary slave entry
---
checks/lnx_bonding | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/lnx_bonding b/checks/lnx_bonding
index 14106d2..4538bef 100644
--- a/checks/lnx_bonding
+++ b/checks/lnx_bonding
@@ -106,7 +106,7 @@ def parse_lnx_bonding(info):
}
converted[bond] = {
"status" : status["main"]["MII Status"],
- "primary" : status["main"].get("Primary
Slave"),
+ "primary" : status["main"].get("Primary
Slave").split()[0],
"active" : status["main"].get("Currently Active
Slave"),
"mode" : status["main"]["Bonding
Mode"].split('(')[0].strip(),
"interfaces" : interfaces,