In AlarmNotifier we would like for the Probable Cause field to display what is being shown in the AlarmTitle.

book

Article ID: 40881

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

In AlarmNotifier the Probable Cause field for is displaying whatever is displayed in the type field of the details pane in Event Configuration.


So for example if it says:

LIVE HEALTH: TIME OVER THRESHOLD

or

LIVE HEALTH: UNUSUAL VALUE


That is what is displayed in the ProbableCause field of the AlarmNotifier output.


 However the requirement is to see in the ProbableCause field is whatever is being displayed in the alarm title (same as the description in the event message) for example:

"disk partition utilization has exceeded 99%"



Cause

The alarm title in OneClick is pulling information from the event message description field.

If you check the EvFormat file for the event the description is using 76620 and 76620 is 0x12b4c in decimal.

That's how we do the dynamic alarm title.

Environment

Release:  Any version
Component:

Resolution

Add an entry for 0x12b4c in the .alarmrc file in the field EXTRA_ATTRS_AS_ENVVARS:

EXTRA_ATTRS_AS_ENVVARS=0x12b4c


Then after this you would need to add an entry in the setscript file- If you use the Out Of Box setscript it would be an entry under:

echo "UserClearable: " $CLEARABLE

echo "ProbC: " $SANM_0x12b4c


After you have added this entry you will need to restart AlarmNotifier.


NOTE: In Windows environment, set the variable in upper case: 

echo "ProbC: " $SANM_0x12B4C