Page 1 of 1

Availability Report Bug with 2011 R1.8?

Posted: Mon Jan 16, 2012 12:05 pm
by mariof
Hi,

When i run one of the new availability reports in nagios xi (2011 R1.8), against a service group, I get a listing of all servers that are monitored and not just those that are members of services in the service_group. When I run a legacy availablity report, it seems to work as normal/expected.

so the report contains hostdata containing all hosts being monitored and servicedata which has data for the service_group requested.

looking at the error_log I see:

[Mon Jan 16 18:59:59 2012] [error] [client 10.66.111.108] PHP Notice: A session had already been started - ignoring session_start() in /usr/local/nagiosxi/html/includes/utils.inc.php on line 88, referer: http://<server>/nagiosxi/reports/availability.php?host=&service=&reportperiod=lastmonth&startdate=&enddate=&reporttimesubmitbutton=Go&host=&hostgroup=&servicegroup=rsk_report
[Mon Jan 16 19:00:03 2012] [error] [client 10.66.111.108] PHP Notice: A session had already been started - ignoring session_start() in /usr/local/nagiosxi/html/includes/utils.inc.php on line 88, referer: http://<server>/nagiosxi/reports/availability.php?host=&service=&reportperiod=lastmonth&startdate=&enddate=&reporttimesubmitbutton=Go&host=&hostgroup=&servicegroup=rsk_report
[Mon Jan 16 19:00:03 2012] [error] [client 10.66.111.108] PHP Notice: Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 143, referer: http://<server>/nagiosxi/reports/availability.php?host=&service=&reportperiod=lastmonth&startdate=&enddate=&reporttimesubmitbutton=Go&host=&hostgroup=&servicegroup=rsk_report
[Mon Jan 16 19:00:04 2012] [error] [client 10.66.111.108] PHP Notice: A session had already been started - ignoring session_start() in /usr/local/nagiosxi/html/includes/utils.inc.php on line 88, referer: http://<server>/nagiosxi/reports/availability.php?host=&service=&reportperiod=lastmonth&startdate=&enddate=&reporttimesubmitbutton=Go&host=&hostgroup=&servicegroup=rsk_report
[Mon Jan 16 19:00:04 2012] [error] [client 10.66.111.108] PHP Notice: Use of undefined constant LEGEND_VER - assumed 'LEGEND_VER' in /usr/local/nagiosxi/html/reports/availability.php on line 143, referer: http://<server>/nagiosxi/reports/availability.php?host=&service=&reportperiod=lastmonth&startdate=&enddate=&reporttimesubmitbutton=Go&host=&hostgroup=&servicegroup=rsk_report

Any ideas? I'd rather not upgrade to the latest version of XI yet as I've only just upgraded to this one.

If the report is running using hostgroup only, it seems to work fine. I just want to be able to send a report about certain services running on certain groups of machines, and not send irrelevant information to people.

KInd Regards

Mario

Re: Availability Report Bug with 2011 R1.8?

Posted: Mon Jan 16, 2012 1:03 pm
by lmiltchev
mariof,

Can you post a couple of screenshots - one with the availability report for this particular service group, and one with the legacy report?

Re: Availability Report Bug with 2011 R1.8?

Posted: Mon Jan 16, 2012 1:59 pm
by lmiltchev
Just to follow up...

I was able to recreate this issue in Nagios XI 2011R1.9 as well. It appears to be a bug. I posted it on our bug tracker. We will be fixing it as soon as we can, depending on the task priorities on our TODO list. You can read about it here:

http://tracker.nagios.com/view.php?id=218

Re: Availability Report Bug with 2011 R1.8?

Posted: Tue Jan 17, 2012 4:25 am
by mariof
Hi,

I upgraded my test system to R1.9, and it seems to me as the bug is different. For a start I can now pick hostgroup and servicegroup together, but when I do so, the hostdata comes back incorrectly.

so for 1.8:

I see hosts that shouldn't belong to the service group, but I can't pick both a hostgroup and a service group together
1.8 host.png
And in the same report I eventually see the service data(correctly):
1.8 service.png
for 1.9:

I see almost the correct information, and I can create a report on both hostgroup and servicegroup:
1.9.png
The hostdata shows the correct number of hosts, just not their names.

Re: Availability Report Bug with 2011 R1.8?

Posted: Tue Jan 17, 2012 4:28 am
by mariof
The legacy report, while not as useful (as I can't schedule it), does show the correct information:
legacy.png

Re: Availability Report Bug with 2011 R1.8?

Posted: Tue Jan 17, 2012 11:22 am
by mguthrie
I see almost the correct information, and I can create a report on both hostgroup and servicegroup:
When you say "almost", can you clarify as to what appears to be incorrect in 1.9?
The hostdata shows the correct number of hosts, just not their names.
Confirmed, this bug is fixed in SVN for the next release.

Re: Availability Report Bug with 2011 R1.8?

Posted: Wed Jan 18, 2012 6:05 am
by mariof
Hi mguthrie,

the "almost" refers to the fact that the host names are not mentioned (0.0.0.0. is displayed instead), but the correct number of hosts are displayed.

When is the next release scheduled?

Re: Availability Report Bug with 2011 R1.8?

Posted: Wed Jan 18, 2012 11:00 am
by mguthrie
We don't have a hard ETA as of yet, but we're hoping to get it pushed out sometime in the next two weeks. We could probably get you a patched version of the report sooner if you need it.

Re: Availability Report Bug with 2011 R1.8?

Posted: Thu Jan 19, 2012 5:30 am
by mariof
Hi,

No I can wait if its a matter of a couple of weeks.

Thanks

Mario