Email / Download Report having issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Email / Download Report having issues

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Email / Download Report having issues

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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?
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Email / Download Report having issues

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Email / Download Report having issues

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Email / Download Report having issues

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkane
Posts: 114
Joined: Wed Aug 15, 2018 3:56 pm

Re: Email / Download Report having issues

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email / Download Report having issues

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked