Unique Email Notification for Service Escalation??

Chris Waters cwaters at jeld-wen.com
Tue Jan 18 22:39:08 CET 2011


One method is to duplicate your contacts/contactgroups and apply those 
to your escalations.  For example:

normaluser1 -> notification commad - normal notification format
escuser1 -> notification command - escalation notification format (same 
real person as normaluser1 but with a different notification command)

mynormalcontactgroup -> normaluser1- contact group for normal notifications
myescalationcontactgroup -> escuser1 - contact group for escaltions

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.

On 01/18/2011 12:20 PM, steve f wrote:
> Is it possible to create a unique email notification for a 
> serviceescalation ?
>
> 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.
>
> What I want to do, is send a unique email message if its an escalation.
>
> In commands.cfg I added the following :
>
>   # 'service-escalation-by-email' command definition
> define command{
>         command_name    service-escalation-by-email
>         command_line    /usr/bin/printf "%b" "***** Nagios Service 
> Escalation *****\n\nNotification Type: $NOTIFICATIONTYPE$ 
> Escalation\n\nService: $
> SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional 
> Info:\n\n$SERVICEOUTPUT$\nT
> HIS IS A SERVICE ESCALATION. YOU ARE BEING NOTIFIED BECAUSE THE ALERT 
> HAS NOT BEEN ADDRESSED YET." | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ 
> Service
> Alert Escalation: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" 
> $CONTACTEMAIL$
>         }
>
>
> 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??
>
>
> Thanks,
>
> Steve
>
>
> ------------------------------------------------------------------------------
> 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.
> http://p.sf.net/sfu/oracle-sfdevnl
>
>
> _______________________________________________
> 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

-- 
Thanks,
Chris Waters
WAN/LAN Technician
Information Systems - Networks
JELD-WEN, Inc.
cwaters at jeld-wen.com
541-882-3451  x2109

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110118/b73bf8a7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4280 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110118/b73bf8a7/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/oracle-sfdevnl
-------------- 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