Reporting - Export to PDF broken...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Reporting - Export to PDF broken...

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Reporting - Export to PDF broken...

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Reporting - Export to PDF broken...

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Reporting - Export to PDF broken...

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Reporting - Export to PDF broken...

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Reporting - Export to PDF broken...

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Reporting - Export to PDF broken...

Post by scobi »

Thanks Scott, that did the trick ! ! ! Able to create reports again without FQDN... :D
Locked