Unique Email Notification for Service Escalation??

steve f a31modela at hotmail.com
Tue Jan 18 21:20:29 CET 2011


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