Akom's Tech Ruminations

Various tech outbursts - code and solutions to practical problems

Code and Hacks Nagios check_ntp quits working in 2009 with Offset unknown

Posted by Admin • Friday, January 2. 2009 • Category: Code and Hacks
I've been happily using nagios to monitor all my servers for quite some time, yet two days ago, suddenly, I started getting "Offset unknown" from my check_ntp check. Same from check_ntp_time. Then it was intermittent, service was flapping (going in and out of Unknown state). I messed around with ntp.conf and changed servers, restarted ntpd and then it stopped working across the board...

asterisk asterisk # /usr/nagios/libexec/check_ntp_time -H srv
NTP CRITICAL: Offset unknown|


The problem?

Apparently a leap year second is inserted periodically, and that's what was done on Dec 31 2008! Just one second, but enough to expose a bug in nagios-plugins-1.4.11

Continue reading "Nagios check_ntp quits working in 2009 with Offset unknown"