NTP and Time

check_ntpd

Description:

Check NTPd output for minimum number of servers, reach, and at least one selected time server.

Current Version

2.2

Last Release Date

2015-07-11

Compatible With

Owner

Tim

License

Apache


Project Files
Project Notes
This nagios check determines the health of NTPd on a system by calculating the overall health of the peers associated with the daemon. This check also verifies other attributes, such as the number of peers available, and whether a peer has been selected to be the sync source. The overall health percentage is a cumulative average of the reach over the peers. Example: If 3 peers are listed, and 1 of the 3 dropped 2 of the last 8 packets, the health of that peer would be 75%, and the overall health would be about 92% ((100 + 100 + 75) / 3). Available Options: --critical|-c -Set the critical threshold for overall health (default:50) --warning|-w -Set the warning threshold for overall health (default:75) --peer_critical -Set the critical threshold for number of peers (default:1) --peer_warning -Set the warning threshold for number of peers (default:2) --help|-h -display this help
Reviews (2) Add a Review
Pipe characters in the plugin output
by Soava, June 30, 2020

As described in the nagios guidlines (https://nagios-plugins.org/doc/guidelines.html#PLUGOUTPUT), pipe characters should only be used when defining performance data. Otherwise, it brakes the performance data and also the UI. In this case, at line 146, I have replaced the "|" caracter with "/".



Worked well with one exception
by mdella, September 30, 2014

So far we have run across several of our servers that for whatever reason, never correctly connected with their NTP servers. The result was that ntpq -p returned "No Association" as its result which created a false positive since this script didn't recognize the failure case. Added at line 36: } elsif($server_list[$i] =~ /^No association/) { splice(@server_list, $i, 1); $i--; to deal with this edge case



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (2)
Favorites
0
Views
101,243