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
Report for all hosts in my Nagiosxi server
-
IT-OPS-SYS
- Posts: 184
- Joined: Sun Jan 07, 2018 12:56 pm
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Report for all hosts in my Nagiosxi server
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
Help -> API Docs -> Objects Reference -> GET objects/host
The fields in the JSON you are looking for is host_name & address
-
IT-OPS-SYS
- Posts: 184
- Joined: Sun Jan 07, 2018 12:56 pm
Re: Report for all hosts in my Nagiosxi server
got it sir. thanks
you can close this thread
you can close this thread
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Report for all hosts in my Nagiosxi server
GreatIT-OPS-SYS wrote:got it sir. thanks
you can close this thread
Closing thread