Page 1 of 1

Report for all hosts in my Nagiosxi server

Posted: Wed Aug 19, 2020 9:46 am
by IT-OPS-SYS
hi team,

I would like to export a file which contains the list of all the hosts with their respective IP address running on my nagios XI server.

I can see the hosts name in the file: cat /usr/local/nagios/etc/hosts but i dont see the mapping IP address to all these hosts.

I tried report tab but could not find the field for ip address.

thanks in advance

Re: Report for all hosts in my Nagiosxi server

Posted: Wed Aug 19, 2020 11:11 am
by scottwilkerson
We don't have a report for this but it is available via the API
Help -> API Docs -> Objects Reference -> GET objects/host

The fields in the JSON you are looking for is host_name & address

Re: Report for all hosts in my Nagiosxi server

Posted: Wed Aug 26, 2020 2:13 pm
by IT-OPS-SYS
got it sir. thanks

you can close this thread

Re: Report for all hosts in my Nagiosxi server

Posted: Wed Aug 26, 2020 4:08 pm
by scottwilkerson
IT-OPS-SYS wrote:got it sir. thanks

you can close this thread
Great

Closing thread