Xymon Mailing List Archive search

ntpstat.rrd creation

list Simeon Berkley
Thu, 5 Jul 2012 10:24:00 -0400
Message-Id: <CAO=SSi0VrH43uJgOa=user-8b2068e2cf70@xymon.invalid>

I figured it out, the confusion was with the column name and how that is
mapped to the rrd. I tried sending 'offset=0' to the 'ntpstat' data channel
for a host and it worked. I'll just create a server script that does
something like:

$XYMON $XYMSRV "data ntp.serveraddress.com.ntpstat

$(ntpdate -u -q -p 2 $NTP_SERVER_IP | grep -o 'offset
\+[-+]*[0-9]\+\.[0-9]\+'|tail -n1 |tr ' ' '=')

"

And put it in the server's tasks.cfg.

On Tue, Jul 3, 2012 at 4:58 PM, Berkley, Simeon <
user-7650b51cc6e3@xymon.invalid> wrote:
Hi all, Anyone know for sure whether ntpstat.rrd creation is built in, or
does it require an external server script? It appears that xymond/do_rrd.c
sets up a call in update_rrd() to do_ntpstat_rrd() when ldef->xymonrrdname
or the testname that is passed in matches 'ntpstat'. I could be totally
misunderstanding what's going on as I've just done a cursory search of the
source and haven't had a chance to trace it all the way through.

I've got my configuration set up like the demo server, with 'time=ntpstat'
and 'ntp=ntpstat' entries for TEST2RRD. For the ntp servers i'm monitoring,
I'm getting ntpdate output in the 'ntp' status column, but no rrd creation.
I've restarted xymon, going as far as adding, then removing '--debug' and
'--no-cache' for rrdstatus and rrddata in tasks.cfg (a workaround for an
existing issue with rrd updates that may or may not be related to this).
We're running 4.3.7 currently. I'll keep plugging away at the source if no
one has a quick and easy answer.

Thanks,

--
S i m e o n  B e r k l e y

Systems Engineer
McClatchy Interactive
www.mcclatchyinteractive.com

-- 
S i m e o n  B e r k l e y

Systems Engineer
McClatchy Interactive
phone:  XXX-XXX-XXXX
fax:    XXX-XXX-XXXX
mobile: XXX-XXX-XXXX
www.mcclatchyinteractive.com