Page 1 of 3

Email / Download Report having issues

Posted: Mon Oct 08, 2018 11:23 am
by rkane
I'm having a number of issues with emailing / downloading a report.

1) Regardless of format (JPG, PDF, etc) all of the graphs in the report are blank
2) If I email the report the PDF is corrupted and will not open
3) If I email the report the link to directly access the report in NagiosXI takes me to a login screen and then to my own Home screen

Re: Email / Download Report having issues

Posted: Mon Oct 08, 2018 11:49 am
by benjaminsmith
Hi,

We recently upgraded jQuery, and have a a known issue regarding PDF reports (i.e. data not being populated in the PDF).

Let's try reverting back to the previous version of jQuery.

Open the /usr/local/nagiosxi/html/config.inc.php file in a text editor, find the section below:

Code: Select all

// Old browser compatability with jQuery
// - Turn this on to set jQuery to use 1.x instead of 3.x
// - Security fixes are available in 3.x and is the default version but is not compatible with IE 8
and change this line:

Code: Select all

// $cfg['old_browser_compat'] = 1;
to this (simply uncomment the line):

Code: Select all

$cfg['old_browser_compat'] = 1;
If you don't find the line, just add it to the config, save, and exit. Let us know if this resolves the issue.

Re: Email / Download Report having issues

Posted: Mon Oct 08, 2018 12:00 pm
by rkane
Did not find the line so I added it, emailing the report resulted in the attached error...did I get the syntax wrong somehow?

Re: Email / Download Report having issues

Posted: Mon Oct 08, 2018 1:56 pm
by benjaminsmith
Ok. We took a look at the error message and this is mostly likely an issue related to your Program URL settings.

1. Go ahead and remove the
$cfg['old_browser_compat'] = 1;
from /usr/local/nagiosxi/html/config.inc.php.

2. Now since you are using SSL, change the // Force http/https to:

Code: Select all

$cfg['use_https'] = true; 
Save your changes and restart Nagios.

3. Login to Nagos XI and go to Admin > System Config > System Settings > General Program Settings
... and Verify that the "Program URL" matches the "External URL".

Let us know if that resolves the issue.

Re: Email / Download Report having issues

Posted: Mon Oct 08, 2018 3:12 pm
by rkane
1. Done
2. Was already there and "true"
3. I currently have no external url defined. Either way (with one that matches the internal, or no external at all) the error emailing the report remains. Meaning - I can no longer send a bad PDF to myself :)
benjaminsmith wrote:Ok. We took a look at the error message and this is mostly likely an issue related to your Program URL settings.

1. Go ahead and remove the
$cfg['old_browser_compat'] = 1;
from /usr/local/nagiosxi/html/config.inc.php.

2. Now since you are using SSL, change the // Force http/https to:

Code: Select all

$cfg['use_https'] = true; 
Save your changes and restart Nagios.

3. Login to Nagos XI and go to Admin > System Config > System Settings > General Program Settings
... and Verify that the "Program URL" matches the "External URL".

Let us know if that resolves the issue.

Re: Email / Download Report having issues

Posted: Mon Oct 08, 2018 3:53 pm
by benjaminsmith
Thank you for the update. I would like to verify a couple of things.

1. Can you provide a screen shot of System Settings > General and System Settings > Security from the Admin menu.

2. Please send over a System Profile to help us review your settings.

To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.

Re: Email / Download Report having issues

Posted: Tue Oct 09, 2018 8:35 am
by rkane
Please see attached
benjaminsmith wrote:Thank you for the update. I would like to verify a couple of things.

1. Can you provide a screen shot of System Settings > General and System Settings > Security from the Admin menu.

2. Please send over a System Profile to help us review your settings.

To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support queue.

Re: Email / Download Report having issues

Posted: Tue Oct 09, 2018 9:33 am
by benjaminsmith
Good Morning,

Thanks for sending over the profile and screen shots. Please set the Program URL in the System Settings > General Program Settings to:

https://nagios.utsystem.edu/nagiosxi/


Let me know if that resolves the problem for you.

Re: Email / Download Report having issues

Posted: Tue Oct 09, 2018 1:13 pm
by rkane
Same error unfortunately
benjaminsmith wrote:Good Morning,

Thanks for sending over the profile and screen shots. Please set the Program URL in the System Settings > General Program Settings to:

https://nagios.utsystem.edu/nagiosxi/


Let me know if that resolves the problem for you.

Re: Email / Download Report having issues

Posted: Tue Oct 09, 2018 2:05 pm
by tgriep
Is the PDF file from the email larger than zero bytes?
If so, can you attach it to the post so we can view the contents of it?