Smarts: How can I send emails to different addresses for different events in SMARTS?
search cancel

Smarts: How can I send emails to different addresses for different events in SMARTS?

book

Article ID: 304315

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How can I send emails to different addresses for different events?

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I send emails to different addresses for different events?


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.
root@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 = root@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 mail


8- Start the adapter for switch downs.
BASEDIR/smarts/bin/sm_notify --output=switch_down_email_notifier --conf=mail-notify-switch_down mail