Page 1 of 1

centralized reporting

Posted: Sun Nov 03, 2019 9:44 pm
by kentzeng
Hi,

We have 1 nagios fusion server and 4 nagios XI servers.
Currently we generated availability report from each of the nagios XI servers.

Don't know how to combine these 4 reports from each of nagios XI servers to a delicate availability report in nagios Fusion?

Thanks,
-Kent

Re: centralized reporting

Posted: Mon Nov 04, 2019 2:19 pm
by benjaminsmith
Hello Kent,

Currently, you cannot combine reports among separate XI servers. However, there is the option to send the report in another format such as CSV and the combine this data using another application.
avail-reports.png
Let us know if you have further questions.

Re: centralized reporting

Posted: Mon Nov 04, 2019 9:20 pm
by kentzeng
Hi benjaminsmith,

Thanks for the information.

But it doesn't make sense to create report on each of the nagiosXI servers and combine them manually.
** by the way, how to create a monthly cvs report for a single hostgroup by command? **

Is there any solution in the future release? Or if there is anything that nagios fusion has the capability to generate a centralized report?

Thanks,
-Kent

Re: centralized reporting

Posted: Tue Nov 05, 2019 11:14 am
by benjaminsmith
Hello Kent,

We are planning to add more functionality to the reporting system in Nagios XI 6.

See: Nagios Product Roadmaps

It's possible to generate a report from the command line using the API. First you need to find out how the report is called (what parameters in the URL string) by using the browsers's developer tools. Then you can authenticate using the API and run a curl command on the URL to download the report.

The process is as follows:

Get Auth Token - http://X.X.X.X/nagiosxi/help/auth-token-reference.php

curl -k -L -XPOST 'http://X.X.X.X/nagiosxi/api/v1/authenticate?pretty=1' -d 'username=nagiosadmin&password=mypassword'

Go to the report you want to run under Reports:
- Hit F12 to bring up dev tools
- Click the Network Tab
- Click the Trash icon on top left of dev tools to clear it out (easier to read)
- Click Download and choose whatever type you want (note the type)
- Right-click the request and choose Copy > URL

Use that URL in this:
- Change XXXXXXXXXXX to the token
- Change FILE.type to the filename of the type that is expected

curl -k -L 'FULL_URL_WITH_PARAMS&token=XXXXXXXXXXX' > /tmp/FILE.type