Adding additional NagiosXI API Improvements

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tristan.self
Posts: 1
Joined: Wed Dec 23, 2015 9:03 am

Adding additional NagiosXI API Improvements

Post by tristan.self »

Hi,

We have a large NagiosXI deployment monitoring about 2000 hosts and about 8500 services. The majority of this is fairly static configuration, however we have the need to try to automate as much of the process of creating and removing hosts/services and tweaking settings as we can. The API is well documented but we've found it limited for all the functionality we would usually need. We would like the additional functionality to:

1. Create a new server and link it to an existing host group or service definition upon creation. (we can create a host but we can't then can't apply an existing service definition or host group to it seemingly).
2. Schedule downtime via CLI/API (so we’re not clicking on tens of servers via the GUI, even using the bulk downtime scheduling tool is cumbersome).
3. Acknowledge an alert via CLI/API (so we’re not clicking on tens of servers via the GUI, even using the bulk acknowledgement tool is cumbersome).
4. Adjust the alert thresholds for a host's service via CLI/API, currently it appears you can create a service with a certain set of thresholds, but you can't then alter this via the API.

Are there any plans for implementing more functionality into the API (above) in future releases?

Thanks

Tristan
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Adding additional NagiosXI API Improvements

Post by dwhitfield »

2-4 are definitely happening in the future. I can't say exactly when.

As for #1, what version of XI are you running? In the current version you should be able to use all host and service directives. Are you getting an error? Can you put that error in a code block?
Locked