<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5626" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008>i had a service set up on an old box to do this; the
event-handler for the first notification was a command to restart a windows
service and then if it still come back broken, then it escalated into sending
emails.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008>you need (from memory) to set up a dummy contact with
their <FONT face="Times New Roman" color=#000000
size=3>service_notification_command as the restart and have them as the contact
for the service. </FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=039551114-22102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008>your escalation would then kick in from
first_notification 2 - last_notification 0 and would email as
normal.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008>sorry i can't cut and paste a config, but i don't have
it to hand any more.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=039551114-22102008></SPAN></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rjustinwilliams@gmail.com
[mailto:rjustinwilliams@gmail.com] <BR><B>Sent:</B> 22 October 2008
15:03<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] custom escalations<BR></FONT><BR></DIV>
<DIV></DIV>I'm trying to wrap my head around this one, and not getting very
far...<BR><BR>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.<BR>If it
receives a second alert in a row, it then moves on to contact the admins as its
escalation.<BR><BR>Possibly, it would attempt to notify on the first alert,
depending upon which service it finds down, but, that's the notion.<BR><BR>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?<pre>
CONFIDENTIALITY NOTICE
This e-mail (and any attached files) is confidential and protected by
copyright (and other intellectual property rights). If you are not the
intended recipient please e-mail the sender and then delete the email and
any attached files immediately. Any further use or dissemination is
prohibited.
While MTV Networks Europe has taken steps to ensure that this email and
any attachments are virus free, it is your responsibility to ensure that
this message and any attachments are virus free and do not affect your
systems / data.
Communicating by email is not 100% secure and carries risks such as delay,
data corruption, non-delivery, wrongful interception and unauthorised
amendment. If you communicate with us by e-mail, you acknowledge and
assume these risks, and you agree to take appropriate measures to minimise
these risks when e-mailing us.
MTV Networks International, MTV Networks UK & Ireland, Greenhouse,
Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions
International and Comedy Central are all trading names of MTV Networks
Europe. MTV Networks Europe is a partnership between MTV Networks Europe
Inc. and Viacom Networks Europe Inc. Address for service in Great Britain
is UK House, 180 Oxford Street, London W1D 1DS, UK.
</pre></BODY></HTML>