Mixed content warning - Status Detail pages

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ckiernan
Posts: 31
Joined: Fri Mar 11, 2016 5:17 pm

Re: Mixed content warning - Status Detail pages

Post by ckiernan »

I just found a new clue. The behavior is occurring for Administrators but not regular users. I narrowed it down to the "Can access advanced features" security setting.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Mixed content warning - Status Detail pages

Post by rkennedy »

ckiernan wrote:I just found a new clue. The behavior is occurring for Administrators but not regular users. I narrowed it down to the "Can access advanced features" security setting.
Just to confirm, so that I can try to replicate this on my end - when a user is set as an administrator they'll have all privileges. Are you referring to a auth level set as 'user' having 'can access advanced features' being the trigger to this issue?
Former Nagios Employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Mixed content warning - Status Detail pages

Post by ssax »

Please PM me your /etc/httpd/conf.d directory AND your /etc/httpd/conf/httpd.conf file so that I can lab this up with your configs.
ckiernan
Posts: 31
Joined: Fri Mar 11, 2016 5:17 pm

Re: Mixed content warning - Status Detail pages

Post by ckiernan »

rkennedy wrote:
ckiernan wrote:I just found a new clue. The behavior is occurring for Administrators but not regular users. I narrowed it down to the "Can access advanced features" security setting.
Just to confirm, so that I can try to replicate this on my end - when a user is set as an administrator they'll have all privileges. Are you referring to a auth level set as 'user' having 'can access advanced features' being the trigger to this issue?
Admin users and regular users with "Can access advanced features" experience the problem.
ckiernan
Posts: 31
Joined: Fri Mar 11, 2016 5:17 pm

Re: Mixed content warning - Status Detail pages

Post by ckiernan »

ssax wrote:Please PM me your /etc/httpd/conf.d directory AND your /etc/httpd/conf/httpd.conf file so that I can lab this up with your configs.
Done.
User avatar
Nagios Support
Posts: 36
Joined: Thu Sep 04, 2014 12:16 pm

Re: Mixed content warning - Status Detail pages

Post by Nagios Support »

ckiernan, we received the information you sent us. We will need to do some digging into it, and will get back to you with a possible solution tomorrow.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Mixed content warning - Status Detail pages

Post by rkennedy »

Looking at your configuration, I noticed a few differences against my configuration -

In nagios.conf (comment out twice) -

Code: Select all

   Require all denied
In nagiosxi.conf (comment out once)-

Code: Select all

   Require all granted
I also noticed you're using a static domain vs a dynamic variable as our SSL guide suggests -

Code: Select all

RewriteRule (.*) https://nm.trumid.com%{REQUEST_URI}
where the SSL guide suggests -

Code: Select all

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ssl.conf -

Code: Select all

#   Semaphore:
#   Configure the path to the mutual exclusion semaphore the
#   SSL engine uses internally for inter-process synchronization.
SSLMutex default

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://nm.trumid.com%{REQUEST_URI}
I have only reviewed the mentioned files, so you may still have to make more changes as well, based on what changes have been made to your configurations.

All of these are possibilities to why it's not working. Can you please try commenting them out and changing as needed? I am not sure what the 'SSLMutex' part is, or why your ssl.conf contains an additional rewrite rule. XI will reference itself when sourcing some objects, which is why these rewrites can throw things off. The 'requires' can also lead to permission errors, which could be the reason for the issue you're seeing.
Former Nagios Employee
ckiernan
Posts: 31
Joined: Fri Mar 11, 2016 5:17 pm

Re: Mixed content warning - Status Detail pages

Post by ckiernan »

Follow-up. Fixed. I had to put this issue on the back burner. Better late than never.

The mixed content warning was a red herring. After taking a fresh look I found the following errors in the Apache log

[Tue Jul 26 11:30:51.292504 2016] [:error] [pid 51676] [client 172.18.1.25:56892] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2474, referer: https://xxxxx.com/nagiosxi/includes/com ... iceattr=10
[Tue Jul 26 11:30:51.292586 2016] [:error] [pid 51676] [client 172.18.1.25:56892] PHP Notice: Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2474, referer: https://xxxxx.com/nagiosxi/includes/com ... iceattr=10

These errors led me to find the following post which references a problem due to a NATed IP address. I am using a NATed IP address

https://support.nagios.com/forum/viewto ... =16&t=2915

I added a hosts entry on my Nagios server to point my domain to the internal IP so internal calls will avoid the NATed IP. This fixed the problem.

What a joyous day. Thanks to all who spent time on this for me.

Chris
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Mixed content warning - Status Detail pages

Post by rkennedy »

Glad you were able to get this resolved! Good ol' DNS.

Are we good to close this out?
Former Nagios Employee
ckiernan
Posts: 31
Joined: Fri Mar 11, 2016 5:17 pm

Re: Mixed content warning - Status Detail pages

Post by ckiernan »

Yes, please close.
Locked