Page 1 of 1

Nagios Server API

Posted: Wed Jun 22, 2016 3:53 am
I would like to use nagios API for performing operations on server. Any useful documentation available for operations supported by api and how to use them.

Please share the documentation

Re: Nagios Server API

Posted: Wed Jun 22, 2016 10:02 am
by tmcdonald
Can you be more specific? What operations are you looking to perform, and are you looking to perform them on the Nagios server or on remote machines that may be monitored?

Re: Nagios Server API

Posted: Wed Jun 22, 2016 10:03 am
by rkennedy
There is a lot of documentation available in the Help menu link from the XI home page specifically for the API. It provides what's available, and examples on what to use. An older deprecated API is also available that may have useful information for you. You can find this one by navigating to Admin -> Manage Components -> Click wrench that represents 'Edit Settings' next to the 'Backend API URL' .

Re: Nagios Server API

Posted: Tue Aug 23, 2016 5:01 am
by CWSI
Is there any chance the RESTful API documentation can be added to the online knowledgebase? We're currently on an older version of XI (pre- the RESTful API being added), no real reason to upgrade at the moment but I'd really like to be able to see what is possible with the API to discuss with developers - having to deploy another XI server just to read this documentation seems a bit mad?

Re: Nagios Server API

Posted: Tue Aug 23, 2016 10:13 am
by mcapra
This document gives a bit of an overview of the REST API:
https://assets.nagios.com/downloads/nag ... nd_API.pdf

These are the documents referenced in the aforementioned help section:
https://www.youtube.com/watch?v=Opi2szolmzY
http://library.nagios.com/library/produ ... ample-code

Re: Nagios Server API

Posted: Thu Aug 25, 2016 2:16 pm
by CWSI
Hey thanks for replying so quickly.

Those documents all reference the old API, I'm looking for documentation on the new RESTful API. I understand from the documentation you can get this form the Admin section of a running XI server, but if you don't have one running on the new version that poses an issue. Just think this is something that should be available in the Knowledgebase...

Re: Nagios Server API

Posted: Thu Aug 25, 2016 3:00 pm
by mcapra
Ah, my mistake!

I will see about getting the REST API documentation we have added to the KB or somewhere more conspicuous.