On 08/09/2013 05:03 PM, Holger Weiß wrote: > * Eliezer Croitoru <elie...@ngtech.co.il> [2013-08-09 16:46]: >> I have compiled all nagios plugins many times but on the last time this >> what happens: >> nagios-plugins-1.4.16.tar.gz >> I compile with no errors and then when nagios do a check it states: >> CRITICAL - Network Unreachable (repo.ngtech.co.il) > > My guess would be that your IPv6 connectivity is broken. In that case, > using check_ping's "-4" flag should do the trick. If that _doesn't_ > help, could you please paste the output of "check_ping -vvv [...]"? > >> Can anyone test it please and make sure that my assumptions are right? > > For me, both of the following commands return OK: > > $ check_ping -4 -H repo.ngtech.co.il -w '500.0,10%' -c '1000.0,50%' > $ check_ping -6 -H repo.ngtech.co.il -w '500.0,10%' -c '1000.0,50%' > > Holger Hey Holger, this is what I do have: # /usr/local/nagios/libexec/check_ping -4 -H repo.ngtech.co.il -w '500.0,10%' -c '1000.0,50%' PING OK - Packet loss = 0%, RTA = 339.04 ms|rta=339.035004ms;500.000000;1000.000000;0.000000 pl=0%;10;50;0 # /usr/local/nagios/libexec/check_ping -6 -H repo.ngtech.co.il -w '500.0,10%' -c '1000.0,50%' CRITICAL - Network Unreachable (repo.ngtech.co.il)
which seems like the settings for the RT of the packets seems to be the main issue while parsing the ping command output. /usr/local/nagios/libexec/check_ping -vvv -4 -H repo.ngtech.co.il -w '500.0,10%' -c '1000.0,50%' CMD: /bin/ping -n -U -w 10 -c 5 repo.ngtech.co.il Output: PING cairo.treenetnz.com (58.28.153.233) 56(84) bytes of data. Output: 64 bytes from 58.28.153.233: icmp_req=1 ttl=42 time=335 ms Output: 64 bytes from 58.28.153.233: icmp_req=2 ttl=42 time=339 ms Output: 64 bytes from 58.28.153.233: icmp_req=3 ttl=41 time=341 ms Output: 64 bytes from 58.28.153.233: icmp_req=4 ttl=41 time=341 ms Output: 64 bytes from 58.28.153.233: icmp_req=5 ttl=41 time=340 ms Output: Output: --- cairo.treenetnz.com ping statistics --- Output: 5 packets transmitted, 5 received, 0% packet loss, time 4003ms Output: rtt min/avg/max/mdev = 335.751/339.767/341.602/2.251 ms PING OK - Packet loss = 0%, RTA = 339.77 ms|rta=339.766998ms;500.000000;1000.000000;0.000000 pl=0%;10;50;0 500.000000:10% 1000.000000:50% so the RT is more then 100ms which considered to be C\W but my output is: # /usr/local/nagios/libexec/check_ping -vvv -H repo.ngtech.co.il -w 100.0,20% -c 500.0,60% CMD: /bin/ping6 -n -U -w 10 -c 5 repo.ngtech.co.il Got stderr: connect: Network is unreachable CRITICAL - Network Unreachable (repo.ngtech.co.il) and: # /usr/local/nagios/libexec/check_ping -vvvv -H repo.ngtech.co.il -w 500.0,20% -c 1000.0,60% CMD: /bin/ping6 -n -U -w 10 -c 5 repo.ngtech.co.il Got stderr: connect: Network is unreachable CRITICAL - Network Unreachable (repo.ngtech.co.il) which is a bit weird why is it using ping6 for a simple ping by default? Hos is the check_ping recognises that there is a need for ping6 ?? the host dosn't even has ipv6 connectivity.. Eliezer > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 > ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Nagios-users mailing list Nagios-users@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