Page 1 of 1

Command line reporting

Posted: Tue Oct 30, 2018 2:42 pm
by PlumpyChunq
Hello,
How do you run a "Notifications Report" via command line.
I'm assuming it starts with:
wget -v --user='USER' --password='PASSWORD' --no-check-certificate -O `date +"%Y%m%d_%H%M%S"`_report_name.csv "https://iadm01nxi01.apxmgt.net/nagios/cgi-bin/avail.cgi?....

Is there a doc somewhere that shows you how to run all the different reports via command line?
We unfortunately have XI servers all over the place and we need an easy way to run and collect all the reports and going through the GUI is pretty much a nightmare.
Thanks
--Jason

Re: Command line reporting

Posted: Tue Oct 30, 2018 3:36 pm
by npolovenko
Hello, @PlumpyChunq. We don't have the list of commands to generate reports from the command line. Seems like this article walks through the steps:
http://www.mylinuxtips.info/linuxtipstu ... mand-line/
Otherwise, I'd use a chrome developers console to intercept commands that are being sent during the report generation and try to run them in the command line with wget.

Have you thought about scheduling important reports and have XI servers send them automatically to an email address? You could dedicate an email address specifically for all XI reports?

Re: Command line reporting

Posted: Wed Oct 31, 2018 7:48 am
by PlumpyChunq
Thanks. I'll take a look at that link.
The problem is that we have many XI servers so going to each one to make a minor change is a real pain in the bum.
I wish you could completely manage all of the XI server from the "Nagios Fusion" product.
Thanks again!

Re: Command line reporting

Posted: Wed Oct 31, 2018 10:59 am
by npolovenko
@PlumpyChunq, You're welcome. We actually allready have "Centralized reporting" on the Dev roadmap. You can take a look here for the updates.
https://www.nagios.com/roadmaps/
I will be closing this thread as resolved, but feel free to open a new one if anything comes up.