Inventory Report is blank, host list contains hundreds of entries with full inventory
-
Just for a test, I built a new server. I installed Ubuntu 18.04, updated and patched to the latest. I then installed and configured FOG 1.5.7.
I connected a sample laptop I have laying around, PXE booted and performed a quick registration and inventory. The laptop now shows up under Hosts. I can select the new host and click on Inventory and it shows all the information.
When I go to Reports and select Inventory Report, again there is a blank page. No data shows up.
I now firmly believe that either I’m doing something very wrong, or there is a bug in the reports.
-
@Rivybeast said in Inventory Report is blank, host list contains hundreds of entries with full inventory:
When I go to Reports and select Inventory Report, again there is a blank page. No data shows up.
Ahhhhhh, I might have misunderstood this over and over again. The term “blank page” is usually used when people get a complete white page in the browser and this indicates that usually a PHP error has happened. So we kept asking and looking for that error. Now that you phrase is this way “No data shows up” I can imagine you did not really mean a complete blank page but just no entries being shown, right?!?!
-
Yep. I apologize. The entire page is not blank, just that it doesn’t show any data:
-
@Rivybeast I’ll take a look at this soon!
-
Moved this topic to bug reports as this is definitely something we messed up in the code when @Fernando-Gietz added the filter option to the reports.
@Rivybeast I am working on this and have pushed a first fix of the “Inventory Report”. If you are keen to give it a try you can simply download the latest file from github and put that into
/var/www/html/fog/lib/reports/
on your FOG server (probably best to rename the existing file - e.g. toinventory_report.report.bak
- so you can switch back to that easily just in case.I’ll work on the other reports as well before I merge the whole lot back into
dev-branch
. -
@Sebastian-Roth Yes replacing this file has fixed the issue.
@Sebastian-Roth said in Inventory Report is blank, host list contains hundreds of entries with full inventory:
Moved this topic to bug reports as this is definitely something we messed up in the code when @Fernando-Gietz added the filter option to the reports.
@Rivybeast I am working on this and have pushed a first fix of the “Inventory Report”. If you are keen to give it a try you can simply download the latest file from github and put that into
/var/www/html/fog/lib/reports/
on your FOG server (probably best to rename the existing file - e.g. toinventory_report.report.bak
- so you can switch back to that easily just in case.I’ll work on the other reports as well before I merge the whole lot back into
dev-branch
. -
I downloaded the updated
inventory_report.report.php
and now the Inventory Report works properly as far as I can tell. I was able to generate a .CSV file without issue. I will keep testing the report functionality as my inventory builds back up (I started a new database). -
@Rivybeast @Raymond-Bell Thanks for testing and letting me know! I will work on fixing the other reports and merge this into
dev-branch
in the next weeks.