Nagios xi - Download JPG and PDF issue

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
marcf
Posts: 14
Joined: Mon Dec 11, 2017 7:46 am

Nagios xi - Download JPG and PDF issue

Post by marcf »

Hi,

In Nagios xi, on the report part i'm able to see chart and data for server.
availability.PNG
My issue arrived when trying to download PDF or JPG, i then get no data as you can see on the below image.
pdf_download.PNG
Thanks in advance.

Nagios xi 5.6.10
OS RHEL 7.8
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: Nagios xi - Download JPG and PDF issue

Post by ssax »

Does it work as an Admin user?

Is your xi AD or LDAP integrated? If so, try doing it with a local account and see if that allows it to work.

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

Do the other report PDFs work properly?

What is your PHP version?

Code: Select all

php -v
First backup the file:

Code: Select all

mv /usr/local/nagiosxi/html/includes/utils-reports-export.inc.php /usr/local/nagiosxi/html/includes/utils-reports-export.inc.php.old
Then edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-reports-export.inc.php
Change this code in line 35 from this:

Code: Select all

--margin-bottom 15mm
To this:

Code: Select all

--margin-top 0 --margin-right 0 --margin-bottom 0 --margin-left 0
Then try it again.
marcf
Posts: 14
Joined: Mon Dec 11, 2017 7:46 am

Re: Nagios xi - Download JPG and PDF issue

Post by marcf »

php -v
PHP 5.4.16 (cli) (built: Apr 1 2020 04:07:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


I tried the modification on the file but still got the issue.

I sent you the profile in PM
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi - Download JPG and PDF issue

Post by ssax »

Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Thank you!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi - Download JPG and PDF issue

Post by ssax »

Locking thread, ticket received, we will continue support through the ticket.

Thank you!