normaluser1 -> notification commad - normal notification formatescuser1 -> 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 escaltionsThere 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-emailcommand_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 [email protected] 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. [email protected] 541-882-3451 x2109
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ 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 [email protected] 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
