<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One method is to duplicate your contacts/contactgroups and apply
those to your escalations. For example:<br>
<br>
normaluser1 -> notification commad - normal notification format<br>
escuser1 -> notification command - escalation notification format
(same real person as normaluser1 but with a different notification
command)<br>
<br>
mynormalcontactgroup -> normaluser1- contact group for normal
notifications<br>
myescalationcontactgroup -> escuser1 - contact group for
escaltions<br>
<br>
There are other ways as well but this is probably the most simple
unless you have large numbers of contacts/contactgroups/escalations
to deal with.<br>
<br>
On 01/18/2011 12:20 PM, steve f wrote:
<blockquote cite="mid:BLU152-w55C5906D4EC11B364F7410A2F70@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
Is it possible to create a unique email notification for a
serviceescalation ?<br>
<br>
I defined my serviceescalation and the contact group and verified
after the set number of first_notification, my escalation group
got the email notification of the alert.<br>
<br>
What I want to do, is send a unique email message if its an
escalation.<br>
<br>
In commands.cfg I added the following :<br>
<br>
# 'service-escalation-by-email' command definition<br>
define command{<br>
command_name service-escalation-by-email<br>
command_line /usr/bin/printf "%b" "***** Nagios Service
Escalation *****\n\nNotification Type: $NOTIFICATIONTYPE$
Escalation\n\nService: $<br>
SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$\nT<br>
HIS IS A SERVICE ESCALATION. YOU ARE BEING NOTIFIED BECAUSE THE
ALERT HAS NOT BEEN ADDRESSED YET." | /usr/bin/mail -s "**
$NOTIFICATIONTYPE$ Service<br>
Alert Escalation: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$<br>
}<br>
<br>
<br>
Now, I see in the contact definition, there is
service_notification_commands where I assume I could define the
server-escalation-by-email and get the new email sent to the
contact, but that option is not shown in the contact group
definition. Can I just add the service_notification_command
directive in the group definition?? <br>
<br>
<br>
Thanks,<br>
<br>
Steve<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/oracle-sfdevnl">http://p.sf.net/sfu/oracle-sfdevnl</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Thanks,
Chris Waters
WAN/LAN Technician
Information Systems - Networks
JELD-WEN, Inc.
<a class="moz-txt-link-abbreviated" href="mailto:cwaters@jeld-wen.com">cwaters@jeld-wen.com</a>
541-882-3451 x2109
</pre>
</body>
</html>