You'll have to define special commands and escalation path . you can have the first "notification" trigger an action that - using nrpe or check_via_ssh will connect to the server an attempt the action you want .
define serviceescalation{ host_name host service_description check http first_notification 1 last_notification 1 notification_interval 1 contact_groups restart } define contact{ contact_name restart service_notification_period 24x7 host_notification_period 24x7 service_notification_options c service_notification_commands restart_service } # 'restart_service' command definition define command{ command_name restart_service command_line $USER1$/check_via_ssh -H $HOSTADDRESS$ `/etc/init.d/httpd restart` } just an example , you'll ofcourse have to tweek it to your needs , but this is a possible way to go . On Wednesday 22 October 2008 15:03:06 [EMAIL PROTECTED] wrote: > I'm trying to wrap my head around this one, and not getting very far... > > I want to set nagios up to, when it detects a service, say http, down, it > first attempts to re-start that service, once and only once. > If it receives a second alert in a row, it then moves on to contact the > admins as its escalation. > > Possibly, it would attempt to notify on the first alert, depending upon > which service it finds down, but, that's the notion. > > Can I simply use the attempt to restart as the default notify, and then, in > the escalation starting from the second alert, have it notify the admins? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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