Pdf Scheduled reports corrupt

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Pdf Scheduled reports corrupt

Post by arnab.roy »

Hi Guys,

I think a lot of us have posted this, I can see a post by benhank here which basically speaks about the same issue, basically the pdf file attached to any scheduled report is corrupt is generating garbage attachments to the report email. I am attaching an example (This forum wont let me attach guess what was the reason the uploaded file was empty so true!!! :) ).

We are running XI Version 2012R1.6
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Pdf Scheduled reports corrupt

Post by abrist »

Do a running tail on the httpd error_log and then try to open a report from the XI ui. Post the output of the tail here.

Code: Select all

tail -f /var/log/httpd/error_log
Are the reports empty or corrupt?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Pdf Scheduled reports corrupt

Post by arnab.roy »

I think its generating an empty file of size zero bytes. On looking at this I think this is due to having ssl with self signed cert.

[Thu Apr 04 15:45:24 2013] [error] [client 172.20.0.123] PHP Notice: Undefined index: privacy_policy_url in /usr/local/nagiosxi/html/includes/header.inc.php on line 202
--2013-04-04 15:45:39-- https://localhost/nagiosxi/reports/avai ... s&mode=pdf
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
ERROR: cannot verify localhost's certificate, issued by `/C=GB/ST=Hampshire/L=Fleet/O=Khipu-Networks, Ltd/OU=Technical/CN=karma.khipu-networks.com/emailAddress=[email protected]':
Self-signed certificate encountered.
ERROR: certificate common name `karma.khipu-networks.com' doesn't match requested host name `localhost'.
To connect to localhost insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
[Thu Apr 04 15:45:39 2013] [error] [client 172.20.0.123] PHP Notice: Undefined variable: cmd in /usr/local/nagiosxi/html/includes/components/scheduledreporting/schedulereport.php on line 202, referer: http://karma.khipu-networks.com/karma/i ... &id=hoagj6
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Pdf Scheduled reports corrupt

Post by lmiltchev »

arnab.roy,

I filed an internal bug report on the issue. We will let you know when we find a possible solution. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked