How to configure a custom AlarmNotifier

book

Article ID: 196879

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

What would be the steps to create a custom AlarmNotifier?

Environment

Release : 10.2

Component : Spectrum Applications

Resolution

1. Make a copy of the existing $SPECROOT/Notifier/ directory.

2. Rename it to the desired name.

3. Edit the $SPECROOT/Notifier_ABC/.alarmrc file, and change the path of the SET_SCRIPT, CLEAR_SCRIPT, and UPDATE_SCRIPT variables.

4. Using the $SPECROOT/lib/SDPM/partslist/ALARMNOTIFIER.idb file as a template, create the $SPECROOT/lib/SDPM/partslist/NOTIFIER_ABC.idb file and edit it as follow:

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

5. To launch the NOTIFIER_ABC.idb by the Spectrum Process Daemon, restart the processed as follow:

a) Open a bash shell (bash -login) window as Spectrum Install Owner account

b) Navigate to the $SPECROOT/lib/SDMP/ directory

c) Run: ./processd --restart (Note: This command will not restart the SpectroSERVER application)

NOTE: In Spectrum 10.4.2.1 onwards do NOT run the ./processd.pl script. Run the ./processd --restart

https://knowledge.broadcom.com/external/article?articleId=201598

6. The AlarmNotifier process located in $SPECROOT/Notifier_ABC/ directory shows up in Windows Task Manager

7. The Notifier_ABC SANM Application should be visible in the Locater Search Results TAB.

If it was not created due to a problem you had to start the NOTIFIER_ABC via Spectrum Process Daemon, you will have to manually launch the AlarmNotifier.exe to create the Notifier_ABC SANM Application.

a) First, stop the NOTIFIER_ABC process via Install Ticket. In a bash shell (bash -login), navigate to the $SPECROOT/bin/ directory and run the following command line:

./cmdC.exe <SS_hostname> 2 NOTIFIER_ABC

b) Manually launch the AlarmNotifier.exe along with "-n" parameter from the $SPEROOT/Notifier_ABC/ directory. See the syntax below:

./AlarmNotifier.exe -n Notifier_ABC

c) Press <Ctrl> + <C> to end AlarmNotifier.exe process. (You may need to press <Ctrl> + <C> multiples times to end successfully)

d) Start the NOTIFIER_ABC process via Install Ticket. In a bash shell (bash -login), navigate to the $SPECROOT/bin/ directory and run the following command line:

./launchinstdbapp.exe <SS_hostname> NOTIFIER_ABC y NOTIFIER_ABC.OUT

e) The Notifier_ABC Application should be displayed in the Locater search.

8. You can then create the SANM Policy and SANM Filters.

 

Additional Information

How to configure Spectrum Alarm Notifier to send email notifications
https://knowledge.broadcom.com/external/article?articleId=21373

How to configure the ServiceAide (formerly known as CA Cloud Service Management) integration with SD_Notifier
https://knowledge.broadcom.com/external/article?articleId=10185

 

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-2/managing-client-applications/alarmnotifier/customizing-alarmnotifier/reinstalling-or-upgrading-ca-spectrum.html

When using a custom AlarmNotifier, created by using a non default-directory, the AlarmNotifier does not upgrade by the DX NetOps Spectrum migration task and it results in having AlarmNotifier executable files (and modules/libraries) not in sync with the upgraded DX NetOps Spectrum install. This may cause severe issues such as, having the "old_release Notifier" opening a connection to the "new_release SpectroSERVER". In this case you have to manually update the custom AlarmNotifier directory to cover the current release executables/modules.

Attachments