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

Document created by Declan_Dempsey Employee on Sep 1, 2016Last modified by Declan_Dempsey Employee on Dec 17, 2016
Version 2Show Document
  • View in full screen mode

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

Document ID:  TEC1989927
Last Modified Date:  2/19/2016

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.

Attachments

    Outcomes