NTP service only see the Puppet server
Posted: Tue Apr 07, 2015 9:35 am
Hi all,
I have a puppetized environment and had Puppet install Nagios and NRPE on one of my virtual machines. Nagios is able to monitor all the hosts in this environment and all the services are working fine except for the NTP. I'm getting a CRITICAL issue for all of the NTP services, i.e. NTP CRITICAL: Offset -558.895350 sec > +/- 120 sec, jitter 0.005 msec
I checked and looks like all the nodes can see the Puppet server's NTP but the NTP service fails because the nodes cannot access Nagios's NTP. This is what I have inside the Puppet's ntp.conf file:
And this is what I have inside the Nagios ntp.conf:
Now here are couple other commands I ran to test
And I ran this from another node, which shows it sees the Puppet's NTP:
I thought by adding the two lines (below) to my Nagios's ntp.conf I can fix the issue but the NTP service is still CRITICAL.
Can someone please shed some light on this? Not sure what I'm doing wrong that NTP service doesn't work.
Thanks in advance
I have a puppetized environment and had Puppet install Nagios and NRPE on one of my virtual machines. Nagios is able to monitor all the hosts in this environment and all the services are working fine except for the NTP. I'm getting a CRITICAL issue for all of the NTP services, i.e. NTP CRITICAL: Offset -558.895350 sec > +/- 120 sec, jitter 0.005 msec
I checked and looks like all the nodes can see the Puppet server's NTP but the NTP service fails because the nodes cannot access Nagios's NTP. This is what I have inside the Puppet's ntp.conf file:
Code: Select all
tinker panic 0
restrict default kod nomodify notrap
restrict 127.0.0.1
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 2
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
server 192.125.121.5 minpoll 4 maxpoll 4 iburst prefer
restrict 192.125.121.0 mask 255.255.255.0 nomodify notrap
Code: Select all
tinker panic 0
restrict default kod nomodify notrap
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
server 192.125.121.5 minpoll 4 maxpoll 4 iburst prefer
Code: Select all
[root@nagios conf.d]# /usr/lib64/nagios/plugins/check_ntp_time -H 192.125.121.5 -v
sending request to peer 0
response from peer 0: offset 1.931190491e-05
sending request to peer 0
response from peer 0: offset 2.193450928e-05
sending request to peer 0
response from peer 0: offset -2.384185791e-05
sending request to peer 0
response from peer 0: offset -1.263618469e-05
overall average offset: 1.931190491e-05
NTP OK: Offset 1.931190491e-05 secs|offset=0.000019s;60.000000;120.000000;
Code: Select all
[root@testserver ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*puppet.machine LOCAL(0) 3 u 13 16 377 0.385 0.038 0.044
Code: Select all
server 192.125.121.12 minpoll 4 maxpoll 4 iburst prefer
restrict 192.125.121.0 mask 255.255.255.0 nomodify notrap nopeer
Thanks in advance