Page 1 of 1

Export list of working hosts

Posted: Mon Aug 15, 2016 4:59 am
by peterj1974
Hi
I'm in the process of bulk uploaded a few thousand new clients into our NagiosXI servers.
I'm expecteding some of these to fail due to firewall rules etc. It's would be easier and quicker for me to upload all of these to Nagios, and then look at the ones that are not connecting.
Is there a way to export a list of working/or non working clients from NagiosXI? Or even a command I can run/file I can grep?

Thanks

Pete

Re: Export list of working hosts

Posted: Mon Aug 15, 2016 1:11 pm
by bwallace
Sure, you can use the 'original' backend API or the REST API (as of Nagios XI 5) to obtain these details
https://support.nagios.com/kb/article.php?id=176

You can also refer to nagios.log:
/usr/local/nagios/var/nagios.log
The Nagios Core log, includes checks, notifications, external commands, and events. This file is rotated daily into the
/usr/local/nagios/var/archives folder (default setting in nagios.cfg) by rsyslog
https://assets.nagios.com/downloads/nag ... ptions.pdf