Failed to create PDF Verify that your Nagios XI server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Failed to create PDF Verify that your Nagios XI server

Post by dimsum »

Hi,

I got the error when export to pdf or jpg. everything works after upgrade to 5.5.2
Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
http://localhost/nagiosxi/reports/avail ... 1&export=1
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Help me, please.

Thank you.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by ssax »

What are you seeing in your /usr/local/nagiosxi/var/wkhtmltox.log?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by ssax »

Additionally, when accessing the site using the web browser are you using the IP or a dns name in the address bar?
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by dimsum »

No file.
tailf: stat failed /usr/local/nagiosxi/var/wkhtmltox.log: No such file or directory

I access with IP address it was a match of the program url.

Thanks.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Failed to create PDF Verify that your Nagios XI server

Post by tgriep »

When you try and export a pdf of jpg, what error are you receiving?
Can you screen capture the error and post it here?

Can you run the following commands so we can verify that the tool that creates the files is installed in the server and that the version is correct.

Code: Select all

/usr/bin/wkhtmltoimage -V
/usr/bin/wkhtmltopdf -V
It should be this version 0.12.1.3 (with patched qt)
Be sure to check out our Knowledgebase for helpful articles and solutions!
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by dimsum »

Hi,

[root@localhost scripts]# wkhtmltopdf -V
wkhtmltopdf 0.12.5 (with patched qt)
[root@localhost scripts]# wkhtmltoimage -V
wkhtmltoimage 0.12.5 (with patched qt)
You do not have the required permissions to view the files attached to this post.
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by dimsum »

Additional: /var/log/httpd/error_log

The switch --disable-smart-shrinking, is not support using unpatched qt, and will be ignored.The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by lmiltchev »

I see that you have "http" in the program URL, but are you by chance using SSL on this server? The newer versions of wkhtmltopdf have issues with SSL, so you need to downgrade from 0.12.5 to 0.12.1.3 (and use "https" in the program URL).

Try running:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtmltox
./install
Check the version number after you are done with the install:

Code: Select all

wkhtmltopdf -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by dimsum »

I run the command.

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtmltox
./install
but get the same version
[root@localhost wkhtmltox]# wkhtmltopdf -V
wkhtmltopdf 0.12.5 (with patched qt)
How can I remove the old version?

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Failed to create PDF Verify that your Nagios XI server

Post by lmiltchev »

My bad - sorry. I forgot to tell you that you needed to uninstall the package first.

Run:

Code: Select all

rpm -e wkhtmltox
to uninstall the package.

Then install the correct version by running:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtmltox
./install
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked