Unique Email Notification for Service Escalation??

Yueh-Hung Liu yuehung.liu at gmail.com
Wed Jan 19 03:06:57 CET 2011


http://exchange.nagios.org/directory/Addons/Notifications/%2A-Notification-Managers/Rule%252DBased-Notifier/details

this can define which commands should be used to notify contacts by
referring notification number.


On Wed, Jan 19, 2011 at 4:20 AM, steve f <a31modela at hotmail.com> 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
>

------------------------------------------------------------------------------
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





More information about the Users mailing list