Auto resolve Zabbix notification incident

cbelsch
Giga Contributor

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?

 

2 REPLIES 2

Tony Chatfield1
Kilo Patron

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;
}

 

cbelsch
Giga Contributor

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...