Check NTP Time

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Check NTP Time

Postby silentnoises » Wed May 11, 2011 5:04 am

I'm now having a Nagios server in a Linux machine, LinuxMachineA. Currently using Nagios 3.0.3. LinuxMachineA monitors other Linux machines too. One of the services the nagios server in LinuxMachineA is monitoring is NTP Time Offset, and the plugin I'm using is this check_ntp_time plugin found at "".

When I change other Linux machines' system time, LinuxMachineA has no problem reflecting these NTP time offset changes in nagios.log such as the following:
... NTP;CRITICAL;SOFT;1;NTP CRITICAL: Offset -31.44479656 secs
... NTP;CRITICAL;SOFT;2;NTP CRITICAL: Offset -31.44479656 secs
... NTP;CRITICAL;SOFT;3;NTP CRITICAL: Offset -31.44479656 secs
... NTP;CRITICAL;HARD;4;NTP CRITICAL: Offset -31.44479656 secs

Problem occurs when I change LinuxMachineA's system time, the web interface will not be able to reflect the critical NTP time offset service status properly as CRITICAL. When I checked back the nagios.log, it shows this error: "Warning: A system time change of XXXXXXX (backwards in time) has been detected. Compensating.."

Any explanation on this issue and how can I fix this so that the web console can show up the CRITICAL status?

Thanks in advance.
Posts: 1
Joined: Wed May 11, 2011 4:35 am

Re: Check NTP Time

Postby tonyyarusso » Wed May 11, 2011 9:24 am

I believe this is related to issue #23, which was fixed in the 3.2.x release branch of Nagios.
Tony Yarusso
Technical Services
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA

Return to Nagios Core

Who is online

Users browsing this forum: Fess [Nagios Bot] and 22 guests