Page 1 of 1

Nagios XI - Host and Service configuration export

Posted: Fri Mar 11, 2022 2:10 am
by vishal313
Hi All,

I wanted to know if we can export the configuration of Hosts and Services on boarded to Nagios XI to a .csv or excel sheet.
The export should contain all fields related to the Host and Services.
Example, for Host:
host_name
use
address
hostgroups
initial_state
max_check_attempts
check_interval
retry_interval
check_period
contacts
notification_interval
notification_period
notification_options
notifications_enabled
icon_image
statusmap_image
_xiwizard
register


For Services:
host_name
service_description
use
check_command
initial_state
max_check_attempts
check_interval
retry_interval
check_period
notification_interval
notification_period
notification_options
notifications_enabled
contacts
_xiwizard
register


Regards
Vishal Dhote

Re: Nagios XI - Host and Service configuration export

Posted: Wed Mar 16, 2022 1:24 pm
by mbellerue
Hello,

I don't know that there's a way to get a CSV export of the configured devices right out of the interface. However, all of that information, and more, is available through the API. Try out the config/host endpoint. For information on how to use the API, go to Help -> API Docs, and choose one of the 3 main references, Objects, Config, or System.

Re: Nagios XI - Host and Service configuration export

Posted: Sun Mar 20, 2022 10:38 pm
by vishal313
Hi,

Thank you for your reply.
I tried using one of the API, but that give me export in JSON form.
I needed it in excel or csv format..which will make it easy for me to audit the status for Host and Services.


Regards
Vishal Dhote

Re: Nagios XI - Host and Service configuration export

Posted: Tue Mar 22, 2022 4:30 pm
by pbroste
Hello @vishal313

Thanks for reaching out, by adding .....&csvoutput=' to the command will produce comma-delimited output.

Regards,
Perry

Re: Nagios XI - Host and Service configuration export

Posted: Tue Mar 22, 2022 4:30 pm
by pbroste
We're moving to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.