NTP showing NTP CRITICAL: No response from NTP server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

NTP showing NTP CRITICAL: No response from NTP server

Post by [email protected] »

NTP showing NTP CRITICAL: No response from NTP server

when my ntp server is ubuntu 16.04 i am getting error:- NTP showing NTP CRITICAL: No response from NTP server
in same time my time is getting synced.

if same configuration in ubuntu 14.04 its working fine.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by benjaminsmith »

Hello,

I can try to run some tests here. Which plugin are you using the monitor the ntp server? Let us know you have have a chance.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by [email protected] »

hi,

i am using below plugin
/usr/local/nagios/libexec/check_ntp_time -H <NTP_Server_IP>
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by lmiltchev »

Open the /etc/ntp.conf on your Ubuntu 16 server, add this line:

Code: Select all

restrict <ip address of your Nagios XI server>
and restart ntp:

Code: Select all

service ntp restart
Wait for a minute or two, then test your check again:

Code: Select all

/usr/local/nagios/libexec/check_ntp_time -H <NTP_Server_IP>
Did it work this time?
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by [email protected] »

hi,

do i need to perform this steps in NTP Server or NTP Clients?

i am using systemd-timesyncd Service in NTP clients
in NTP Server i am using NTP Service.

when i am using NTP Server Ubuntu 14.04 i am not getting any error , when i am using ubuntu 16.04 as NTP Server i am facing this error .
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by lmiltchev »

do i need to perform this steps in NTP Server or NTP Clients?
You may. I haven't been able to make this check work any other way on Ubuntu 16.04 or 18.04. Ubuntu must have changed something, which caused the issue in newer versions. If you need to modify configs on many systems in bulk, you could look into something like Ansible to get the job done.

https://docs.ansible.com/ansible/latest/index.html

This would be out of scope of Nagios support though. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by [email protected] »

lmiltchev wrote:Open the /etc/ntp.conf on your Ubuntu 16 server, add this line:

Code: Select all

restrict <ip address of your Nagios XI server>
and restart ntp:

Code: Select all

service ntp restart
Wait for a minute or two, then test your check again:

Code: Select all

/usr/local/nagios/libexec/check_ntp_time -H <NTP_Server_IP>
Did it work this time?
the above option is not available in systemd-timesync service
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by lmiltchev »

the above option is not available in systemd-timesync service
Do you have "/etc/ntp.conf" file on the remote (Ubuntu 16) machine? If you do, open the file in a text editor, add the following line:

Code: Select all

restrict x.x.x.x
where "x.x.x.x" is the IP address of your Nagios XI server, then run:

Code: Select all

systemctl restart ntp
After you do this on the remote box, wait for a few minutes, go back to your Nagios XI server, and run:

Code: Select all

/usr/local/nagios/libexec/check_ntp_time -H <ip address of the Ubuntu 16 machine>
If this doesn't work, I would suggest that you open a new ticket via our Support Center here:

https://support.nagios.com/tickets/
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by [email protected] »

hi team,

please provide the updates, still i am facing same issue.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NTP showing NTP CRITICAL: No response from NTP server

Post by lmiltchev »

If you already tried the steps above, and this didn't resolve your issue, open a support ticket via our support center.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked