Page 1 of 1

Reporting - Export to PDF broken...

Posted: Sun Apr 08, 2012 12:06 pm
by scobi
Greetings!

Nagios XI 2011R2.2

Tried to export a report to PDF this morning (Availability Summary) and received this:

FPDF error: Not a PNG file: /tmp/availabilityurCj6q.png

This may have happened after upgrading, but I'm not positive.

Thoughs or suggestions?

Thanks!

Re: Reporting - Export to PDF broken...

Posted: Sun Apr 08, 2012 8:42 pm
by scottwilkerson
Just to verify a couple things so we can try to reproduce the error...

Does the Report show properly in HTML with the images?
What period was the report for? If custom, what dates?
Was it limited to any hosts, hostgroups, or servicegroups?

Re: Reporting - Export to PDF broken...

Posted: Mon Apr 09, 2012 9:11 am
by scobi
Hi!

Yes, displays HTML properly...
Doesn't matter what time frame I select, last 24 hours or last week are 2 that I've tried.
Doesn't matter if I limit to host or host group, same error.

As soon as I click the PDF Icon I receive the error message...

Export to CSV is working just fine.

Thanks!

Re: Reporting - Export to PDF broken...

Posted: Mon Apr 09, 2012 9:53 am
by scottwilkerson
Two more things I would like to verify,

Do you see pie charts in the HTML Display?
Can you look at your /etc/php.ini and verify

Code: Select all

display_errors = Off
Finally, if this doesn't resolve the issue, can you look at the httpd error_log and see if anything stands out

Code: Select all

tail -f /var/log/httpd/error_log

Re: Reporting - Export to PDF broken...

Posted: Mon Apr 09, 2012 11:22 am
by scobi
Ahhh, yes and yes... Appears to be an FQDN thing but being a Linux n00b I'm not quite sure how to correct it...

If I use the short name, I reveive the error. If I use the FQDN i get the report jsut fine. :D

Do I need ot make adjustments to the network config?

Thanks!

Re: Reporting - Export to PDF broken...

Posted: Mon Apr 09, 2012 11:34 am
by scottwilkerson
you might have to adjust you /etc/hosts file

see if the following has your "shortname" in it on the line starting with 127.0.0.1

Code: Select all

cat /etc/hosts
if not, adding it to the end of that line may make the difference.

Re: Reporting - Export to PDF broken...

Posted: Mon Apr 09, 2012 11:58 am
by scobi
Thanks Scott, that did the trick ! ! ! Able to create reports again without FQDN... :D