[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ntpdate deprecated
- To: hobbit (at) hswn.dk
- Subject: ntpdate deprecated
- From: Peter Welter <peter.welter (at) gmail.com>
- Date: Wed, 11 Nov 2009 12:00:19 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=RBFcfJZHmv/vV8l8XCDWUgwspYHEogtd8l4K27miePA=; b=mlguC34G43OAMB6D2Zj6fTI4sC59/FRaTDuzumdYnoz2uIX65/1BFXN94hz1y4COvT CFTg1VdQFfvhYYsvqhtMOJYrRnNHFlqmOc97aI4Jik6pX3ju2LiRHcW2HmIB/sIasHuM ihyXrOPowykJPtJchqlUDSAV/+n4vWXX7Hu5g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SHG0rQUgqknO2BLG3R+X9nAyGcT8ioCrlWELysjLp7OasLxungEQgS8dHyGslfaplD 4kfeqS7Kk4VYBpeb5khle98XlvM14Rgbyif/QyrlZpBIC93JE2TyNxIOC2n+BCEzYTzC ZlczPmuQN4lt6LxKW9K3+DOQf+gD1BR1axeZw=
Today, I discovered the following for the ntp-test on our Xymon server:
Service ntp on xymon is OK (up)
Command: ntpdate -u -q -p 2 132.229.84.242 2>&1
!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!
The ntpdate program is deprecated and should not be used any more. To
quote the upstream ntp developers:
"The functionality ntpdate offered is now provided by the ntpd daemon
itself. If you call ntpd with the command line option -q it will
retrieve the current time and set it accordingly."
Please check the Network Time Protocol (NTP) daemon man page and
http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate
for further information.
You can replace the ntpdate call with "rcntp ntptimeset" to achieve an
inital poll of the servers specified in /etc/ntp.conf.
The program /usr/sbin/sntp offers comparable functionality to ntpdate.
Specifically
sntp -P no -r pool.ntp.org
is equivalent to
ntpdate pool.ntp.org
For further details please refer to the man page of sntp.
sntp: unable to write PID to /etc/sntp.pid
sntp: Permission denied
http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate#Set_the_time_before_running_ntpd
I always thought I needed to run this ntp-test to make sure the time is
correct on the central monitor server, to make sure that the time on other
monitored hosts is checked correctly.
Should I
- change the NTPDATE="ntpdate"-location in /etc/hobbit/hobbitserver.cfg to
NTPDATE="sntp -u" to make it work again?
- disable the ntp-test since because it is useless for checking the correct
time on monitored hosts.
Regards, Peter