check_ntp_peer reports stratum off-by-one?

Paul WILLIS PSE 55499 paul.willis at kent.pnn.police.uk
Fri Dec 30 12:03:24 CET 2011


Hi Matthew
 
Its neither, its actually you not understanding what peer means. Peer is effectively the next time server (or servers) up the chain,
so generally they will be different by one. To  see what peer means, type in ntpq, then type in peer. That will list the peers of your server and their strata, NOT the stratum of your server. The main usage of peers is to make sure you are getting time from the correct source or sources. If it is only showing local sources for example it indicates you have lost contact with the external ntp sources and are just using the hardware clock.
 
Paul Willis

>>> Matthew Pounsett <matt at conundrum.com> 29/12/11 16:16 >>>

It looks like I'm seeing a problem with the check_ntp_peer plugin, and the way it reports stratum.  It seems to be reducing the stratum by one on every server it checks.

% ntpq -c readvar | grep stratum
system="FreeBSD/8.2-RELEASE-p4", leap=00, stratum=3, precision=-19,

% ./check_ntp_peer -H localhost -W 3:3
NTP WARNING: Offset 0.007225 secs, stratum=2|offset=0.007225s;60.000000;120.000000; stratum=2;3;16;0;16

% ssh linuxbox ntpq -c readvar | grep stratum
processor="x86_64", system="Linux/2.6.32-36-server", leap=00, stratum=3,

% ./check_ntp_peer -H linuxbox -W 3:3
NTP WARNING: Offset -0.02112 secs, stratum=2|offset=-0.021120s;60.000000;120.000000; stratum=2;3;16;0;16

Is this a bug somewhere, or have I misunderstood the function of -W and -C?



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111230/3712eb6d/attachment.html>
-------------- next part --------------
This email and any other accompanying document (s) contain information from Kent Police, which is confidential or privileged.  The information is intended to be for the exclusive use of the individual(s) or bodies to whom it is addressed. The content including any subsequent replies could be disclosable if relating to a criminal investigation or civil proceedings. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this email in error, please notify us immediately by contacting the sender or telephoning 01622 690690.
-------------- next part --------------
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list