latest update 2.2-3ubuntu3 caused check_ntp_time to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monitoring-plugins (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hello,
after installing 2.2-3ubuntu3 check_ntp_time fails with "NTP CRITICAL: Offset unknown" on multiple systems.
:~# /usr/lib/
NTP CRITICAL: Offset unknown|
:~# /usr/lib/
sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
response from peer 0: offset -0.0001745223999
sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
discarding peer 0: stratum=0
overall average offset: 0
NTP CRITICAL: Offset unknown|
I found out that disabling the "kod" option on our internal NTP server helps to get it working again.
But this is only a workaround since check_ntp_time should handle kod correctly.
Thanks,
Christoph
Hi and thanks for taking the time to file this bug. What you describe is pretty strange, as according to the changelog the update from monitoring-plugins 2.2-3ubuntu2 to 2.2-3ubuntu3 only involves a fix on the check_http plugin. The check_ntp_* plugins were not touched.
I think it's worth double checking the problem actually comes from monitoring-plugins. Could you try to downgrade the package, like this:
apt install monitoring- plugins- basic=2. 2-3ubuntu2
and check if the problem goes away?
I can't reproduce the problem with:
/usr/ lib/nagios/ plugins/ check_ntp_ time -H pool.ntp.org -v
but the queried servers are probably not sending KoD packets.
I'm setting the status of this report to Incomplete for the moment. Please change it back to New after commenting back and we'll look at it again. Thanks!