Module: check_mk
Branch: master
Commit: d3ef011bb910d04178d8a1cc03f3a13b327f3f55
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d3ef011bb910d0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 1 14:44:14 2016 +0100
Fixed nasty output of popd command in lnx_bonding section
---
agents/check_mk_agent.linux | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 26492ca..1dd64e1 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -305,7 +305,9 @@ fi
# Current state of bonding interfaces
if [ -e /proc/net/bonding ] ; then
echo '<<<lnx_bonding:sep(58)>>>'
- pushd /proc/net/bonding > /dev/null ; head -v -n 1000 * ; popd
+ pushd /proc/net/bonding > /dev/null
+ head -v -n 1000 *
+ popd > /dev/null
fi
# Same for Open vSwitch bonding