Page 1 of 1

Part of dashboard only displaying for admin user

Posted: Mon Mar 29, 2021 11:08 am
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?

Re: Part of dashboard only displaying for admin user

Posted: Mon Mar 29, 2021 6:03 pm
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.

Re: Part of dashboard only displaying for admin user

Posted: Tue Mar 30, 2021 10:40 am
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.

Re: Part of dashboard only displaying for admin user

Posted: Wed Mar 31, 2021 12:02 pm
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

Re: Part of dashboard only displaying for admin user

Posted: Wed Mar 31, 2021 2:03 pm
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.

Re: Part of dashboard only displaying for admin user

Posted: Thu Apr 01, 2021 11:36 am
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.