Auto resolve Zabbix notification incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 02:33 PM
We have Zabbix as a monitoring system - we currently have it set up with a userID in service now with these roles
- rest_api_explorer
- sn_incident_write
ServiceNow monitoring and integration with Zabbix
Incidents are logged, and subject and notes are updated when Zabbix sends a 'resolved' email but we have to manually resolve the incident ticket ourselves.
How can I set it up, so that when Zabbix sends the "resolved" notice, the ticket will go into resolved status?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 05:35 PM
Hi, unfortunately your post is not clear regarding your configuration, are you already using an inbound action to populate work_notes/subject from Zabbix email?
If yes then you should just need to update your existing inbound action to set the state of the incident record (and mandatory fields when you receive a resolution email. IE
if(someEmailidentifier == 'resolved') {
//OOB Incident resolution state
current.state = 6;
// Resoution chocielist /nav_to.do?uri=sys_dictionary.do?sys_id=5aaf4782c51421108c8b506e733c4c31
current.close_cocde = 'someResolutionChoice';
current.close_notes = 'someEmailContentorHardCodedText;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2023 08:06 AM
Thanks for the reply.
Yes, we are already populating work notes & description from the automated Zabbix email. We will try using your example script - assuming we just use what we currently have listed in our drop down for 'someResolutionChoice', and the close notes can be any text...