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.
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:
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 |
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"
]
);