Send emails to different addresses for different events in SMARTS?
book
Article ID: 304315
calendar_today
Updated On:
Products
VMware Smart Assurance
VMware Telco Cloud Service Assurance
Issue/Introduction
SYMPTOMS:
- How can I send emails to different addresses for different events?
Environment
SMARTS - 10.1.x
SMARTS DM - 2.x
TCSA -2.x
Resolution
If you want to send email to different sets of users based on the event, please follow the directions below.
As an example: you want to send email for switch down events to [email protected] and you want to send email for router down events to router_down@xyz:1- Create a notification list called
router_downNL for all router down events.
2- Create a notification list called
switch_downNL for all switch down events.
3- Copy
local\conf\notifier\mail-notify.conf to local\conf\notifier\mail-notify-router_down.conf.4- Copy
local\conf\notifier\mail-notify.conf to local\conf\notifier\mail-notify-switch_down.conf.5- Edit mail-notify-router_down.conf.username@localhost
TO
Recipients = router_down@xyz
B. Change:
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "Default"
}
TO
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "router_downNL"
}NOTE- Other parameters in this file, such as MailServer and SenderId, have to be configured as well.
6- Edit mail-notify-switch_down.conf
A. Change: Recipients = username@localhost
TO
Recipients = switch_down@xyz
B. Change:
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "Default"
}
TO
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "switch_downNL"
}NOTE - Other parameters in this file, such as MailServer and SenderId, have to be configured as well.
7- Start the adapter for router downs.
BASEDIR/smarts/bin/sm_notify --output=router_down_email_notifier --conf=mail-notify-router_down mail8- Start the adapter for switch downs
.
BASEDIR/smarts/bin/sm_notify --output=switch_down_email_notifier --conf=mail-notify-switch_down mail
Feedback
thumb_up
Yes
thumb_down
No