Smarts: Configuring and and Registering multiple mail-notifiers as Services in SMARTS
search cancel

Smarts: Configuring and and Registering multiple mail-notifiers as Services in SMARTS

book

Article ID: 304160

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


How to Configure and Register multiple mail-notifiers as Services?
Configuring and and Registering multiple mail-notifiers  as Services in SMARTS


Environment

VMware Smart Assurance - SMARTS

Resolution

1. Create a separate mail-notify.conf file for each instance required.

BASEDIR/SAM/smarts/local/conf/notifier
mail-notify.conf
mail-notify2.conf
mail-notify3.conf

2. Configure the parameters below in each file appropriately
MailServer, SenderId, Recipients, NLName, and initialEventDelay

It is recommended that the user configure the initialEventDelay parameter in the file to a value of 1 so that the adapter only sends new events upon restart.  Otherwise, recipients will get the notifications previously sent by the previous adapter process.  Do not change eventSmoothingInterval and minimumCertainty = 0.01 as they are not functional.
3. Test each mail adapter via the CLI
BASEDIR/SAM/smarts/bin/
sm_notify -s INCHARGE-SA --conf=mail-notify2.conf --debug mail

4. Register each instance as a Service but you MUST use different values
for the following parameters --description, Servicename ic-<name>,--conf and --output=

Example Mail Adapter 2

BASEDIR/SAM/smarts/bin/sm_service install --startmode=manual "--description=SAM Mail Adapter 2" ic-email-adapter-2 BASEDIR/SAM/smarts/bin/sm_notify --debug
--conf=mail-notify2.conf --output=mail-adapter2 mail 
----------------
Expected Output
sm_ntservice: service ic-email-adapter-2 has been installed.

Example Mail adapter 3

BASEDIR/SAM/smarts/bin/sm_service install --startmode=manual
"--description=SAM Mail Adapter 3"  ic-email-adapter-3 BASEDIR/SAM/smarts/bin/sm_notify --debug --conf=mail-notify3.conf --output=mail-adapter3 mail