Event map selection using the Event Gateway

Use this information to understand how the Event Gateway is configured to select event maps to use for event handling.

If you choose to configure event map selection using the Event Gateway, then you must configure 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 selection of event maps to use for event handling is listed in the following lines from the example. This example insert configures the Event Gateway to use the event map LinkDownIfIndex for 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.
4-5 Specify an insert into the EventMapName and NcoEventIds field of the config.precedence table.
10 Set the EventMapName field to the value LinkDownIfIndex.
11 Set the NcoEventId field to the value of the EventId field in the alerts. status table; in this example, the event map LinkDownIfIndex is selected for all events where the alerts.status EventId value is SNMPTRAP-LinkDown.
insert into config.precedence
(
    Precedence,
    EventMapName,
    NcoEventId
)
values
(
    910,
    "LinkDownIfIndex",
    "SNMPTRAP-LinkDown"
);