Module: check_mk
Branch: master
Commit: 6e7aef435d94919082e08d5c6c98e5691347ff2a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6e7aef435d9491…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 23 15:33:16 2012 +0200
FIX: AIX agent now support more than 100 CPUs
---
agents/check_mk_agent.aix | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index fb11ac6..238b23d 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -64,7 +64,7 @@ mpstat -a | tail -n1
echo '<<<cpu>>>'
load=`uptime|sed -e 's;.*average: \([[:digit:]]\{1,\}\.[[:digit:]]\{1,\}\),
\([[:digit:]]\{1,\}\.[[:digit:]]\{1,\}\), \([[:digit:]]\{1,\}\.[[:digit:]]\{1,\}\);\1 \2
\3;'`
ps=`ps -eo thcount | awk '{SUM+=$1} END {print SUM}'`
-procs=`vmstat|grep lcpu|sed -e 's;.* lcpu=\([[:digit:]]\{1,2\}\) .*;\1;'`
+procs=`vmstat|grep lcpu|sed -e 's;.* lcpu=\([[:digit:]]\{1,4\}\) .*;\1;'`
echo $load 1/$ps $$ $procs