Page 1 of 1

Operations Screen - HTTPS

Posted: Wed Dec 26, 2012 4:27 pm
by Gavin
We have just deployed Nagios XI 2012R1.3 (clean install) and are having some troubles getting the 'Operations Screen' to work over HTTPS.

We're currently using a self-signed certificate, and followed this guide to the letter: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf.

The only additional change I made was to add an Apache Rewrite from HTTP to HTTPS. Everything works perfectly, apart from Operations Screen which just loads blank via. HTTPS (notably, the counter doesn't do anything either):

https://www.evernote.com/shard/s89/sh/2 ... 021:24.jpg

If I disable the rewrite, and load the page via. HTTP, it works perfectly.

Does anyone have any idea what might be causing this? I've uninstalled / reinstalled the component to no avail.

Many thanks,

Gavin

Re: Operations Screen - HTTPS

Posted: Wed Dec 26, 2012 4:32 pm
by Gavin
Wow, this has been bugging me for ages, and within seconds of posting on the forum I've found the problem!

When the page loads, it brings in 'jquery.min.js' from Google via. HTTP. I imagine that my browser refused to run this because it was 'insecure'. I've amended 'opscreen.php' so it loads this via. HTTPS, and it worked straight away:

Before:

Code: Select all

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
After:

Code: Select all

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
Thanks,

Gavin

Re: Operations Screen - HTTPS

Posted: Wed Dec 26, 2012 4:35 pm
by sreinhardt
Thanks for posting your answer Gavin! Hopefully someone else can find this useful as well!

Re: Operations Screen - HTTPS

Posted: Wed Dec 26, 2012 5:51 pm
by scottwilkerson
you could also make it

Code: Select all

<script type="text/javascript" src="/nagiosxi/includes/js/jquery/jquery-1.8.2.min.js">
        </script>
and not load from google directly...