Hello,
I'm trying to implement an integration between Nagios XI and a JIRA ticket system. For that I would like to use the REST API, to let JIRA acknowledge service/host problems and/or schedule downtimes.
At the moment I'm trying to understand the usage of REST API. When I'm trying to call one of the examples URIs in the help section, I'm getting the following error message:
"The requested URL /nagiosxi/api/v1/objects/hoststatus was not found on this server."
Three questions:
1. Is it possible to use the new JSON REST API for my use case?
2. Any ideas about the failure message?
3. Is there any documentation in addition to the help section in our XI installation? (I just find docu about the old API, e.g. https://exchange.nagios.org/directory/D ... PI/details)
Find our Installation profile attached.
Best regards,
Christoph.
Problem with REST API
Problem with REST API
You do not have the required permissions to view the files attached to this post.
Re: Problem with REST API
I haven't tried integrating XI to (and using the REST API with) JIRA, but It should be possible. Unfortunately, we don't have it documented.1. Is it possible to use the new JSON REST API for my use case?
Are you using SSL on this server? What is the output of the following command?2. Any ideas about the failure message?
Code: Select all
curl -XGET "http://<ip address>/nagiosxi/api/v1/objects/hoststatus?apikey=<your api key>&pretty=1"Currently, the "Help" menu is all we have on the "new" REST API.3. Is there any documentation in addition to the help section in our XI installation? (I just find docu about the old API, e.g. https://exchange.nagios.org/directory/D ... PI/details)
https://support.nagios.com/kb/article.php?id=176
Be sure to check out our Knowledgebase for helpful articles and solutions!