[Nagiosplug-devel] [ nagiosplug-Patches-2864922 ] NTP Time Offset

SourceForge.net noreply at sourceforge.net
Wed Sep 23 13:32:25 CEST 2009


Patches item #2864922, was opened at 2009-09-23 11:52
Message generated for change (Comment added) made by urg987
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2864922&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patrick McAndrew (urg987)
Assigned to: Thomas Guyot-Sionnest (dermoth)
Summary: NTP Time Offset

Initial Comment:
Not sure if this is of use or not - we have a strange requirement to run certain servers 5 minutes fast.  I've added a switch to the check_ntp_time to allow for this offset.


Patch against Plugin Version (-V output):
check_ntp_time vtrunk.2244.dirty (nagios-plugins 1.4.14)
Plugin Name:
check_ntp_time
Example Plugin Commandline:
check_ntp_time -H ntp2c.mcc.ac.uk -o 500
Tested on operating system:
CentOS release 5.3 (Final)
Tested on architecture:
x86_64
Tested with compiler:
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)


----------------------------------------------------------------------

>Comment By: Patrick McAndrew (urg987)
Date: 2009-09-23 12:32

Message:
[root at supporttools plugins]# ./check_ntp_time -H ntp2c.mcc.ac.uk -o 500 -v
sending request to peer 0
response from peer 0: offset 6.841329217
sending request to peer 0
response from peer 0: offset 6.841068745
sending request to peer 0
response from peer 0: offset 6.840787172
sending request to peer 0
response from peer 0: offset 6.841123223
overall average offset: 6.841329217
NTP OK: Offset 6.841329217 secs|offset=6.841329s;60.000000;120.000000;
[root at supporttools plugins]# ./check_ntp_time -H ntp2c.mcc.ac.uk -v
sending request to peer 0
response from peer 0: offset -493.1589068
sending request to peer 0
response from peer 0: offset -493.1592188
sending request to peer 0
response from peer 0: offset -493.1590137
sending request to peer 0
response from peer 0: offset -493.1590893
overall average offset: -493.1589068
NTP CRITICAL: Offset -493.1589068
secs|offset=-493.158907s;60.000000;120.000000;


----------------------------------------------------------------------

Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2009-09-23 12:01

Message:
That doesn't sound right... What is your use case for this? can you show
the verbose output of two runs, one with and one without that option?

Thank you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2864922&group_id=29880




More information about the Devel mailing list