Page 1 of 1
Ping to External IP
Posted: Wed Nov 21, 2012 11:58 am
by mlemley
We just loaded Nagios XI to our Hyper-V environment, and we're trying to figure out how to get the setup working to detect a network outage. We have a failover ISP, that automatically picks up our network in the event of an outage. This second ISP has a separate public IP address tied to it. We would like to set Nagios up to monitor the public IP for our main ISP, so that, in the event that it would go down, we would be notified and could make the appropriate DNS changes to point our traveler site that handles our email to our cell phones. Right now, this site has one A-record listed for the main ISP's public IP, and does not carry over to the failover ISP. I am trying to set up a DNS setting in Nagios, but it wants to look for the local 192. IP. I was wondering if there is a way to get a rule set up that allows that to ping the outside, public IP, rather than the local, so that we can verify when our network is down?
I appreciate any suggestions/tips/advice.
Thanks!
Re: Ping to External IP
Posted: Wed Nov 21, 2012 1:05 pm
by slansing
Yes most definitely, it sounds like you want to set up a service to ping a IP set by you, and return critical if that IP is no longer reachable?
This can be done though check_ping, if you were to set up a Host with said IP, you could create a service under that host and assign it the "check_ping" check, from the check command dropdown, then simply fill in the "Round Trip Average,packet loss percentage" much like this example:
Be sure to select your new host from the Manage Hosts list, and set up alerts and notifications from their respective tabs.
Re: Ping to External IP
Posted: Wed Nov 21, 2012 2:16 pm
by mlemley
We came across a plugin called "Check_external_IP", but we have not had much success getting it fully implemented. It wanted us to edit a file on the Nagios server, that we could not locate. I'm assuming this "Check_ping" is also a plugin? Once we have the plugin installed, we're trying to figure out where we need to go to set up a service for that particular host. As it is right now, that host just shows being down, as the IP is an external, unpingable address.
Re: Ping to External IP
Posted: Fri Nov 23, 2012 8:31 am
by scottwilkerson
You would do this in configure -> CCM -> Hosts -> Modify
Then set the check command you want
When adding new plugins you must also create a command for them
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf