Page 1 of 1

Report problem after upgrade

Posted: Thu Mar 17, 2016 7:55 am
by koza
Hi,

after upgrading to Nagios XI 5.2.5 we have a problem with generating Executive Summary report. Instead of adding just Top Alert Producers, it adds every service that produced at least 1 alert. So instead of 12 top producers it makes 15 pages of alert producers. It was allright before upgrade, is it bug in this version?
topalerts.PNG
Thanks in advance,
Tomas

Re: Report problem after upgrade

Posted: Thu Mar 17, 2016 5:01 pm
by tmcdonald
Myself and a co-worker were unable to reproduce this - can you show me a screenshot of the 15 pages? Also, what XI version did you upgrade from?

Re: Report problem after upgrade

Posted: Fri Mar 18, 2016 1:46 am
by koza
Sure it looks like this. Tbh I'm not really sure from which version we upgraded, because I was not present in the company at that time. Is there a way to find some update log in Nagios XI?

Re: Report problem after upgrade

Posted: Fri Mar 18, 2016 1:52 pm
by rkennedy
koza wrote:Sure it looks like this. Tbh I'm not really sure from which version we upgraded, because I was not present in the company at that time. Is there a way to find some update log in Nagios XI?
I don't believe that there is. We would need to know what version you upgraded. The case could have been that only 12 hosts / services were producing alerts. I could file a feature request for an option to limit that number if you'd like?

Re: Report problem after upgrade

Posted: Mon Mar 21, 2016 8:44 am
by koza
The thing is, when I display the report, it looks the way it should be, but when I save it, it expands on every alert.
summary.PNG

Re: Report problem after upgrade

Posted: Mon Mar 21, 2016 4:22 pm
by ssax
I'm able to replicate this, let me see if I can get you a fix.

Re: Report problem after upgrade

Posted: Mon Mar 21, 2016 4:56 pm
by ssax
Edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-reports-export.inc.php
Change line 69 from:

Code: Select all

$query['records'] = 100000;
To:

Code: Select all

if (preg_match('/execsummary.php/', $_SERVER['REQUEST_URI'])) {
        $query['records'] = 10;
} else {
        $query['records'] = 100000;
}
Let me know if that works for you.

Re: Report problem after upgrade

Posted: Mon Mar 21, 2016 5:01 pm
by ssax
Also, bug report created:

Code: Select all

NEW TASK ID 8074 created - Nagios XI Bug Report: Executive Summary Report - PDF showing all objects with alerts, not just top 10

Re: Report problem after upgrade

Posted: Wed Mar 23, 2016 8:22 am
by koza
Thank you very much, this solved the problem.