Export Hosts to CSV

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
skostmayer
Posts: 15
Joined: Fri Apr 08, 2016 12:56 pm

Export Hosts to CSV

Post by skostmayer »

We are looking for a method to export all monitored hosts to a csv file. What is the best method?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Export Hosts to CSV

Post by dwhitfield »

What XI version are you on? In 5+ there is a new API with some filtering options. The documentation is in the XI interface in the Help menu, under the "Backend API Docs" section on the left. Take a look at that and see if you are able to get what you need. Currently it only support JSON and XML, but it's not terribly hard to convert that to CSV.

Also, you can get CSV from the reports, but it's going to give you more than just the hostnames.
Locked