Part of dashboard only displaying for admin user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chud
Posts: 36
Joined: Thu Jul 18, 2019 5:51 pm

Part of dashboard only displaying for admin user

Post by chud »

We have created a map that is part of a larger dashboard.
This one dashlet is only displaying if you are logged in as the admin user, the rest of the dashboard displays fine.
If I log in with my user, it displays a message on that part of the dashboard that says, "To protect your security, nagios01.myorg.mysite.edu will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window."
If I try to open in a new window, it says "Session timed out".
If I try it in Chrome, that part of the dashboard says "(servername) refused to connect".

This seems to be some sort of permission issue. How would I correct this?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Part of dashboard only displaying for admin user

Post by ssax »

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

If you're using https:// in the URL you have in Admin > System Settings > Program URL, edit this file:

Code: Select all

/usr/local/nagiosxi/html/config.inc.php
And change this:

Code: Select all

$cfg['use_https'] = false; 
To this:

Code: Select all

$cfg['use_https'] = true; 
Then try it again.
chud
Posts: 36
Joined: Thu Jul 18, 2019 5:51 pm

Re: Part of dashboard only displaying for admin user

Post by chud »

ssax wrote:Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.
Profile sent.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Part of dashboard only displaying for admin user

Post by benjaminsmith »

Hi,

By the logs, It looks like you have configured SSL on this system? Please make sure you set the following option in /usr/local/nagiosxi/html/config.inc.php, and re-start apache after making the change

Code: Select all

$cfg['use_https'] = true;
Make sure the program URL settings are correct. Admin > System Config > System Settings > General.

If that doesn't resolve the error, please loosen the user permissions on this account, and let me know if that dashlet displays.
user-perms.png
Also, please PM the following files to check the Apache setup. Thanks, Benjamin

Code: Select all

/etc/httpd/conf/httpd.con
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
You do not have the required permissions to view the files attached to this post.
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!
chud
Posts: 36
Joined: Thu Jul 18, 2019 5:51 pm

Re: Part of dashboard only displaying for admin user

Post by chud »

benjaminsmith wrote:Hi,

By the logs, It looks like you have configured SSL on this system? Please make sure you set the following option in /usr/local/nagiosxi/html/config.inc.php, and re-start apache after making the change

Code: Select all

$cfg['use_https'] = true;
Done.
benjaminsmith wrote:Also, please PM the following files to check the Apache setup. Thanks, Benjamin

Code: Select all

/etc/httpd/conf/httpd.con
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
Sent.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Part of dashboard only displaying for admin user

Post by ssax »

When you go to XI in your web browser, are you accessing it via https or http? See if it helps if you go to http:// instead of https://.

I see some https logs in your profile but you have Admin > Program URL set to http.

If you want it to use https, go to Admin > System Settings > Program URL and change it to use https in the URL. Then do the $cfg['use_https'] = true; step from above as well to make them match.

Try going to Admin > System Settings > Security tab and check the box next to Disable and see if that helps.
Locked