How to configure multiple Spectrum AlarmNotifier applications to use different scripts and application names
search cancel

How to configure multiple Spectrum AlarmNotifier applications to use different scripts and application names

book

Article ID: 51999

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to configure multiple Spectrum AlarmNotifier applications to use different scripts and application names?

I would like to run multiple instances of Notifier so that I can integrate with other products such as NetCool without modifying my current production AlarmNotifier.

Environment

Release: Any
Component:

Resolution

To configure multiple Spectrum AlarmNotifier applications to use different scripts and application names:

1. For each AlarmNotifier application, create a new folder in the $SPECROOT/Notifier directory.  For example:   AlarmNotifier_email

2. Copy the following files from the $SPECROOT/Notifier/ directory to your new $SPECROOT/Notifier/AlarmNotifier_email folder:

.alarmrc

SetScript

ClearScript

UpdateScript


3. Edit the $SPECROOT/Notifier/AlarmNotifier_email/.alarmrc file:

    a. Modify the value of the SET_SCRIPT, CLEAR_SCRIPT, and UPDATE_SCRIPT parameters to point to the custom scripts for that application.  For example:


SET_SCRIPT=usr/Spectrum/Notifier/AlarmNotifier_email/SetScript
CLEAR_SCRIPT=usr/Spectrum/Notifier/AlarmNotifier_email/ClearScript
UPDATE_SCRIPT=usr/Spectrum/Notifier/AlarmNotifier_email/UpdateScript


    b. For the application name, modify the APPLICATION parameter to specify a unique application name. For example:

APPLICATION=AlarmNotifier_email

4. Copy the $SPECROOT/lib/SDPM/partslist/ALARMNOTIFIER.idb into the same working directory ($SPECROOT/lib/SDPM/partslist/) and rename it to match your application name.  For example:

ALARMNOTIFIER_EMAIL.idb

5.  Edit the ALARMNOTIFIER_EMAIL.idb and change the parameters:

# Processd Install Ticket for AlarmNotifier
PARTNAME;ALARMNOTIFIER;
APPNAME;AlarmNotifier_email;
WORKPATH;$SPECROOT/Notifier/AlarmNotifier_email;
LOGNAMEPATH;$WORKPATH/AlarmNotifier_email.OUT;
#ADMINPRIVS;N;
AUTORESTART;y;
AUTOBOOTSTART;y;
#STATEBASED;N;
NUMPROCS;1; // one per host
RETRYTIMEOUT;600; // 10 minutes
TICKETUSER;spectrum;
RETRYMAX;3;     // 3 retries allowed
STARTPRIORITY;30;
SERVERPROCESS;Y;
#ENV;<var>=<value>;
ARGV;$SPECROOT/Notifier/AlarmNotifier -r usr/Spectrum/Notifier/AlarmNotifier_email/.alarmrc<CSEXE>; 

You will need to restart the processd for this idb file to take effect.  This will stop the SpectroSERVER:

systemctl stop processd

systemctl start processd

 

 

 

Additional Information

 
You can name the Notifier files whatever you like.  You just need to make sure all references to the files match the filenames.
Also, you do not need to create a new folder and move the files in.  You could create copies of the .alarmrc, SetScript, ClearScript, and UpdateScript and rename them.  In your updated .alarmrc you need to change the APPLICATION_NAME as well as the SET_SCRIPT, CLEAR_SCRIPT, and UPDATE_SCRIPT entries.