Page 1 of 1

Downloaded images cut off

Posted: Thu Jan 10, 2019 6:22 pm
by rbuckle
When i download images from the graphs they cut off, is this a known issue?

Re: Downloaded images cut off

Posted: Fri Jan 11, 2019 11:17 am
by tgriep
It could be that the default PHP settings on the server need to be increased to allow the graph to be fully displayed. The following article has instructions in how to do that.
https://support.nagios.com/kb/article/n ... e-611.html
Let us know if this works or not.

Re: Downloaded images cut off

Posted: Fri Jan 11, 2019 11:20 am
by rbuckle
The images display fine on the screen, this cutoff is only when you try to download them to any format that is not an svg (svg seems to work fine)

Re: Downloaded images cut off

Posted: Fri Jan 11, 2019 2:57 pm
by tgriep
Try doing the changes to the php.ini file as the scripts that create the downloaded images, still use PHP to generate them.

If the changes still do not work, run the following as root

Code: Select all

tail -f /var/log/*error_log
Then download an image and post any errors that you see in the window running the tail command.

Re: Downloaded images cut off

Posted: Fri Jan 11, 2019 4:37 pm
by rbuckle
I see a lot of this

Code: Select all

[Fri Jan 11 13:34:56.466115 2019] [:error] [pid 23489] [client 205.173.79.218:50656] PHP Warning:  Unterminated comment starting line 1 in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php(883) : eval()'d code on line 1, referer: http://nagios2.intermax.network/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=ns2.intermaxnetworks.com
ns2.intermaxnetworks.com was the device i was looking at

Re: Downloaded images cut off

Posted: Mon Jan 14, 2019 11:01 am
by tgriep
Those messages are really "PHP Warning:". Even though the word error in is in the entry, it is still a Warning.
Can you run the following commands and post the version of the 2 applications that generate the images and PDF files?

Code: Select all

/usr/local/bin/wkhtmltopdf -V
/usr/local/bin/wkhtmltoimage -V
What version of Nagios XI is the server running?

Re: Downloaded images cut off

Posted: Mon Jan 14, 2019 11:12 am
by rbuckle

Code: Select all

/usr/local/bin/wkhtmltopdf -V
wkhtmltopdf 0.12.1.3 (with patched qt)
/usr/local/bin/wkhtmltoimage -V
wkhtmltoimage 0.12.1.3 (with patched qt)
Installed Version: 5.5.8

Re: Downloaded images cut off

Posted: Mon Jan 14, 2019 11:29 am
by tgriep
Thanks for letting me know the versions of the tools.

I was able to recreate the issue you are having and confirmed it is a Bug and I filed a Bug fix to get it fixed.
The ID for the Bug Fix is 13979.

Downloading PDF and SVG files seem to be OK.

Re: Downloaded images cut off

Posted: Mon Jan 14, 2019 12:15 pm
by rbuckle
Correct, SVGs and PDFs seem unaffected

Re: Downloaded images cut off

Posted: Mon Jan 14, 2019 4:27 pm
by npolovenko
@rbuckle, I will be closing this thread, but feel free to PM me or Tom in a couple weeks about the status of this bug fix.
You can also keep an eye on the XI changelog for the latest updates and improvements:
https://www.nagios.com/downloads/nagios-xi/change-log/