Module: check_mk
Branch: master
Commit: e88d3bc3f6aecb32065d922012ed01556bdc26ef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e88d3bc3f6aecb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 23 17:47:56 2014 +0200
Linux agent: remove bogus output from type
---
agents/check_mk_agent.linux | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 4ad5fbd..d7df695 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -354,8 +354,7 @@ fi
# RAID controllers from areca (Taiwan)
# cli64 can be found at ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
-if type cli64
-then
+if type cli64 >/dev/null ; then
echo "<<<arc_raid_status>>>"
cli64 rsf info | tail -n +3 | head -n -2
fi
@@ -364,7 +363,7 @@ fi
# check would not be executed in case no guest additions are installed.
# And that is something the check wants to detect
echo '<<<vbox_guest>>>'
-if type VBoxControl > /dev/null 2>&1 ; then
+if type VBoxControl >/dev/null 2>&1 ; then
VBoxControl -nologo guestproperty enumerate | cut -d, -f1,2
[ ${PIPESTATUS[0]} = 0 ] || echo "ERROR"
fi