thanks to Florian Holeczek and Dale Stubblefield)
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 277b535c1ded086bf8363029db6a784f7f1a60b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=277b535c1ded08…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed May 16 07:01:56 2012 +0200
AIX Agent: Add NTP check for AIX (thanks to Florian Holeczek and Dale Stubblefield)
---
agents/check_mk_agent.aix | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 341d76a..51b7e2a 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -85,6 +85,14 @@ 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
+ ntpq -p | sed -e 1,2d -e 's/^\(.\)/\1 /' -e 's/^ /%/'
+ fi
+fi
+
if cd $PLUGINSDIR 2>/dev/null
then