Page 1 of 3

Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 11:51 am
by Naveed
Hello,

I am monitoring my infrastructure with IP address and all its services are working perfectly fine.

But as one of my VM gets restart hosted on Azure, its instance IP gets changed after every reboot so we have to manually change new IP addressess.

I have tried to monitor with cloudapp name (url), all my services are working fine but ping is in disable state. Error message is as below.

CRITICAL - abc.cloudapp.net: rta nan, lost 100%

Can anyone help me out for ping alert resolution.

Thank you very much!

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 11:56 am
by rkennedy
If the nagios machine cannot ping the host (abc.cloudapp.net), then it's going to be critical. If this is expected, then perhaps you'll want to disable the check.

If your other checks are working at this point, then it sounds like ICMP traffic may be blocked which is why the ping checks are failing. Try enabling ICMP traffic on the client machine, to see if that resolves the issue.

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 12:03 pm
by Naveed
Thank you!

This sounds quite logical, what change I need to make on client side.

Thank you!

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 12:12 pm
by tgriep
What is the OS and version are you running on the remote system?

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 12:17 pm
by Naveed
Hello,

I have enabled rule on client side by following below guide, but this did not work for me.

Windows 2012 r2 server

http://www.sysprobs.com/how-to-enable-p ... 2-firewall

Any other suggestions?

Thank you!

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 12:38 pm
by tgriep
You may need to login to Azure security settings for that host and allow inbound ICMP also to get this to work.

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 12:43 pm
by Naveed
Thank you!

I have already enabled endpoints of this host, I have enabled port 1 for ping.

Is there anything which is still missing? Or I am doing wrong.

Thank you!

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 1:00 pm
by bwallace
Looks like you've covered everything so there must be something else going on with your network. This may be over kill, but I would run a set of simultaneous captures (one on Nagios using tcpdump and the other on the Windows Server using Wireshark) while trying to ping the Win server from the Nagios machine.

In the tcpdump on Nagios you should see the ping/ICMP leaving. On the client Wireshark capture - does it ever get there? If not, then of course there's something in the middle dropping those packets.

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 1:02 pm
by tgriep
Actually, I searched google and found that Azure doesn't allow inbound ICMP through their load balancer.
You can either disable the host check on the Nagios server or select an open port on the server and use that instead.

Re: Ping is crtical on cloudapp

Posted: Mon Jul 11, 2016 1:03 pm
by lmiltchev
You could change the check host alive command in order to monitor this host successfully. For more information on how to do that, check our "Nagios XI – Changing Host Alive Check" document here:
https://assets.nagios.com/downloads/nag ... _In_XI.pdf

Hope this helps.