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
Pdf reports contain no data
Re: Pdf reports contain no data
Hi @sgomeztd,
Thanks for reaching out.
What version of XI do you have and what distro/version is XI running on?
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
-Laura
Re: Pdf reports contain no data
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.
Re: Pdf reports contain no data
Hi,
I'm currently running 2024R1.3 on Ubuntu 22.04.05 LTS
I'm currently running 2024R1.3 on Ubuntu 22.04.05 LTS
Re: Pdf reports contain no data
If the version of wkhtmltox changes or breaks compatibility, PDF generation will fail silently or produce error pages saved as PDF files.
Re: Pdf reports contain no data
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.
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
-Laura
Re: Pdf reports contain no data
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?
Re: Pdf reports contain no data
Please let us know if you have any other questions or concerns.
-Laura
-Laura