Page 1 of 3

Not All Report Create PDFs

Posted: Fri Sep 27, 2013 12:43 pm
by mikew
Not all Reports create PDFs: 2012R2.3

Some reports work and others are creating a FPDF error.

Executive Summary - blank
Availability
FPDF error: Not a PNG file: /tmp/availabilityWvZRl5.png

State History - works
Top Alert Producers - works

Alert Histrogram
FPDF error: Not a PNG file: /tmp/histogramet4E3C.png

Error Logs for HTTPD

Code: Select all

--2013-09-27 10:40:21--  https://192.168.2.3/nagiosxi//reports/statehistory.php?&host=phonesuite_1&username=xxxxxx&ticket=xxxxxxxxx7gh3s0me9r5v84r0r3rt870asjiq99kdm5gi3&mode=pdf
--2013-09-27 10:54:13--  https://192.168.2.3/nagiosxi//reports/statehistory.php?&host=phonesuite_1&username=xxxxxx&ticket=xxxxxxxxblnitlbotnrle43fa3ctgbagg9ba3lkda9v8u8truogbpgp3g5ttf8&mode=pdf
--2013-09-27 11:09:20--  https://192.168.2.3/nagiosxi//reports/availability.php?&host=&service=&reportperiod=last24hours&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=&servicegroup=&username=xxxxxxn&ticket=xxxxx5kscj6&mode=pdf
Error: Failed loading page https://192.168.2.3/nagiosxi//reports/execsummary.php?1&hideoptions=1&username=xxxxxxxx&ticket=xxxxxkscj6 (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed loading page https://192.168.2.3/nagiosxi//reports/execsummary.php?1&hideoptions=1&username=xxxxxx&ticket=7d5kscj6 (sometimes it will work just to ignore this error with --load-error-handling ignore)
System InformationNagios XI Version : 2012R2.3
Nagios-Core-Server 2.6.32-358.el6.i686 i686
CentOS release 6.4 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19
Server Name: xxxxxxxxx
Server Address: 192.168.2.102
Server Port: 1029
Date/Time

PHP Timezone: America/Denver
PHP Time: Fri, 27 Sep 2013 11:39:22 -0600
System Time: Fri, 27 Sep 2013 11:39:22 -0600
Nagios XI Data

nagios (pid 12797) is running...
NPCD running (pid 17505).
ndo2db (pid 17494) is running...
CPU Load 15: 0.09
Total Hosts: 14
Total Services: 371

Thanks.....

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 1:07 pm
by lmiltchev
Do you have your server added to the "/etc/hosts" in the following format?

Code: Select all

127.0.0.1 myserver myserver.mydomain.local localhost

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 1:35 pm
by mikew
Yes....


127.0.0.1 localhost Nagios-Core-Server localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 1:52 pm
by lmiltchev
Mike,
One more thing to check would be the "/etc/php.ini" file - make sure the error reporting is turned off. Having said that, the way reports are generated has been completely changed in R2.4. An upgrade to latest version of Nagios XI would probably fix all these issues.

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 2:07 pm
by mikew
Error reporting was off in the /etc/php.ini

I will look at doing an upgrade...thanks.

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 2:15 pm
by lmiltchev
Let us know if the upgrade fixed your issue.

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 2:59 pm
by mikew
Just a follow up on the problem. An upgrade to 2012R2.4 did fix the PDF issues but the upgrade failed until I commented out line 447:


./upgrade: line 447: 11386 Killed yum install -y "@Japanese Support" "@Chinese Support" "@Korean Support"


Once that line was commented out all went OK.

Re: Not All Report Create PDFs

Posted: Fri Sep 27, 2013 3:05 pm
by lmiltchev
Thanks for the feedback, Mike!

Re: Not All Report Create PDFs

Posted: Sat Sep 28, 2013 6:07 am
by mikew
Update to an Update

I have performed this update on another server from 2012R2.3 to 2012R2.4 and on this server now no reports are working they are all blank. Here is the output of /var/log/httpd/error.log

Error: Failed loading page https://192.168.2.3/nagiosxi//reports/a ... cale=en_EN (sometimes it will work just to ignore this error with --load-error-handling ignore)
Loading pages (1/6)
Error: Failed loading page https://192.168.2.3/nagiosxi//reports/s ... rds=100000 (sometimes it will work just to ignore this error with --load-error-handling ignore)

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 9:22 am
by slansing
Is this issue happening with the same reports on the other system you upgraded as well?