Module: check_mk
Branch: master
Commit: 609262b5a578ebd4b61c21a42bad6467dc507012
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=609262b5a578eb…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed May 16 09:22:26 2012 +0200
AIX Agent: Send TCP Connection stats
---
agents/check_mk_agent.aix | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 51b7e2a..ce429a7 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -85,15 +85,18 @@ do
done
-echo '<<<ntp>>>'
if which ntpq > /dev/null 2>&1 ; then
if [ $(lssrc -s xntpd|grep -c active) -gt 0 ] ; then
- # remote heading, make first column space separated
+ echo '<<<ntp>>>'
ntpq -p | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
fi
fi
+echo '<<<tcp_conn_stats>>>'
+netstat -ntfinet | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x, c[x]; }
}'
+
+
if cd $PLUGINSDIR 2>/dev/null
then
for skript in $(ls)