Associate an event to a specific node
There are two ways to associate a given event to an existing node, prior to sending the event to the event bus:
Set the event’s
nodeIdto the database ID of the desired node.
For requisitioned nodes, set the
_foreignIdas parameters to the event. In this case, any incoming event without a
nodeIdand these two parameters will trigger a database lookup. If a node is found, the
nodeIdattribute will be dynamically set on the event, regardless of which method has been used to send it to the event bus.
Anatomy of an event
Events are structured historical records of things that happen in Meridian and the nodes, interfaces, and services it monitors. Every event has a number of fixed fields and zero or more parameters.
- UEI (Unique Event Identifier)
A String that uniquely identifies the event’s type. UEIs are typically formatted in the style of a URI, but the only requirement is that they start with
- Event Label
A short, static label that summarizes the gist of all instances of this event.
A long-form description of all instances of this event. You can use HTML formatting to format the body of the event text.
- Log Message
A long-form log message that describes this event, optionally including expansions of fields and parameters so that the value is tailored to the event at hand. It includes the
dest(destination) attribute, which defines how the event is treated, including the following options:
Log the event in the database and display it in the web UI.
Log the event in the database, but do not display it.
Neither log the event in the database nor display it.
Do not log the event in the database, but still send it to daemons that are listening for this type of event, such as those being used to generate notifications. Note that eventd and alarmd do not process this type of event.
This applies only to traps coming in via trapd. This will cause trapd to discard the trap without creating an event. Other daemons that are listening for this type of event will not receive this event.
A severity for this event type. Possible values range from
Critical. Refer to our notes on severities for tips on how to best set the event levels.
- Event ID
A numeric identifier used to look up a specific event in the Meridian system.
- Operator Instruction
A set of instructions for an operator to respond appropriately to an event of this type.
- Alarm Data
If this field is provided for an event, Meridian will create, update, or clear alarms for events of that type according to the alarm-data specifics.