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,
Exporting the host list from nagiosxi
-
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
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.
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
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
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.
You can close this thread as I was able to achieve but it was manual way. Thanks.