Page 1 of 1

Use Nagios XI API to acknowledge problem

Posted: Fri Apr 07, 2017 3:06 pm
by welldynesystems
Do any of the included API's in Nagios XI provide a way to acknowledge problems? I'd like to use the API to get open problems, and then acknowledge the problem with a ticket number?

Re: Use Nagios XI API to acknowledge problem

Posted: Sun Apr 09, 2017 8:29 pm
by Box293
I don't think the XI API does however you can use the command pipe (or curl request) to acknowledge a problem.

Here is the command syntax:
https://old.nagios.org/developerinfo/ex ... mand_id=40

Here are some examples of using the command pipe with curl:
http://sites.box293.com/nagios/guides/t ... e-and-cgis

However while writing this I think that a simpler, more secure method is to use NRDP:
https://assets.nagios.com/downloads/nrd ... erview.pdf
It's still done with a curl command but does not require a username or password, it uses the API key.

I should write something up for that ...

Re: Use Nagios XI API to acknowledge problem

Posted: Mon Apr 10, 2017 8:59 am
by welldynesystems
Thank you. I will review these links. I am already using the CGI method to acknowledge alarms, but it requires username/password authentication. I'd like to stick with a single method (the XI API) to query for problems and also to acknowledge. Maybe this could be a future feature.

Re: Use Nagios XI API to acknowledge problem

Posted: Mon Apr 10, 2017 2:20 pm
by ssax
I've requested that a feature request be added for this:

Code: Select all

XI - FR - API - Add the ability to acknowledge through the API
Thank you