host shows down but it is not [check_icmp]
Marc Powell
marc at ena.com
Wed Oct 14 21:36:31 CEST 2009
On Oct 14, 2009, at 1:45 PM, Joe Konecny wrote:
> The output is below. Also I just installed Nagios on a different
> machine and get the same results.
>
> root at 3px:~# /usr/local/nagios/libexec/check_icmp -v -v 70.62.24.79
> ttl set to 64
> Setting alarm timeout to 10 seconds
> packets: 5, targets: 1
> target_interval: 0.000, pkt_interval 80.000
> crit.rta: 500.000
> max_completion_time: 3400.000
> crit = {500000, 80%}, warn = {200000, 40%}
> pkt_interval: 80000 target_interval: 0 retry_interval: 0
> icmp_pkt_size: 64 timeout: 10
> received 84 bytes from 70.62.24.79
> 1.029 ms rtt from 70.62.24.79, outgoing ttl: 64, incoming ttl: 63
> recvfrom_wto() timed out during a 80000 usecs wait
> recvfrom_wto() timed out during a 40000 usecs wait
> recvfrom_wto() timed out during a 40000 usecs wait
> recvfrom_wto() timed out during a 26666 usecs wait
> recvfrom_wto() timed out during a 26666 usecs wait
> recvfrom_wto() timed out during a 26666 usecs wait
> recvfrom_wto() timed out during a 20000 usecs wait
> recvfrom_wto() timed out during a 20000 usecs wait
> recvfrom_wto() timed out during a 20000 usecs wait
> recvfrom_wto() timed out during a 20000 usecs wait
> time_passed: 322696 final_wait: 3077304 max_completion_time: 3400000
> Waiting for 3077304 micro-seconds (3077.304 msecs)
> recvfrom_wto() timed out during a 769326 usecs wait
> recvfrom_wto() timed out during a 769326 usecs wait
> recvfrom_wto() timed out during a 769326 usecs wait
> recvfrom_wto() timed out during a 769326 usecs wait
> finish(0) called
> icmp_sent: 5 icmp_recv: 1 icmp_lost: 0
After taking a peek at the code, I do believe that it really sent out
5 ICMP_ECHO requests and only received the first one back. You should
be able to verify this with wireshark.
Is this something that is happening for all hosts or just this one
host? Is there a firewall between the hosts (even running locally on
either). Is there anything special about the target host? Anything
that would rate limit ICMP_ECHO requests or responses?
We're getting into a grey area where my knowledge of the program isn't
detailed enough to say why /bin/ping works and check_icmp doesn't. I
believe that the requests are formatted differently but I don't know
enough to say how or for sure. If there's nothing interesting about
the hosts in question, it would probably be appropriate to take to the
plugins list...
--
Marc
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list