Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
Forgot to show the command: # /usr/local/nagios/libexec/check_ping -H repo.ngtech.co.il -w 100.0,20% -c 500.0,60% -p 10 CRITICAL - Network Unreachable (repo.ngtech.co.il) # /usr/local/nagios/libexec/check_ping -H www1.ngtech.co.il -w 100.0,20% -c 500.0,60% -p 10 PING OK - Packet loss = 0%, RTA = 17.40 ms|rta=17.395000ms;100.00;500.00;0.00 pl=0%;20;60;0 Which is odd in any way you can think off. Eliezer On 08/09/2013 04:46 PM, Eliezer Croitoru wrote: 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) while from command line linux ping everything works fine! also I compiled my own script in ruby perl and python and all of them are not stating anything about Network Unreachable. Is this a regression from older and newer versions of nagios_plugins?? Since they work at the same time I run my own script and it states the everyting is OK which means 100% no packet loss I am a bit confused about it. How is it possible for the basic check_ping written in c to not work and the scripting languages scripts to work fine? it's not permissions since it states Network Unreachable. it's must be another issue either in nagios or the code somewhere. Can anyone test it please and make sure that my assumptions are right? 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=48897031iu=/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=48897031iu=/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
Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
* 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 -- 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=48897031iu=/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
Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
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.00;1000.00;0.00 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.00;1000.00;0.00 pl=0%;10;50;0 500.00:10% 1000.00: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 - -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=48897031iu=/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=48897031iu=/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
Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
On 09/08/2013 15:23, Eliezer Croitoru wrote: 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 - -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 repo.ngtech.co.il Server: 172.21.0.66 Address:172.21.0.66#53 Non-authoritative answer: repo.ngtech.co.il canonical name = proxy.treenet.co.nz. proxy.treenet.co.nz canonical name = cairo.treenetnz.com. cairo.treenetnz.com has address 2002:3a1c:99e9:0:230:f1ff:fe14:5d47 -- Regards, Giles Coochey, CCNP, CCNA, CCNAS NetSecSpec Ltd +44 (0) 8444 780677 +44 (0) 7983 877438 http://www.netsecspec.co.uk giles.cooc...@netsecspec.co.uk -- Regards, Giles Coochey, CCNP, CCNA, CCNAS NetSecSpec Ltd +44 (0) 8444 780677 +44 (0) 7983 877438 http://www.coochey.net http://www.netsecspec.co.uk gi...@coochey.net smime.p7s Description: S/MIME Cryptographic Signature -- 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=48897031iu=/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
Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
JFTR (we clarified this on IRC): * Eliezer Croitoru elie...@ngtech.co.il [2013-08-09 17:23]: 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.. There's no sensible way to detect the availability of IPv6. The plugin could auto-fallback to IPv4 if IPv6 fails, but so far users are expected to simply add the -4 flag in IPv4-only environments (or to use check_icmp). Holger -- 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=48897031iu=/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
Re: [Nagios-users] Hey I was wondering about the check_ping from the newest stable plugins.
On 08/09/2013 05:32 PM, Giles Coochey wrote: repo.ngtech.co.il Server: 172.21.0.66 Address:172.21.0.66#53 Non-authoritative answer: repo.ngtech.co.il canonical name = proxy.treenet.co.nz. proxy.treenet.co.nz canonical name = cairo.treenetnz.com. cairo.treenetnz.com has address 2002:3a1c:99e9:0:230:f1ff:fe14:5d47 This is the domain DNS answers # dig cairo.treenetnz.com @ns1.treenetnz.com. ; DiG 9.9.2-P1 cairo.treenetnz.com @ns1.treenetnz.com. ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 24830 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 4 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;cairo.treenetnz.com. IN A ;; ANSWER SECTION: cairo.treenetnz.com.60 IN A 58.28.153.233 ;; AUTHORITY SECTION: treenetnz.com. 60 IN NS ns1.treenetnz.com. treenetnz.com. 60 IN NS ns2.treenetnz.com. treenetnz.com. 60 IN NS ns3.treenetnz.com. ;; ADDITIONAL SECTION: ns1.treenetnz.com. 60 IN A 58.28.153.233 ns2.treenetnz.com. 60 IN 2002:3a1c:99e9:0:225:11ff:fe05:6cb3 ns3.treenetnz.com. 60 IN A 58.28.153.233 ;; Query time: 343 msec ;; SERVER: 58.28.153.233#53(58.28.153.233) ;; WHEN: Fri Aug 9 17:47:13 2013 ;; MSG SIZE rcvd: 178 # dig cairo.treenetnz.com @ns2.treenetnz.com. ; DiG 9.9.2-P1 cairo.treenetnz.com @ns2.treenetnz.com. ;; global options: +cmd ;; connection timed out; no servers could be reached # dig cairo.treenetnz.com @ns3.treenetnz.com. ; DiG 9.9.2-P1 cairo.treenetnz.com @ns3.treenetnz.com. ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 51977 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 4 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;cairo.treenetnz.com. IN A ;; ANSWER SECTION: cairo.treenetnz.com.60 IN A 58.28.153.233 ;; AUTHORITY SECTION: treenetnz.com. 60 IN NS ns3.treenetnz.com. treenetnz.com. 60 IN NS ns1.treenetnz.com. treenetnz.com. 60 IN NS ns2.treenetnz.com. ;; ADDITIONAL SECTION: ns1.treenetnz.com. 60 IN A 58.28.153.233 ns2.treenetnz.com. 60 IN 2002:3a1c:99e9:0:225:11ff:fe05:6cb3 ns3.treenetnz.com. 60 IN A 58.28.153.233 ;; Query time: 340 msec ;; SERVER: 58.28.153.233#53(58.28.153.233) ;; WHEN: Fri Aug 9 17:48:24 2013 ;; MSG SIZE rcvd: 178 The above happens since the ns2 is IPV6 only server and it might has the record you are talking about. my forwarders cannot even contact it yet. 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=48897031iu=/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