Bind alerts to a specific host CI
Create an event rule to bind alerts to the correct device CI. An incoming event from a device CI can bind to an alert based on event rule transform information. However, first identify the host CI that the device is running on.
Before you begin
About this task
- When binding alerts to a host, such as a computer, switch, or router CI:
- Populate the Node field in the event with the CI name, FQDN, IP, or MAC address value. The bind is successful even if host has more than one IP address or MAC address.
- If you want to use a unique identifier that is not one of the four
mentioned in the preceding point, populate the event rule
CI Identifier (ci_identifier) field with
one or more unique identifiers of the CI. This field should be in
JSON format. For example, to use a unique identifier that is not one
of the four mentioned above, add a CI
Identifier (ci_identifier) filter field with one or
more unique identifiers of the CI. If the host CI is
VMWare VM, and it has a field called
MOID, use the JSON format and specify:
{"moid":"<CI moid>"}
Note:
The node field must be either empty or non-resolvable. If the node field is resolvable, the ci_identifier is ignored.
- Create an event rule with a filter that captures events on the device type
you want. In the event rule, select the Transform
check box and select the appropriate CI Type:
Device to bind CI Type File System cmdb_ci_file_system Port cmdb_ci_network_adapter Storage Device cmdb_ci_storage_device Volume cmdb_ci_storage_volume
Procedure
Example
- Navigate to .
- Select New, and in Event Rule Info, fill in the appropriate fields of the event rule.
- Select the Binding tab.
- Select Override default binding.
- In the Binding type field, select CI field matching.
- In the CI type field, select File System.
- Select Save.
In the Binding Device Maps [em_binding_device_map] table, ensure that File System is mapped to cmdb_ci_file_system.
In the File Systems [cmdb_ci_file_system] table, ensure that the required values exist, for example, name1 and name2, as depicted in the following image.
The result of the binding performed by the "test binding" event rule is shown in the Processing Notes field of the event.