Pdf reports contain no data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
sgomeztd
Posts: 51
Joined: Tue Apr 30, 2019 11:00 am

Pdf reports contain no data

Post by sgomeztd »

I have tried to schedule a pdf report and the email gets send but the pdf is can't be opened and it's size is just 1KB. If I go to the portal, chose a random report and press the download as pdf button after one second on the left of the word PDF changes to an error and nothing gets downloaded.

Long time ago pdf reports was working OK but most likely we were on an older NagiosXi version back then so I guess something must have broken during the updates. CSV reports work OK, is just the CSV

I did some tail of var/log/apache2/error.log and I can't see no error there, pdf gets generated apparently and send.

Location: https://localhost/nagiosxi/reports/avai ... eba06c25bc [following]
--2025-03-05 11:12:05-- https://localhost/nagiosxi/reports/avai ... eba06c25bc
Connecting to localhost (localhost)|127.0.0.1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by 'CN=My Issuing CA01 Servers,DC=mycompany,DC=com':
Unable to locally verify the issuer's authority.
WARNING: no certificate subject alternative name matches
requested host name 'localhost'.
HTTP request sent, awaiting response... 200 OK
Length: 840 [text/html]
Saving to: '/usr/local/nagiosxi/tmp/scheduledreport-test-geUZ7Fo3QgBe-1741173125-Availability_Report.pdf'

0K 100% 534M=0s

2025-03-05 11:17:05 (534 MB/s) - '/usr/local/nagiosxi/tmp/scheduledreport-test-geUZ7Fo3QgBe-1741173125-Availability_Report.pdf' saved [840/840]

I was doing some ls -l of the folder /usr/local/nagiosxi/tmp/ meanwhile and the file size was 0 all the time.

I'm wondering if maybe during our regular VM patching the package wkhtmltox 1:0.12.6.1-2.jammy got updated and that might cause issue as I know this one is usually involved with pdf generation
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Pdf reports contain no data

Post by lgute »

Hi @sgomeztd,

Thanks for reaching out.

What version of XI do you have and what distro/version is XI running on?
Please let us know if you have any other questions or concerns.

-Laura
selaopera
Posts: 4
Joined: Fri Mar 07, 2025 4:01 am

Re: Pdf reports contain no data

Post by selaopera »

The warnings about the certificate being unverified might not directly affect the file generation, but it’s worth ensuring that your system trusts the issuing CA. You can try adding the certificate to your trusted store or using the --no-check-certificate flag with wget to bypass this.
sgomeztd
Posts: 51
Joined: Tue Apr 30, 2019 11:00 am

Re: Pdf reports contain no data

Post by sgomeztd »

Hi,

I'm currently running 2024R1.3 on Ubuntu 22.04.05 LTS
ZaneTapia
Posts: 6
Joined: Fri Aug 30, 2024 1:45 am

Re: Pdf reports contain no data

Post by ZaneTapia »

If the version of wkhtmltox changes or breaks compatibility, PDF generation will fail silently or produce error pages saved as PDF files.
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Pdf reports contain no data

Post by lgute »

Hi @sgomeztd,

There have been several fixes to PDF generation. You may want to try 2024R1.4.3, which I believe will be released tomorrow.

Your license does cover 3 instances: production, backup/disaster recovery, and a sandbox instance. So feel free to test upgrades, before pushing them to production.
Please let us know if you have any other questions or concerns.

-Laura
Hitheree
Posts: 1
Joined: Tue May 20, 2025 10:34 pm

Re: Pdf reports contain no data

Post by Hitheree »

I’m seeing the exact same issue on my instance, PDF reports are 1KB and unreadable, but CSVs work fine. Must be something related to the PDF generation tool. What version of Nagios XI are you running?
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Pdf reports contain no data

Post by lgute »

Hi @Hitheree,

What version of Nagios XI are you running and what distro/version?
Please let us know if you have any other questions or concerns.

-Laura
Post Reply