Page 1 of 2
Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 7:15 am
by eloyd
We have a customer that wants to have a daily report emailed as a PDF. When the "Availability report" is generated, it looks fine. The problem is that when it is downloaded (or emailed) as a PDF, it gets converted into a "service status" and "host status" dashboard with no sign of the report. This is a 2024R1.1.4 machine. We cannot reproduce the same problem on our test box using the same data on a similar 2024R1.1.4 machine, so I have no idea where to even look to try to figure this out.
It seems that it's trying to create a (truncated) version of the Home dashboard rather than the desired report. It doesn't matter what report I choose, I get the same output.
It also doesn't matter who runs the report; this happens for all users, all of whom are full admins.
The on-screen report:
input.png
The result:
output.png
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 8:55 am
by veloid1
Find the email that is getting sent out and see if you can find where XI is pointing to. You can find it in the email, see photo below for an example.
graphing.png
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 8:56 am
by eloyd
As mentioned, this happens when the report is simply downloaded from the GUI as a PDF. The report fails to properly generate even without emailing anything. No email involved. That's their ultimate goal, so we're trying to fix the download part first.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 9:24 am
by veloid1
Yes, now I see that. I could not replicate the issue. It seems like XI is pointing "availability.php" to the home dashboard. Try to restart services and fix databases using this link:
https://support.nagios.com/kb/article/n ... es-24.html.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 9:31 am
by eloyd
Repairing databases was one of the first things we tried. Didn't fix anything and there's no other signs of the software behaving incorrectly.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Wed Aug 28, 2024 9:38 am
by eloyd
I should also point out that this problem has persisted across multiple system restarts, so it is not likely to be a stopped service.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Thu Aug 29, 2024 7:08 am
by eloyd
@veloid1, I had the customer email the PDF and send me copies of the email and the PDF to satisfy your curiosity. The URL in the email is correct. I also looked inside the PDF document and found nothing substantially different (other than the content payload) from a working Nagios XI install of the same version. The only thing is the release number for Skia/PDF.
Working copy:
Non-working copy:
So we're stuck with a broken PDF report generator. Not sure if there's anything anyone can really do to help, but I'm happy to entertain ideas as to what could be missing or broken. The rest of this very large Nagios installation is working just fine.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Thu Aug 29, 2024 9:57 am
by jsimon
Hi Eric,
Could you verify the Program URL and External URL (Admin>System Config>System Settings) and ensure that both of these values are valid URLs? This shouldn't cause the error you're seeing, but it can cause related issues, so I'm curious what we find looking at this. In addition, can you look at the Audit Log when a PDF is generated? I'm curious what the ID of the command getting sent to the subsystem is. and it should be printed in the Audit Log.
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Thu Aug 29, 2024 10:12 am
by eloyd
Program URL is valid and are specific to this customer's network. There is no external URL and Nagios is not accessible from outside their network. Take the email stuff out of this equation and we still have the problem where the "download report as PDF" function shows the home dashboard instead of the report.
As you can see from the image, nothing shows up in the audit log when the report is run or when the PDF is downloaded.
n1.png
Re: Downloading report as PDF shows host/service sttaus dashboard only
Posted: Tue Sep 03, 2024 1:05 pm
by jsimon
Hmm, unfortunately that has exhausted my ideas for what could cause this. It might be worth sending a system profile to our Support department for a deeper dive.