[Bug 162389] Re: ntp check is worse than useless

Thierry Carrez thierry.carrez at ubuntu.com
Tue Oct 7 11:16:24 BST 2008


When NTP is not running we currently get:
$ /usr/lib/nagios/plugins/check_ntp -H 127.0.0.1; echo $?
NTP CRITICAL: No response from NTP server
2

However, I can reproduce James' case :
- install nagios-plugins and ntp
- edit /etc/ntp.conf to comment out the "server" line and restart ntp
"ntpq -p" should then return "No association ID's returned" : the NTP server is running, but not fully configured.

Then you get:
$ /usr/lib/nagios/plugins/check_ntp -H 127.0.0.1; echo $?
NTP OK: Offset unknown|
0

Without any parameter, ntp_check just checks that a NTP server is
running. To have it react to bad offsets (or the absence of) then you
should provide -c / -w parameters... I agree that's questionable design,
but probably still a feature and not a bug ?

-- 
ntp check is worse than useless
https://bugs.launchpad.net/bugs/162389
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in ubuntu.



More information about the Ubuntu-server-bugs mailing list