check_ntp_peer reports stratum off-by-one?

Matthew Pounsett matt at conundrum.com
Thu Dec 29 17:16:50 CET 2011


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





More information about the Users mailing list