Page 1 of 1

Report runs before I choose Which report to run

Posted: Thu Jun 29, 2017 10:49 am
by SteveBeauchemin
In the graphic below, I was going to run a different report, but was not given a chance.
It is like the Run Report button is clicked just by going to this page.
I actually want to run a different report, but have to wait for this one to complete first.
A 24 hour report with the amount of data I have takes a while to complete. My Report is for top 10 talkers in the last 4 hours.
Auto-Report-Run.PNG
Is there some way to make this stop? Let me decide when to actually Run the Report?

Thanks

Steve B

Re: Report runs before I choose Which report to run

Posted: Thu Jun 29, 2017 1:11 pm
by tgriep
There is not a way to disable the report from running in the GUI but you could edit the code to stop it from running.
Edit the following file in the NNA server

Code: Select all

/var/www/html/nagiosna/application/views/generic/reports.php
Change line 33 from

Code: Select all

var run_change = true;
to

Code: Select all

var run_change = false;
Save the file and restart Apache by running

Code: Select all

service httpd restart
That will stop the reports from automatically being run on when the Reports tab is selected for a source.

Re: Report runs before I choose Which report to run

Posted: Wed Jul 05, 2017 5:19 pm
by SteveBeauchemin
Huge improvement. I thank you. We all thank you... all the voices in my head...
Feel free to close this, after you incorporate the change to the next version.

Steve B

Re: Report runs before I choose Which report to run

Posted: Thu Jul 06, 2017 7:13 am
by eloyd
While I'm not sure I agree that it should be a forced change, I do think that a field should be added to either the report or global config that specifies whether or not the user wants the report to run automatically. In other words, that "true/false" option should be exposed in the GUI somehow.

In fact, as I write this, I think it should be on the report itself, and thus any report that has "auto-run" (or whatever) set to true will be displayed automatically, thus making it more desirable for the option to be exposed as a radio button to allow selection of a single report (as well as an option of "no report will be run").

Re: Report runs before I choose Which report to run

Posted: Thu Jul 06, 2017 9:24 am
by tgriep
Having a way to enable / disable the Autorun of the reports was added to the list of improvements for NNA.
The ability to select multiple reports to Autorun is a good idea as well, thanks @eloyd for the suggestion.