Page 1 of 2

Scheduled PDF Reporting failing to generate

Posted: Mon Jul 29, 2013 6:59 pm
by KiwiBloke
Hi,

I have configured a couple of Dashboards for Scheduled PDF Reporting. This seems like a good way of having a point in time archive of the system that we can distribute amongst our team and potentially clients to show the state of the system.

The dashboard I have has the following dashlets on it:

Host status Summary
Service Status Summary
Status Summary for all host groups
Monitoring Engine Event Queue
Available Updates
XI System Component Status

The dashobard renders fine on the screen when viewed interactively, but the scheduled report fails to generate. We either get no email, or we get an email very late with the following in the body:

Code: Select all

This scheduled report was automatically generated by Nagios XI and sent to you as requested by nagiosadmin (FNZ-Ultimo Nagios Admin).


************
ERROR: Failed to render URL 'http://localhost/nagiosxi/dashboards/dashboard.php?id=taiepps7&username=nagiosadmin&ticket=p3ekioo9' as '/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-q0a02i-page.pdf'
************


You can directly access this report at:
http://pfsunagiosxi/nagiosxi/?xiwindow=http%3A%2F%2Fpfsunagiosxi%2Fnagiosxi%2Fdashboards%2Fdashboard.php%3Fid%3Dtaiepps7%23

Access Nagios XI at:
http://pfsunagiosxi/nagiosxi/
Hope you can advise if we should grab any logs for you or should we just reboot it as is.

Cheers,

KB.

Re: Scheduled PDF Reporting failing to generate

Posted: Tue Jul 30, 2013 9:11 am
by yancy
KiwiBloke,

Can you post what version of NagiosXI you're using?

Thanks,

-Yancy

Re: Scheduled PDF Reporting failing to generate

Posted: Tue Jul 30, 2013 5:20 pm
by KiwiBloke
Doh!

Its Nagiosxi 2012R2.2 Enterprise virtual appliance (CentOS)

Cheers

C.

Re: Scheduled PDF Reporting failing to generate

Posted: Tue Jul 30, 2013 8:09 pm
by scottwilkerson
from the XI command line can you run the following and get output?

Code: Select all

curl "http://localhost/nagiosxi/dashboards/dashboard.php?id=taiepps7&username=nagiosadmin&ticket=p3ekioo9"

Re: Scheduled PDF Reporting failing to generate

Posted: Wed Jul 31, 2013 10:42 pm
by KiwiBloke
Hi,

Yes that command ran, i have output to a file which i have attached.

KB.

Re: Scheduled PDF Reporting failing to generate

Posted: Thu Aug 01, 2013 10:48 am
by scottwilkerson
Can you also show these permissions

Code: Select all

ls -ld /usr/local/nagiosxi
ls -ld /usr/local/nagiosxi/tmp
Thanks

Re: Scheduled PDF Reporting failing to generate

Posted: Thu Aug 01, 2013 5:16 pm
by KiwiBloke
Hi,

Results as follows:

Code: Select all

[root@pfsunagiosxi ~]# ls -ld /usr/local/nagiosxi
drwxr-xr-x. 10 nagios nagios 4096 Jun  7  2012 /usr/local/nagiosxi
[root@pfsunagiosxi ~]# ls -ld /usr/local/nagiosxi/tmp
drwsrwsr-x. 2 nagios nagios 4096 Jul 29 08:37 /usr/local/nagiosxi/tmp
[root@pfsunagiosxi ~]#
Cheers,

KB

Re: Scheduled PDF Reporting failing to generate

Posted: Fri Aug 02, 2013 9:51 am
by lmiltchev
What do you have in the "Program URL" and "External URL" fields under "System Settings" (Admin->Manage System Config)?

Run the following command and show the output:

Code: Select all

cat /etc/hosts

Re: Scheduled PDF Reporting failing to generate

Posted: Mon Aug 05, 2013 8:15 pm
by KiwiBloke
Hi,

Information as follows:

Program URL: http://pfsunagiosxi/nagiosxi/
External URL: http://pfsunagiosxi/nagiosxi/

Contents of /etc/hosts

Code: Select all

[root@pfsunagiosxi ~]# cat /etc/hosts
127.0.0.1       localhost.localdomain   localhost.localdomain   localhost4     localhost4.localdomain4  localhost       pfsunagiosxi
::1     localhost.localdomain   localhost.localdomain   localhost6      localhost6.localdomain6 localhost       pfsunagiosxi
[root@pfsunagiosxi ~]#

Re: Scheduled PDF Reporting failing to generate

Posted: Mon Aug 05, 2013 10:29 pm
by scottwilkerson
This is strange, can you post the following permissions

Code: Select all

ls -ld /usr/local/nagiosxi
ls -ld /usr/local/nagiosxi/tmp