Not All Report Create PDFs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Not All Report Create PDFs

Post 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.....
Mike Weber

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not All Report Create PDFs

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Not All Report Create PDFs

Post by mikew »

Yes....


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

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not All Report Create PDFs

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Not All Report Create PDFs

Post by mikew »

Error reporting was off in the /etc/php.ini

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

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not All Report Create PDFs

Post by lmiltchev »

Let us know if the upgrade fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Not All Report Create PDFs

Post 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.
Mike Weber

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not All Report Create PDFs

Post by lmiltchev »

Thanks for the feedback, Mike!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Not All Report Create PDFs

Post 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)
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Not All Report Create PDFs

Post by slansing »

Is this issue happening with the same reports on the other system you upgraded as well?
Locked