Use Nagios XI API to acknowledge problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
welldynesystems
Posts: 3
Joined: Mon Nov 16, 2015 11:42 am

Use Nagios XI API to acknowledge problem

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Use Nagios XI API to acknowledge problem

Post 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 ...
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
welldynesystems
Posts: 3
Joined: Mon Nov 16, 2015 11:42 am

Re: Use Nagios XI API to acknowledge problem

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Use Nagios XI API to acknowledge problem

Post 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
Locked