[Nagiosplug-devel] Having trouble with check_ntp_devel

Charlie Reddington charlie.reddington at gmail.com
Wed Jun 24 19:03:19 CEST 2009


Hi All,

Thanks for making this plugin, it works great.

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.

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.

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.

When I try to use the plugin to check this, I get the following on the  
CLI.

./check_ntp_time -vvv -H 172.16.12.87 -w 1 -c 2
Found 1 peers to check
sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
re-sending request to peer 0
NTP CRITICAL: No response from NTP server


And in nagios, it shows up as.

NTP CRITICAL: No response from NTP server

As for ntpd running, I have in my /etc/ntp.conf the above listed  
server. It is running successfully.

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.

tcpdump port 123
tcpdump: verbose output suppressed, use -v or -vv for full protocol  
decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes



0 packets captured
0 packets received by filter
0 packets dropped by kernel


Also I think the -p option is broken.... I've used -p 123 and -- 
port=123 and it shows as a unrecognized option.

./nagios-plugs/check_ntp_time -vvv --p=123 -H 172.16.12.87 -w 1 -c 2
./nagios-plugs/check_ntp_time: unrecognized option `--p=123'
Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]

./nagios-plugs/check_ntp_time -vvv -p 123 -H 172.16.12.87 -w 1 -c 2
./nagios-plugs/check_ntp_time: invalid option -- p
Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]

./nagios-plugs/check_ntp_time -P 123 -H 172.16.12.87 -w 1 -c 2
./nagios-plugs/check_ntp_time: invalid option -- P
Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]

./nagios-plugs/check_ntp_time --port=123 -H 172.16.12.87 -w 1 -c 2
./nagios-plugs/check_ntp_time: invalid option -- port
Usage: check_ntp_time -H <host> [-w <warn>] [-c <crit>] [-v verbose]

./nagios-plugs/check_ntp_time -H 172.16.12.87 -w 1 -c 2
NTP CRITICAL: No response from NTP server


Thanks for any help,

Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20090624/124d0a81/attachment.html>


More information about the Devel mailing list