Example: Binding alerts to non-host CIs
Bind alerts to an application service (a non-host CI) using event rules and event field mapping. This example demonstrates how to achieve this by leveraging the IP address associated with the service.
Before you begin
Role required: evt_mgmt_admin
About this task
When an event is generated, it may not always include the exact name of the Application Service it affects. Instead, it might provide details such as an IP address. In this example, suppose application services are identified by IP addresses. Since the goal is to bind the alert to an Application Service, you need to determine which service name corresponds to the given IP address.
To achieve this, follow these steps:
- Match the correct Application Service: Override the default binding and select Binding Type as CI field matching. The binding process needs to associate the alert with an Application Service, not a host. In the event rule, set the CI Type to Application Service so that the system searches for the service in the Application Service table (cmdb_ci_service_auto).
- Extract the IP address from the event description: The event might contain a message like Service is down. IP address is: 196.1.1.24. You need to extract the IP address from this description for further processing.
- Translate the IP address into a service name using Event Field Mapping: Use Event Field Mapping to look up the extracted IP address in the CMDB and find the associated application service. Once a matching service is found, its name is stored in the Name field of the event.
- Bind the alert to the correct Application Service: If the service name is identified, the alert's CI is populated with that service.