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:
The result:
Downloading report as PDF shows host/service sttaus dashboard only
Downloading report as PDF shows host/service sttaus dashboard only
You do not have the required permissions to view the files attached to this post.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.
You do not have the required permissions to view the files attached to this post.
Vadmin
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.
Vadmin
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
I should also point out that this problem has persisted across multiple system restarts, so it is not likely to be a stopped service.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
@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.
Working copy:
Code: Select all
/Producer (Skia/PDF m128)
Code: Select all
/Producer (Skia/PDF m124)
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.
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
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.
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.
You do not have the required permissions to view the files attached to this post.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Downloading report as PDF shows host/service sttaus dashboard only
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.