Page 1 of 1

Pinging Internet Addresses/If Statements

Posted: Thu Jun 23, 2011 7:09 am
by zniezelski
I want to know when my clients internet connection goes down so I have an offsite nagios box with a service that pings their internet address. When the internet goes out at the office that has the Nagios box, a notification is sent out when the internet comes back up because since my end is down it cannot reach the far end . Does anyone know if there is a way that I could have my Nagios ping google and my client then if the Nagios cannot ping google and also my client then it does not send a notification. If the Nagios box can ping google but not my client then it sends a notification.

Thanks,

Zach

Re: Pinging Internet Addresses/If Statements

Posted: Thu Jun 23, 2011 9:59 am
by tonyyarusso
Sure, you'd just have to write your own shell script check command or event handler, with a wrapper around check_icmp.