Page 1 of 1

Integrate Nagios with Third Party Ticketing tool

Posted: Tue Feb 05, 2019 5:44 am
by sona9768
Hi,

I'm using Nagios XI at my environment and want to integrate with a third party ticketing system, but i m unable to find any documentation on Internet. I want to integrate it with Manage Engine or Service Desk which ever is best. My requirement is that whenever an alert is generated on nagios, A ticket should be automatically created on the ticketing system and when the alert gets cleared the opened ticket should automatically get closed.
I tried to search it on nagios exchange forum but only found plugins and not any documentation as how to integrate it.


I'm using Nagios XI at my environment and want to integrate with a third party ticketing system, but i m unable to find any documentation on Internet. I want to integrate it with Manage Engine or Service Desk which ever is best. My requirement is that whenever an alert is generated on nagios, A ticket should be automatically created on the ticketing system and when the alert gets cleared the opened ticket should automatically get closed.
I tried to search it on nagios exchange forum but only found plugins and not any documentation as how to integrate it.

Re: Integrate Nagios with Third Party Ticketing tool

Posted: Tue Feb 05, 2019 1:35 pm
by npolovenko
Hello, @sona9768. I'm not familiar with the mentioned ticketing systems, but generally speaking, the goal is to find a script or a command that nagios can execute to open and close tickets on the ticketing system. This could be an API command or a script. Then you'd set up nagios to trigger that script every time a host or a service check produces an alert.
Here's an article on using event handlers with Nagios:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
In your case, the event handler would be a script that opens or closes tickets in the ticketing system.

Re: Integrate Nagios with Third Party Ticketing tool

Posted: Tue Feb 05, 2019 8:50 pm
by mcapra
npolovenko wrote:In your case, the event handler would be a script that opens or closes tickets in the ticketing system.
A convenient hook for opening/closing tickets in the ticketing system might be the REST API for the respective platforms:
https://www.manageengine.com/api/
https://help.servicedeskplus.com/api/rest-api.html

curl is a cli-based web client that ships with practically all CentOS and RHEL installations. In this example, I create a Nagios event handler that integrates a Nagios Core installation with the Twilio API:
https://support.nagios.com/forum/viewto ... 94#p252294

Though this would look a bit different in Nagios XI, the principle remains the same. You configure an event handler command, then feed information about a specific alert (via macros) into that command. I imagine you could rig up a curl call to communicate with Manage Engine or Service Desk just as well.

Re: Integrate Nagios with Third Party Ticketing tool

Posted: Wed Feb 06, 2019 4:39 pm
by cdienger
Hopefully the advice from @mcapraand @npolovenko are enough to get you in the right direction, @sona9768. Let us know if you have any additional questions we can help with.