Pinging Internet Addresses/If Statements

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.
Locked
zniezelski
Posts: 1
Joined: Thu Jun 23, 2011 6:38 am

Pinging Internet Addresses/If Statements

Post 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
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Pinging Internet Addresses/If Statements

Post by tonyyarusso »

Sure, you'd just have to write your own shell script check command or event handler, with a wrapper around check_icmp.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked