Report runs before I choose Which report to run

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Report runs before I choose Which report to run

Post 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
You do not have the required permissions to view the files attached to this post.
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Report runs before I choose Which report to run

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Report runs before I choose Which report to run

Post 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
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Report runs before I choose Which report to run

Post 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").
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Report runs before I choose Which report to run

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