Incoming event filter: default configuration

This example shows how the incoming event filter is configured in the EventGatewaySchema.cfg configuration file. This standard insert for the incoming event filter handles both single-domain and multi-domain systems.

The incoming event filter is configured in the EventGatewaySchema.cfg configuration file. This file is located at: $NCHOME/etc/precision/EventGatewaySchema.cfg.

The following table describes the relevant lines from this insert.
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.nco2ncp table.
3 Specify an insert into the EventFilter field of the config.nco2ncp table.
9 - 10 Set the filter as follows:

"LocalNodeAlias <> '' and (NmosDomainName = '$DOMAIN_NAME' or NmosDomainName = '')"

This clause checks that the LocalNodeAlias column of the event has been populated. In addition, the filter checks whether the domain name specified in the event (held in the NmosDomainName field) is the same as the domain that is handled by this Event Gateway (held in the $DOMAIN_NAME variable). If there is a match, or if the event has no associated domain (NmosDomainName - ''), and the LocalNodeAlias column has been populated, then the event passes the filter.

The following table describes the relevant lines from this insert.
insert into config.nco2ncp
(
    EventFilter,
    StandbyEventFilter,
    FieldFilter
)
values
(
    "LocalNodeAlias <> '' and (NmosDomainName = 
         '$DOMAIN_NAME' or NmosDomainName = '')",
    "EventId in ('ItnmHealthChk', 'ItnmDatabaseConnection')",
    [
        "Acknowledged",
        "AlertGroup",
        "EventId",
        "FirstOccurrence",
        "LastOccurrence",
        "LocalNodeAlias",
        "LocalPriObj",
        "LocalRootObj",
        "Manager",
        "NmosCauseType",
        "NmosDomainName",
        "NmosEntityId",
        "NmosEventMap",
        "NmosManagedStatus",
        "NmosObjInst",
        "NmosSerial",
        "Node",
        "RemoteNodeAlias",
        "EventId",
        "Serial",
        "ServerName",
        "Severity",
        "Summary",
        "SuppressEscl",
        "Tally",
        "Type"
    ]
);