Page 2 of 3

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 9:42 am
by jomann
Hi Mike,

With this recently upgraded system you mentioned with the logs, do the reports work in the PHP pages in XI?

If you were to use the link you gave without the &hideoptions=1 what does it give?

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 10:44 am
by lmiltchev
Mike,
Try jomann's suggestion and let us know of the result. We can also talk about this during the conference.

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 11:06 am
by mikew
No these are two different systems. One that worked, 2012R2.2 to 2.4. One that did not work, 2012R2.3 to 2.4.

The one that did not work had some PDFs that worked and some that did not, now none work, all empty.

The one that worked I commented out the languages as mentioned before.

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 1:03 pm
by jomann
So what I think is going on is wkhtmltopdf is having trouble on your box - which is what was used to make the PDF for executive summary and all scheduled reports before the 2012R2.4 release. Now we use it for all the reporting including the PDFs for the reports that were using FPDF.

Can you check the version of wkhtmltopdf on your box?

Code: Select all

wkhtmltopdf --version
We have to use 0.10.0 rc2 because it has some Qt integration that is not in the newer version so if yours is newer that could be the cause.

Re: Not All Report Create PDFs

Posted: Mon Sep 30, 2013 3:51 pm
by lmiltchev
If you need to install wkhtml, you can run:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtml
./install

Re: Not All Report Create PDFs

Posted: Tue Oct 01, 2013 4:21 am
by mikew
Thanks...it is a production machine so I cannot get access to it until Thursday (enjoying the Nagios conference) but I will check it out and put an update in here in case it happens to anyone else.

Re: Not All Report Create PDFs

Posted: Tue Oct 01, 2013 8:14 am
by lmiltchev
Sounds good, Mike.

Re: Not All Report Create PDFs

Posted: Fri Oct 04, 2013 10:28 am
by mikew
Here is an update on this issue:

At this point an install fails as listed below. Install done from the subcomponents//wkhtml/ directory.

wkhtmltopdf --version
Name:
wkhtmltopdf 0.10.0 rc2



./install
Traceback (most recent call last):
File "./install", line 17, in <module>
installpath = os.environ['INSTALL_PATH']
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'INSTALL_PATH'

Re: Not All Report Create PDFs

Posted: Fri Oct 04, 2013 10:34 am
by lmiltchev
Mike,

Copy the file below over the "old" install script in "/tmp/nagiosxi/subcomponents/wkhtml" (remove the *.txt extension first)
install.txt
and run:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtml
./install
Let me know if this helped.

Re: Not All Report Create PDFs

Posted: Fri Oct 04, 2013 10:49 am
by mikew
I removed the old install and ran the new one...it did not make any difference. All reports are a white page when you select reports and PDFs. The version has stayed the same:


wkhtmltopdf --version
Name:
wkhtmltopdf 0.10.0 rc2