Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTP Time Offset [sf#2864922] #907

Closed
monitoring-user opened this issue Sep 24, 2013 · 4 comments
Closed

NTP Time Offset [sf#2864922] #907

monitoring-user opened this issue Sep 24, 2013 · 4 comments

Comments

@monitoring-user
Copy link

Submitted by urg987 on 2009-09-23 12:52:45

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)

@monitoring-user
Copy link
Author

Submitted by dermoth on 2009-09-23 13:01:35

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.

@monitoring-user
Copy link
Author

Submitted by urg987 on 2009-09-23 13:32:25

[root@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@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;

@monitoring-user
Copy link
Author

waja added a commit to waja/monitoring-plugins that referenced this issue Oct 1, 2013
Just turning attached patch of github issue monitoring-plugins#907 into a push request.
@waja waja added the n-p label Feb 6, 2014
@waja
Copy link
Member

waja commented Feb 6, 2014

waja pushed a commit to waja/monitoring-plugins that referenced this issue Jul 21, 2014
@waja waja closed this as completed in 6f3d582 Jul 29, 2014
mat813 pushed a commit to Absolight/monitoring-plugins that referenced this issue Sep 13, 2017
Just turning attached patch of github issue monitoring-plugins#907 into a push request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants