How to prevent Spectrum AlarmNotifier from sending an update e-mail when the alarm occurrence increments
search cancel

How to prevent Spectrum AlarmNotifier from sending an update e-mail when the alarm occurrence increments

book

Article ID: 46703

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

I have an existing alarm where the occurrences increment. I get an e-mail from SANM every time the occurrences increment. Is there a way to prevent that from occurring?



Environment

Release: Any
Component:

Resolution

This can be done by configuring AlarmNotifier to receive the occurrences value and then modifying the UpdateScript to check the value of the occurrences and not send an e-mail if occurrences is greater than 1.

To configure AlarmNotifier to receive the occurrences value:

1.  Edit the .alarmrc file associated with that instance of AlarmNotifier and add 0x11fc5 (attribute id for occurrences) to the EXTRA_ATTRS_AS_ARGS parameter. The following is an example:

EXTRA_ATTRS_AS_ARGS=0x0023000e,0x11fc5

2. Edit the UpdateScript associated with that instance of AlarmNotifier to account for the occurrences attribute to the .alarmrc file. The follow is an example:

OCCR="$2"

NOTE: In the above example, "$2" is used because the occurrence attribute 0x11fc5 is the second attribute in the EXTRA_ATTRS_AS_ARGS parameter. If 0x11fc5 was the third attribute in the XTRA_ATTRS_AS_ARGS parameter, you would need to use "$3". Please reference the "Passing CA Spectrum Attributes to Scripts" section of the documentation for more information on using the EXTRA_ATTRS_AS_ARGS parameter. 

3. Modify the UpdateScript associated with that instance of AlarmNotifier to check the value of occurrences (in this example $OCCR) and if greater than 1, do not send a an e-mail.