check_ntp_time offset different from ntpq

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
thllgo
Posts: 3
Joined: Mon Apr 25, 2011 12:18 pm

check_ntp_time offset different from ntpq

Post by thllgo »

Hello,

One of the main things I need Nagios to do is check the servers for time drift. I have all my servers running ntp against an NTP server, but I still get some nasty drift on some of the systems. I want Nagios to monitor this drift and inform me when the drift reaches a certain point then I can go in to reset the time on the system. My question is the accuracy of the check_ntp_time function or am I reading it wrong.

Running "check_ntp_time -H time01" produces the following output
NTP OK: Offset -0.0006129741669 secs|offset=-0.000613s;60.000000;120.000000;

Running "ntpq -p" produces the following output
remote refid st t when poll reach delay offset jitter
==============================================================================
*time01 LOCAL(0) 11 u 963 1024 377 1.276 -0.292 0.020

The offset from the ntpq command is the difference between the localhost and the timehost. I don't see a match from the check_ntp_time function. Am I missunderstanding something or is there a large difference in values between the ntpq command and check_ntp_time function.

Thank you
Locked