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
Nagios Server API
Re: Nagios Server API
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?
Former Nagios employee
Re: Nagios Server API
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' .
Former Nagios Employee
Re: Nagios Server API
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
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
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
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Nagios Server API
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...
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
Ah, my mistake!
I will see about getting the REST API documentation we have added to the KB or somewhere more conspicuous.
I will see about getting the REST API documentation we have added to the KB or somewhere more conspicuous.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/