How does one notify on event handler failure ?

chris at aidworld.org chris at aidworld.org
Mon Jul 18 11:21:02 CEST 2005


Hi Stanley,

> I would like to have an event handler attempt a service restart __and__
> then
> have Nagios process a restart failure by notifying the contact group and
> doing
> all the other Nag things (log, pace notifications, re-invoke event
> handlers ..) as
> long as the service fails to restart.

How about: set your max_check_attempts to 10. On the 5th soft failure,
restart the service. If the service doesn't come back up properly, Nagios
will check it another 5 times and then report an error in the normal way.

Cheers, Chris.



-------------------------------------------------------
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