Nagios Core 4.1.1 - false check_ping, check_icmp results

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
gmarks
Posts: 7
Joined: Thu Jan 21, 2016 7:58 am

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by gmarks »

As I said earlier, the packets are not leaving Nagios host's interface/NIC, they are not going out on the network so the problem is definitely on the source.
Instead of 30 ICMP requests, tcpdump catches less, and at that occasions the results calculations are incorrect.
There are no drops/errors on that interface.
Using check_icmp only caused incorrect results for ICMP based checks, so changing the protocol doesn't seem like the right direction.
When check_icmp is not used anywhere, only check_ping, everything works well.
Thanks once again for your help, I appreciate it.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by eloyd »

As I said earlier, the packets are not leaving Nagios host's interface/NIC, they are not going out on the network so the problem is definitely on the source.
I'm sure you're right, but how are you confirming this? Are you checking on the Nagios server that the packets are being generated? As in, tcpdump dst X.X.X.X (use the IP of your destination host)?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
gmarks
Posts: 7
Joined: Thu Jan 21, 2016 7:58 am

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by gmarks »

This is the command I used :

Code: Select all

tcpdump '((icmp) and ((src host 10.60.60.228) or (dst host 10.60.60.228)))' -w icmp.pcap
Where 10.60.60.228 is the IP of my Nagios host.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by rkennedy »

Got it. Thanks for describing this with such detail.

Can you open a bug report on https://github.com/nagios-plugins/ for this seperate issue, or would you like me to?
Former Nagios Employee
gmarks
Posts: 7
Joined: Thu Jan 21, 2016 7:58 am

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by gmarks »

If it's not neccessary for someone else to confirm to have same issues, I would appreciate if you'd open the bugreport.
Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core 4.1.1 - false check_ping, check_icmp results

Post by rkennedy »

I'm having a hard time replicating this. I have no problem filing the bug report, but I'll need your assistance.

- I have a command defined (check_icmp2) that uses /usr/local/nagios/libexec/check_icmp running against 192.168.3.243
- From 192.168.4.254 I have it using check_icmp2, forcing a check when it's up results in OK - 192.168.3.243: rta 0.982ms, lost 0%
- Forcing a check when it's down, results in CRITICAL - 192.168.3.243: rta nan, lost 100%

From what I understand, in your case the down host is not reporting 100% lost. Is that right? Could you point me in the right direction to replicating this on what I'm not doing right?
Former Nagios Employee
Locked