Page 1 of 1

Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 9:49 am
by mikemontreal
I setup a scheduled report to send me a dashboard with 4 graphs weekly, but every time the pdf turns out to be blank. I tried running two types of graphs, one with Graph Explorer graphs and reg perf Graphs and go the same result (blank pdf). When I run the sched report and tail the httpd logs i get this.

Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
[Fri Feb 01 13:35:11 2013] [error] [client x.x.x.x] PHP Notice: Undefined variable: cmd in /usr/local/nagiosxi/html/includes/components/scheduledreporting/schedulereport.php on line 202, referer: http://x.x.x.x/nagiosxi/includes/components/scheduledreporting/schedulereport.php

btw I only get a 1 page blank pdf (above it says 6/6)
Note:
Nagios 2012R1.4

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 10:21 am
by lmiltchev
If you still keep the nagios xi install directory, run the following commands:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtml/
./install
If you don't keep it, you can download the latest tarball, untar it, and run the above listed commands.

Let me know if this helped.

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 11:34 am
by mikemontreal
Well I did what you suggested.My reports are still blank :(

httpd log tail update

Code: Select all

Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
[Fri Feb 01 10:34:51 2013] [error] [client x.x.x.x] PHP Notice:  Undefined variable: cmd in /usr/local/nagiosxi/html/includes/components/scheduledreporting/schedulereport.php on line 202, referer: http://x.x.x.x/nagiosxi/includes/components/scheduledreporting/schedulereport.php?send=1&id=2uhatc&nsp=419d5df881d7f4a90cae0c5d521b15ac
Still only getting 1 page pdf attached

rebooted server too btw to make sure all services had a restart

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 12:48 pm
by mikemontreal
BTW
What version of Nagios XI are you using? 2012R1.4
Linux Distribution and version? 32 or 64bit? 32
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? nope

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 2:54 pm
by scottwilkerson
I have looked into this and I can confirm that there is a problem building graph explorer graphs, however I was able to create with a standard graph just fine.

Can you post a screenshot of the dashboard?

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 4:17 pm
by mikemontreal
You are right, Graph Explorer don't work but the standard graphs work fine now.
Is there a way to be notified or track the Graph Explorer to report bug/issue?

Cheers

Re: Scheduled Reports blank pdf

Posted: Fri Feb 01, 2013 4:21 pm
by mguthrie
Graph explorer graphs won't work with the "schedule page" feature of XI. The graph explorer graphs are vectors that are drawn client-side, so unfortunately they can't be pulled into a scheduled report. As mentioned, the RRD generated graphs can, so you'll need to use those if you're sending a dashboard as a report.