[hobbit] citirx user graph (sendmail graph)
Deal, Richard
rdeal at tigr.org
Tue May 31 15:25:50 CEST 2005
To get the data remotely just add the remote hostname to the ntpq
command
rdeal at rdeal-lx % ntpq -c "rv 0 offset" ranger
assID=0 status=06a4 leap_none, sync_ntp, 10 events,
event_peer/strat_chg, offset=0.752
also to compensate for the output requirement I am using:
#!/bin/sh
$BB $BBDISP "data $MACHINE.ntpstat
`ntpq -c \"rv 0 offset\" | awk 'BEGIN {FS = \"=\"} $1 != \"offset\"
{print;} $1 == \"offset\" {print \"Offset: \", $2}' `
"
exit 0
probably a cleaner way to make the change but this is the first thing
that came to mind ;)
-----Original Message-----
From: Henrik Stoerner [mailto:henrik at hswn.dk]
Sent: Sunday, May 29, 2005 2:23 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] citirx user graph (sendmail graph)
On Wed, May 25, 2005 at 08:44:01AM -0400, Deal, Richard wrote:
> Any chance of getting the ntpstat script
It's basically this:
#!/bin/sh
$BB $BBDISP "data $MACHINE.ntpstat
`ntpq -c \"rv 0 offset\"`
"
exit 0
Now, this won't work with the 4.0.3 ntpstat handler because I started
out with an existing script that did some formatting of the output. But
from 4.0.4 the "ntpq -c rv" output will be handled directly by Hobbit
and generate your ntpstat graph.
> or having hobbit generate the ntpstat data with the built in ntp test?
I'm not 100% sure, but I think you cannot get the ntpstat data remotely.
> I have added this entry for the sendmail monitoring:
Thanks, added.
Henrik
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon
mailing list