Downloading report as PDF shows host/service sttaus dashboard only

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Downloading report as PDF shows host/service sttaus dashboard only

Post 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
You do not have the required permissions to view the files attached to this post.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
veloid1
Posts: 6
Joined: Wed Aug 09, 2023 9:51 am

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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
You do not have the required permissions to view the files attached to this post.
Vadmin
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
veloid1
Posts: 6
Joined: Wed Aug 09, 2023 9:51 am

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
Vadmin
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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:

Code: Select all

/Producer (Skia/PDF m128)
Non-working copy:

Code: Select all

/Producer (Skia/PDF m124)
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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jsimon
Posts: 343
Joined: Wed Aug 23, 2023 11:27 am

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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
You do not have the required permissions to view the files attached to this post.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jsimon
Posts: 343
Joined: Wed Aug 23, 2023 11:27 am

Re: Downloading report as PDF shows host/service sttaus dashboard only

Post 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.
Post Reply