Checking the status of a Zabbix event in ServiceNow primarily relies on how your integration is configured, specifically how Zabbix maps its problem/resolution states to ServiceNow record states, and whether a unique identifier is used for correlation.
Here's a breakdown of how to check and what to look for:
Key Concept: Correlation and Bi-Directional Updates
For an accurate status, your Zabbix-ServiceNow integration should:
- Send a unique identifier: When Zabbix creates an event (e.g., Incident, Alert, Event record) in ServiceNow, it should pass a unique Zabbix ID (like
eventid or triggerid) and store it in a specific field in the ServiceNow record (e.g., correlation_id, u_zabbix_event_id, external_id). This is crucial for linking.
- Send resolution updates: When the Zabbix problem resolves, Zabbix should send another update to ServiceNow, using that same unique identifier, to update the corresponding ServiceNow record's status (e.g., set Incident
State to "Resolved" or "Closed").
How to Check Zabbix Event Status in ServiceNow
You'll primarily look at the State or Status field of the ServiceNow record created by Zabbix.
Method 1: Check the Specific Incident/Alert/Event Record
- Identify the Record Type: Determine if Zabbix creates Incidents, Alerts (in Event Management), or custom Event records in ServiceNow.
- Find the Record:
- By Search: Go to the respective table (e.g.,
Incident, Alerts, em_event). Use the search bar or filters:
- Filter by
Source or Monitoring Tool field (should be "Zabbix").
- Search by keywords from the Zabbix alert (e.g., hostname, trigger name, problem description).
- Best Way: Use the Correlation ID. If you know the Zabbix
eventid or triggerid of the problem, search for that ID in the ServiceNow field that stores it (e.g., correlation_id, u_zabbix_event_id, external_id). This is the most reliable way to find the exact matching record.
- From Notifications: If you received a ServiceNow notification for the Zabbix event, click the link in the notification – it will take you directly to the record.
- Check the Status Fields: Once you've opened the record:
- For Incidents: Look at the
State field (e.g., "New", "In Progress", "On Hold", "Resolved", "Closed"). An "Active" problem in Zabbix should correspond to an "Open", "New", or "In Progress" state in ServiceNow.
- For Alerts (Event Management): Look at the
State field (e.g., "Open", "Closed", "Flapping", "Maintenance"). An active Zabbix problem usually keeps the Alert State as "Open".
- For Custom Event Records: Look at the custom
Status field your integration might have defined (e.g., "Active", "Resolved").
- Check the
Active Flag: Many ServiceNow tables have an Active (boolean) field. If Active is true, the record is considered open/active. If Active is false, it's considered closed/inactive.
Method 2: Review ServiceNow Event Management Module (if used)
If your organization uses ServiceNow Event Management (ITOM Health), Zabbix alerts typically flow into the em_event table, then get processed into em_alert records, which may then generate Incidents.
- Navigate to Event Management: Go to
Event Management -> All Events or Alerts.
- Filter/Search:
- Filter by
Source = "Zabbix".
- Search for the hostname or trigger name.
- Examine the Alert:
- Alert State: Look at the
State column. An active Zabbix problem will usually show the Alert State as "Open". If Zabbix sends a resolution, the alert should transition to "Closed".
- Associated Incident: If the alert created an Incident, there will be a link to it. Check the
State of that associated Incident as well.
Method 3: Cross-Reference with Zabbix Frontend
The ultimate source of truth is Zabbix itself. If you're unsure about the ServiceNow status, confirm it in Zabbix:
- Log into Zabbix: Access your Zabbix server's web interface.
- Go to Problems: Navigate to
Monitoring -> Problems.
- Search: Use filters to find the specific problem (by host, trigger name, etc.).
- If the problem is listed under
Problems, it is active in Zabbix.
- If it's not listed under
Problems, but you find it in the History for that trigger/host, it means it has resolved in Zabbix.
Why a Zabbix Event Might Still Show Active in ServiceNow
Even if the problem resolved in Zabbix:
- No Resolution Update Sent: The most common reason. The Zabbix action or webhook configuration might not be set up to send a resolution message back to ServiceNow.
- Failed Resolution Update: The resolution message was sent by Zabbix but failed to be processed by ServiceNow (e.g., incorrect API endpoint, authentication issues, network problem, error in ServiceNow script/transform map).
- Check Zabbix logs: Look at the "Action operations" in Zabbix (under
Administration -> Audit -> Actions) for the specific action that sends to ServiceNow. It should show both problem and resolution attempts.
- Check ServiceNow logs: Look at
System Logs -> All. If using Scripted REST APIs, check the corresponding System Web Services logs for incoming requests. If using a MID Server, check its logs.
- Incorrect Correlation: The resolution message was sent, but ServiceNow couldn't find the original record to update because the unique identifier didn't match. This often leads to new (unnecessary) incidents being created for resolved Zabbix problems, or the original one just staying open.
- ServiceNow Automation/Rules: ServiceNow might have its own auto-closure rules. For instance, an Incident might move to "Resolved" but only "Close" after a certain number of days without updates. Your Zabbix resolution might only set it to "Resolved", and it needs to wait for the auto-closure.
By following these steps, you should be able to accurately determine the status of Zabbix events in your ServiceNow instance and troubleshoot any discrepancies.