How to set AlarmNotifier to display in the ProbableCause field the text from the alarm title

book

Article ID: 37674

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Problem:

In AlarmNotifier the ProbableCause field for is displaying whatever is displayed in the type field of thedetails 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.

Thats how we do the dynamic alarm title.

 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.

Environment

Release: SPDBIP99000-9.3-Spectrum-Device Based Suite-IP Services Manager
Component: