Pdf reports contain no data
Posted: Wed Mar 05, 2025 6:46 am
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
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