Operations Screen - HTTPS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Operations Screen - HTTPS

Post 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
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Re: Operations Screen - HTTPS

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Operations Screen - HTTPS

Post by sreinhardt »

Thanks for posting your answer Gavin! Hopefully someone else can find this useful as well!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Operations Screen - HTTPS

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked