Not All Report Create PDFs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Not All Report Create PDFs

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
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,
Try jomann's suggestion and let us know of the result. We can also talk about this during the conference.
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 »

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

Nagios Training/Consulting
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Not All Report Create PDFs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
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 »

If you need to install wkhtml, you can run:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtml
./install
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 »

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.
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 »

Sounds good, 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 »

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'
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,

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.
You do not have the required permissions to view the files attached to this post.
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 »

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

Nagios Training/Consulting
Locked