<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All,<div><br></div><div>Thanks for making this plugin, it works great.</div><div><br></div><div>I do have a problem with one host, and I'm trying to trouble shoot the problem, but I could use a bit of insight on how the plugin works.</div><div><br></div><div>We are on a linux box (Fedora Core 6 Zod), I know it's old as hell. We are running kernel 2.6.22.14-72.fc6.</div><div><br></div><div>I can successfully use ntp on the server. I can connect to the remote time server we have, and it syncs fine. I reach out on udp port 123.</div><div><br></div><div>When I try to use the plugin to check this, I get the following on the CLI.</div><div><br></div><div><div>./check_ntp_time -vvv -H 172.16.12.87 -w 1 -c 2</div><div>Found 1 peers to check</div><div>sending request to peer 0</div><div>re-sending request to peer 0</div><div>re-sending request to peer 0</div><div>re-sending request to peer 0</div><div>re-sending request to peer 0</div><div>re-sending request to peer 0</div><div>re-sending request to peer 0</div><div>NTP CRITICAL: No response from NTP server</div><div><br></div><div><br></div><div>And in nagios, it shows up as.</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, fantasy; "><table border="0" width="100%" class="status" style="font-family: arial, serif; background-color: white; color: black; font-size: 8pt; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; "><tbody><tr><td class="statusBGCRITICAL" valign="center" style="font-family: arial, serif; font-size: 8pt; background-color: rgb(255, 187, 187); ">NTP CRITICAL: No response from NTP server </td></tr><tr></tr></tbody></table><br></span></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy">As for ntpd running, I have in my /etc/ntp.conf the above listed server. It is running successfully.</font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy">Is there anything I'm missing here? I was thinking that perhaps this check was reaching out on a differnt protocol or something, or a differnt port? I've done a tcpdump port 123 and when I run the check manually we aren't seeing anything at all. </font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><div>tcpdump port 123</div><div>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</div><div>listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes</div><div><br></div><div><br></div><div><br></div><div>0 packets captured</div><div>0 packets received by filter</div><div>0 packets dropped by kernel</div><div><br></div></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy">Also I think the -p option is broken.... I've used -p 123 and --port=123 and it shows as a unrecognized option.</font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><div>./nagios-plugs/check_ntp_time -vvv --p=123 -H 172.16.12.87 -w 1 -c 2</div><div>./nagios-plugs/check_ntp_time: unrecognized option `--p=123'</div><div>Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]</div><div><br></div><div>./nagios-plugs/check_ntp_time -vvv -p 123 -H 172.16.12.87 -w 1 -c 2</div><div>./nagios-plugs/check_ntp_time: invalid option -- p</div><div>Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]</div><div><br></div><div>./nagios-plugs/check_ntp_time -P 123 -H 172.16.12.87 -w 1 -c 2</div><div>./nagios-plugs/check_ntp_time: invalid option -- P</div><div>Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]</div><div><br></div><div>./nagios-plugs/check_ntp_time --port=123 -H 172.16.12.87 -w 1 -c 2</div><div>./nagios-plugs/check_ntp_time: invalid option -- port</div><div>Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]</div><div><br></div><div>./nagios-plugs/check_ntp_time -H 172.16.12.87 -w 1 -c 2</div><div>NTP CRITICAL: No response from NTP server</div><div><br></div></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy">Thanks for any help,</font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy"><br></font></div><div><font class="Apple-style-span" face="arial, -webkit-fantasy">Charlie</font></div></div></body></html>