Page 1 of 1

Very strange behavior in XI reports

Posted: Mon Jan 30, 2012 1:31 pm
by cwscribner
Hi all.

I've had some very weird things happen to my XI instance. A coworker has been making changes to the database directly because there are too many devices to manage in the interface. All that got changed was some links to contact groups and notifications. Now when I run reports, I get correct graphs, but for the list of devices, only half an IP address shows up (the same half IP for all entries) and for the breakdown of services on the devices all I see is 0.000 instead of a service name. What the H would cause that sort of problem?

Re: Very strange behavior in XI reports

Posted: Mon Jan 30, 2012 1:41 pm
by scottwilkerson
This is a known bug that is fixed in our SVN for the next release (likely within a couple weeks).

If you need it fixed before that, you can backup the following file and then make these changes:
/usr/local/nagiosxi/html/reports/availability.php
about line 895 change

Code: Select all

echo "<td>".number_format($hn,3)."  </td>";
to

Code: Select all

echo "<td>".$hn."  </td>";
and about like 941 change

Code: Select all

echo "<td>".number_format($sd,3)."  </td>";
to

Code: Select all

echo "<td>".$sd."  </td>";

Re: Very strange behavior in XI reports

Posted: Mon Jan 30, 2012 1:53 pm
by cwscribner
Fixed. Thanks!

I wish all problems were this easy to fix ;)