Exporting the host list from nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Exporting the host list from nagiosxi

Post by yunushaikh »

Hello,

Is it possible to export the list from nagiosxi for monitored host?
I need hostname and IP address with hostgroup assigned?
Please let me know if there is any possibility

Thanks,
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Exporting the host list from nagiosxi

Post by dwhitfield »

The answer is yes, but how you do it will depend on the version you are using.

For older versions, you use https://assets.nagios.com/downloads/nag ... nd_API.pdf (and that should point you in the right direction for new versions as well)

Please let us know if you have any additional questions.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Exporting the host list from nagiosxi

Post by rkennedy »

Another file that you may find handy is /usr/local/nagios/var/objects.cache - this is a running configuration of how things are compiled after templates, etc. Pretty nifty if you're trying to see how things line up really quick.
Former Nagios Employee
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Exporting the host list from nagiosxi

Post by yunushaikh »

Actually I went to database and exported the display name and address from the nagios_hosts table. I think there should be a way to export the hostname and address along with the hostgroup name

You can close this thread as I was able to achieve but it was manual way. Thanks.
Locked