Page 1 of 1
Inventory Export or Report
Posted: Wed Jun 03, 2015 5:45 pm
by CFT6Server
I don't think this is an existing feature, but is there anyway I can get a report of hosts and services in XI? I need a complete list for auditing purposes. We ideally would like these to ensure that we haven't missed any new hosts and devices or decommission the ones that are no longer around.
Re: Inventory Export or Report
Posted: Wed Jun 03, 2015 6:30 pm
by Box293
I think the JSON API's are what you are after. This is included in Nagios XI 2014R1.2.
Here's a link to an article demonstrating it:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
Here's a screenshot of my list of hosts:
Selection_082.png
While my screenshot is from using the API in a web browser, the same API can be used with a CURL or WGET command inside of a script (I've used it in a perl script).
Re: Inventory Export or Report
Posted: Thu Jun 04, 2015 2:31 pm
by WillemDH
You can also use the Backend API.
https://assets.nagios.com/downloads/nag ... nd_API.pdf
But the JSON query generator is defintely better.
Re: Inventory Export or Report
Posted: Thu Jun 04, 2015 3:04 pm
by ssax
CFT6Server, will those solutions work for your requirements?