Module: check_mk
Branch: master
Commit: bce8d588876195fbb6f44de3288db2e0431dc26c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bce8d588876195…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 8 19:16:28 2012 +0200
Fix call of kcusage in HP-UX agent
---
agents/check_mk_agent.hpux | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.hpux b/agents/check_mk_agent.hpux
index 4b0b9a3..0c80d19 100755
--- a/agents/check_mk_agent.hpux
+++ b/agents/check_mk_agent.hpux
@@ -103,8 +103,10 @@ echo '<<<ntp>>>'
ntpq -p | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
-echo '<<<hpux_tunables>>>'
-if which kcusage > /dev/null ; then
+# Kernel tunnables
+if type kcusage >/dev/null 2>&1
+then
+ echo '<<<hpux_kcusage>>>'
kcusage -l
fi