This is how you might setup ntp.
The city's ntp server is 10.1.3.22.
I has to reinstall ntp to get it to actually install properly.
Code Block |
---|
$ yum list ntp
$ sudo yum install ntp
$ sudo yum reinstall ntp
$ sudo find / -name ntpdate
$ sudo /usr/sbin/ntpdate --help
$ sudo /usr/sbin/ntpdate 10.1.3.22
$ sudo /etc/init.d/ntpd start
$ ps -ef | grep ntp
|
And if you want a shell script:
...
We have been using this script to set up NTP.
When there are changes to the NTP sevrers, you'll need to modify /etc/ntp.conf and /etc/ntp/step-tickers.
We have also been seeing this issue.
Code Block |
---|
***** Nagios *****
Notification Type: PROBLEM
Service: PostgreSQL Timesync
Host: eas-sfproddb.sfgov.org
Address: 10.250.60.196
State: CRITICAL
Date/Time: Wed Jan 2 06:00:11 PST 2013
Additional Info:
POSTGRES_TIMESYNC CRITICAL: DB postgres (host:10.250.60.196)
timediff=70 DB=2013-01-02 05:58:51 Local=2013-01-02 06:00:01
|
It might be this issue.