Export list of working hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
peterj1974
Posts: 5
Joined: Tue Aug 09, 2016 3:11 am

Export list of working hosts

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Export list of working hosts

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked