Very strange behavior in xi reports

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Very strange behavior in xi reports

Post 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?
Last edited by cwscribner on Mon Jan 30, 2012 1:53 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Very strange behavior in xi reports

Post 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>";
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME

Re: Very strange behavior in xi reports

Post by cwscribner »

Fixed. Thanks!

I wish all problems were this easy to fix ;)