notification suppression

Chris Wilson chris at aidworld.org
Wed Jul 27 15:32:01 CEST 2005


Hi Miles,

On Wed, 2005-07-27 at 05:42, Miles Scruggs wrote:
> How would you test nagios' own connection to the internet ie ping google,
> yahoo, etc, and if they all fail suppress notifications till at least one is
> available

define command {
	command_name	my_notify
	command_line	ping -c 1 www.google.co.uk && /usr/bin/printf ... |
/bin/mail $CONTACTEMAIL$
}

Cheers, Chris.
-- 
(aidworld) chris wilson | chief engineer (chris at aidworld.org)



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list