This guide provides instructions for enhancing your existing ServiceNow webhook with additional features, such as updating events with Incident Number and URL, and auto-closing incidents upon event resolution. These enhancements are tailored for Zabbix 6.4 installations.
To configure the ServiceNow webhook, follow the instructions provided in zabbix/zabbix/templates/media/servicenow.
We're introducing the following enhancements:
- Caller ID Addition: Incorporate the Caller ID when logging tickets in ServiceNow.
- CMDB CI Inclusion: Add CMDB CI details to incidents for better tracking.
- Contact Type Specification: Include the Contact Type in incidents for classification.
- Ticket Updates: Update tickets with event changes via comments.
- Auto-Closure: Automatically close tickets when events are resolved.
Deploying these enhancements offers several advantages:
- Enhanced Reporting: Custom details improve incident documentation.
- Targeted Assignments: Assign incidents to specific groups based on criteria.
- Streamlined Process: Automating incident closure frees up engineers for technical tasks.
- Accurate Metrics: Time to Detect (TTD) and Time to Resolve (TTR) metrics become more reliable.
Follow these steps to implement the upgrades:
- Additional Parameters: Introduce new parameters as needed:
- caller_id: Provide the sys_id of the user for the Caller field.
- cmdb_ci: Utilize {EVENT.TAGS.sysid} to populate the Configuration Item field.
- contact_type: Set as "monitoring" for Channel field classification.
- zabbix_auth: Use {$ZABBIX_AUTHCODE} to authenticate event updates.
- zabbix_zurl: Incorporate {$ZABBIX_ZURL} for event update URLs.
-
API Token Configuration: Set up an API Token in Zabbix for zabbix_auth.
-
Global Macros Configuration: Configure the following macros in Global Macros.
- Host Configuration: Add the "sysid" tag to hosts for updating the Configuration Item when an incident is logged.
- Script Replacement: Replace the existing script with the one provided in Script.js.
These upgrades are compatible with Zabbix version 6.4.