[Nagiosplug-devel] check_ntp plugin issues

Bill Moran wmoran at collaborativefusion.com
Mon Mar 13 11:53:08 CET 2006

The check_ntp plugin appears to rely on the NTP server being checked
supporting "NTP mode 6 control messages" (from the ntpq man page)

OpenNTP does not appear to support said control messages, and
the check_ntp plugin isn't degrading gracefully:
/usr/local/libexec/nagios/check_ntp -H
Use of uninitialized value in division (/) at /usr/local/libexec/nagios/check_ntp line 423.
NTP OK: Offset -0.000003 secs|offset=-0.000003, jitter=0,peer_stratum=4

Looking at the source, it appears as if ntpq is unable to gather the
statistics expected (I'm expecting it's because OpenNTP doesn't support
the control messages) and the result is the "Use of uninitialized
value ..." error.  The only value that seems to be acquired from
ntpq is the jitter (notice the zero).

I don't have a suggested fix yet ...

Bill Moran
Collaborative Fusion Inc.

More information about the Devel mailing list