Xymon Mailing List Archive search

NTP Graphing

list Martin Flemming
Tue, 19 May 2009 19:07:15 +0200 (CEST)
Message-Id: <user-c8f545be98ed@xymon.invalid>


thank's a lot !

cheers,
 	martin

On Tue, 19 May 2009, Dominique Frise wrote:
Martin Flemming wrote:
 Hi, Martin !

 Got you a solution for solaris ... or someone else ?

 .. and second, who knows a good pluggin for monitoring timeservers for
 themselves  ?

 thanks & cheers,

     martin


 On Fri, 30 Jan 2009, Ward, Martin wrote:
 Hey Henrik,

 Thanks for this, I didn't even know I wanted one of these until it was 
 mentioned!

 Only issue for me is a Solaris-specific one, in that "rv 0 offset" 
 doesn't work because the default Solaris ntpq program doesn't understand 
 0 as a valid association. I'm still trying to figure out a different way 
 of getting the system time offset on a Solaris box (without installing a 
 different NTP client!), have you heard of anything?

| \/|artin
 -----Original Message-----
 From: Henrik "Størner [mailto:user-ce4a2c883f75@xymon.invalid]
 Sent: 28 January 2009 21:24
 To: user-ae9b8668bcde@xymon.invalid
 Subject: Re: [hobbit] NTP Graphing


 In
 <user-1aad613d1250@xymon.invalid
 hl.local> <user-72e95584e49c@xymon.invalid> writes:
 I am trying to graph the ntp offset of a few ntp servers. I
 can see a
 defin= ition in hobbitgraph referring to [ntpstat] and have
 defined the
 ntp test i= n the bb-hosts file, but I don't see any rrds being
 generated and obviously=  no graphs for the hosts.
 What do I need to do to make the graphs appear?
 Heh, I didn't realize that had snuck into the distribution :-)

 It's using data from "ntpq", running as a client-side add-on
 on the box that you want to monitor ntp for. It's dead simple:


 #!/bin/sh

#  This script is an extension for the BB client running on
#  your server. It will feed data about the local NTP daemon
#  into Hobbit, where the offset between the NTP reference
#  clock and the local clock will be graphed.

 $BB $BBDISP "data $MACHINE.ntpstat

 `ntpq -c \"rv 0 offset\"`
 "

 exit 0


 Regards,
 Henrik

"ntpq -c peers" also reports offset.
On solaris 9/10 clients, you could use:


$BB $BBDISP "data $MACHINE.ntpstat

`echo offset=\`ntpq -c peers | tail +3 | head -1 | awk '{ print $9 }'\``
"
exit 0


Dominique

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid