Ping is crtical on cloudapp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Ping is crtical on cloudapp

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Ping is crtical on cloudapp

Post 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.
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Ping is crtical on cloudapp

Post by Naveed »

Thank you!

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

Thank you!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Ping is crtical on cloudapp

Post by tgriep »

What is the OS and version are you running on the remote system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Ping is crtical on cloudapp

Post 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!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Ping is crtical on cloudapp

Post by tgriep »

You may need to login to Azure security settings for that host and allow inbound ICMP also to get this to work.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Ping is crtical on cloudapp

Post 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!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Ping is crtical on cloudapp

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Ping is crtical on cloudapp

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Ping is crtical on cloudapp

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked