Page 1 of 1

Exporting the host list from nagiosxi

Posted: Fri Dec 23, 2016 6:52 am
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,

Re: Exporting the host list from nagiosxi

Posted: Tue Dec 27, 2016 12:23 pm
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.

Re: Exporting the host list from nagiosxi

Posted: Tue Dec 27, 2016 12:56 pm
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.

Re: Exporting the host list from nagiosxi

Posted: Wed Jan 04, 2017 11:20 pm
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.