Record Snow ticket number alongside service or host alert?
Posted: Wed Feb 21, 2024 6:00 am
Hello, we are using a python script as an event handler to send alerts to our ticketing system ServiceNow (Snow) as incidents. For example, when a host is down or unreachable it will create an incident via the Snow RestAPI containing the information (from macros) regarding the host down alert.
We are looking for a way for the python script to add the incident number (returned by Snow) in the Nagios XI alert or host object in one of the macro fields, so when the host becomes healthy again the event handler python script can read the recorded incident number and resolve it.
I've looked through the macro and API documentation and I cant seem to find a suitable way to do this or using a free variable. Has anyone achieved something like this if so any advice will be appreciated
Our Nagios System info:
Nagios XI version: 5.11.1
Release info: ********* 4.18.0-513.11.1.el8_9.x86_64 x86_64
Red Hat Enterprise Linux release 8.9 (Ootpa)
Gnome is not installed
We are looking for a way for the python script to add the incident number (returned by Snow) in the Nagios XI alert or host object in one of the macro fields, so when the host becomes healthy again the event handler python script can read the recorded incident number and resolve it.
I've looked through the macro and API documentation and I cant seem to find a suitable way to do this or using a free variable. Has anyone achieved something like this if so any advice will be appreciated
Our Nagios System info:
Nagios XI version: 5.11.1
Release info: ********* 4.18.0-513.11.1.el8_9.x86_64 x86_64
Red Hat Enterprise Linux release 8.9 (Ootpa)
Gnome is not installed