Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_ntpd

Current Version
2.2
Last Release Date
2015-07-11
E-mail
License
Apache
Hits
88810
Files:
FileDescription
check_ntpd.plcheck_ntpd.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check NTPd output for minimum number of servers, reach, and at least one selected time server.
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 (1)
bymdella, September 29, 2014
1 of 1 people found this review helpful
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
Owner's reply

Thanks! I've updated the plugin as you've suggested.