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
Operations Screen - HTTPS
Re: Operations Screen - HTTPS
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:
After:
Thanks,
Gavin
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">Code: Select all
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">Gavin
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Operations Screen - HTTPS
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
you could also make it
and not load from google directly...
Code: Select all
<script type="text/javascript" src="/nagiosxi/includes/js/jquery/jquery-1.8.2.min.js">
</script>