Precedence value

At the same time that an event map is selected to handle the event, a numerical precedence value is associated with an event. This precedence value is used by the RCA plugin in cases where there are multiple events on the same entity. The event with the highest precedence value on the entity is used to suppress other events.

A precedence value is configured for an event ID using the Event Gateway config.precedence table. The config.precedence table is configured in the EventGatewaySchema.cfg configuration file. This file is located at: $NCHOME/etc/precision/EventGatewaySchema.cfg.

The following example shows how the config.precedence table is configured in the EventGatewaySchema.cfg configuration file.

The section of code that is relevant to configuring a precedence value is listed in the following lines from the example. This example insert configures the Event Gateway to assign a precedence value of 910 to all events that have the EventId field set to SNMPTRAP-LinkDown. These are trap events originating from a Tivoli Netcool/OMNIbus probe.

The following table describes the relevant lines from this example:
Table 1. Lines of code relevant to the incoming event filter
Line numbers Description
1 Configure the incoming filter by making an insert into the config.precedence table.
3 Specify an insert into the Precedence field of the config.precedence table.
10 Set the Precedence field to the value 910.
insert into config.precedence
(
    Precedence,
    EventMapName,
    NcoEventId
)
values
(
    910,
    "LinkDownIfIndex",
    "SNMPTRAP-LinkDown"
);