Scheduled PDF Reporting failing to generate

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Scheduled PDF Reporting failing to generate

Post 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.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Scheduled PDF Reporting failing to generate

Post by yancy »

KiwiBloke,

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

Thanks,

-Yancy
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Scheduled PDF Reporting failing to generate

Post by KiwiBloke »

Doh!

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

Cheers

C.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled PDF Reporting failing to generate

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Scheduled PDF Reporting failing to generate

Post by KiwiBloke »

Hi,

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

KB.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled PDF Reporting failing to generate

Post by scottwilkerson »

Can you also show these permissions

Code: Select all

ls -ld /usr/local/nagiosxi
ls -ld /usr/local/nagiosxi/tmp
Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Scheduled PDF Reporting failing to generate

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled PDF Reporting failing to generate

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
KiwiBloke
Posts: 81
Joined: Fri Apr 27, 2012 7:23 pm

Re: Scheduled PDF Reporting failing to generate

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

Re: Scheduled PDF Reporting failing to generate

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked