Not All Report Create PDFs
Re: Not All Report Create PDFs
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?
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.
Re: Not All Report Create PDFs
Mike,
Try jomann's suggestion and let us know of the result. We can also talk about this during the conference.
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!
Re: Not All Report Create PDFs
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.
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
Nagios Training/Consulting
Re: Not All Report Create PDFs
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?
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.
Can you check the version of wkhtmltopdf on your box?
Code: Select all
wkhtmltopdf --versionAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Not All Report Create PDFs
If you need to install wkhtml, you can run:
Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml
./installBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not All Report Create PDFs
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
Nagios Training/Consulting
Re: Not All Report Create PDFs
Sounds good, Mike.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not All Report Create PDFs
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'
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
Nagios Training/Consulting
Re: Not All Report Create PDFs
Mike,
Copy the file below over the "old" install script in "/tmp/nagiosxi/subcomponents/wkhtml" (remove the *.txt extension first) and run:
Let me know if this helped.
Copy the file below over the "old" install script in "/tmp/nagiosxi/subcomponents/wkhtml" (remove the *.txt extension first) and run:
Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml
./installYou 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!
Re: Not All Report Create PDFs
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
wkhtmltopdf --version
Name:
wkhtmltopdf 0.10.0 rc2
Mike Weber
Nagios Training/Consulting
Nagios Training/Consulting