Availability Report Bug with 2011 R1.8?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mariof
Posts: 19
Joined: Thu May 20, 2010 5:01 am

Availability Report Bug with 2011 R1.8?

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Availability Report Bug with 2011 R1.8?

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Availability Report Bug with 2011 R1.8?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
mariof
Posts: 19
Joined: Thu May 20, 2010 5:01 am

Re: Availability Report Bug with 2011 R1.8?

Post 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.
You do not have the required permissions to view the files attached to this post.
mariof
Posts: 19
Joined: Thu May 20, 2010 5:01 am

Re: Availability Report Bug with 2011 R1.8?

Post by mariof »

The legacy report, while not as useful (as I can't schedule it), does show the correct information:
legacy.png
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Availability Report Bug with 2011 R1.8?

Post 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.
mariof
Posts: 19
Joined: Thu May 20, 2010 5:01 am

Re: Availability Report Bug with 2011 R1.8?

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Availability Report Bug with 2011 R1.8?

Post 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.
mariof
Posts: 19
Joined: Thu May 20, 2010 5:01 am

Re: Availability Report Bug with 2011 R1.8?

Post by mariof »

Hi,

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

Thanks

Mario
Locked