custom escalations

Sotiroff, Kristian Sotiroff.Kristian at mtvne.com
Wed Oct 22 16:17:03 CEST 2008


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.
 
you need (from memory) to set up a dummy contact with their
service_notification_command as the restart and have them as the contact
for the service. 
 
your escalation would then kick in from first_notification 2 -
last_notification 0 and would email as normal.
 
sorry i can't cut and paste a config, but i don't have it to hand any
more.
 
 

________________________________

From: rjustinwilliams at gmail.com [mailto:rjustinwilliams at gmail.com] 
Sent: 22 October 2008 15:03
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] custom escalations


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?



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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081022/45843092/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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=/
-------------- next part --------------
_______________________________________________
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