Nagios Server API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 1
Joined: Tue Jun 21, 2016 5:49 pm

Nagios Server API

Post by [email protected] »

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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Server API

Post 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?
Former Nagios employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Server API

Post 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' .
Former Nagios Employee
CWSI
Posts: 30
Joined: Tue Oct 28, 2014 7:41 am

Re: Nagios Server API

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Server API

Post 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
Former Nagios employee
https://www.mcapra.com/
CWSI
Posts: 30
Joined: Tue Oct 28, 2014 7:41 am

Re: Nagios Server API

Post 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...
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Server API

Post by mcapra »

Ah, my mistake!

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