Downloaded images cut off

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Downloaded images cut off

Post by rbuckle »

When i download images from the graphs they cut off, is this a known issue?
You do not have the required permissions to view the files attached to this post.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Downloaded images cut off

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Downloaded images cut off

Post 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)
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Downloaded images cut off

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Downloaded images cut off

Post 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
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Downloaded images cut off

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Downloaded images cut off

Post 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
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Downloaded images cut off

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Downloaded images cut off

Post by rbuckle »

Correct, SVGs and PDFs seem unaffected
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Downloaded images cut off

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