Nagios 4.0.7 and SSL problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
exelf
Posts: 3
Joined: Tue Dec 01, 2015 9:16 pm

Nagios 4.0.7 and SSL problem

Post by exelf »

I install a CentOS7 64bit and Nagios Core version 4.0.7 in a virtual machine. I can access the webpage of Nagios Core server after install and configure, after then I wish to securite the nagios server, i install the SSL components for the CentOS server, genertae a key and configure the SSL setting.

However, I found a different situation when I access the nagios server with SSL, the detail situation show as below.

Situation 1: https://<nagios-server-ip>, the icon of url bak right show a "locked", and then click the icon which show "The connection to this website is secure" message

Situation 2: https://<nagios-server-ip>/nagios, the icon of url bak right show a "dialog warning", and then click the icon which show "The connection to this website is not secure because it contains unencrypted elements(such as image)" message
Attachments
Situation 2
Situation 2
Situation 1
Situation 1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.0.7 and SSL problem

Post by tgriep »

Did you enable SSL in the /etc/httpd/conf.d/nagios.conf file?
Can you post it so we can review it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
exelf
Posts: 3
Joined: Tue Dec 01, 2015 9:16 pm

Re: Nagios 4.0.7 and SSL problem

Post by exelf »

Yep , I remove the command "#" for "SSLRequireSSL" sentence. I copy & paste the /etc/httpd/conf.d/nagios.conf file as below.

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 4.0.7 and SSL problem

Post by rkennedy »

When you click 'more information' does your SSL certificate show up?
Former Nagios Employee
exelf
Posts: 3
Joined: Tue Dec 01, 2015 9:16 pm

Re: Nagios 4.0.7 and SSL problem

Post by exelf »

I just install later version 4.1.1, the problem has been fixed
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios 4.0.7 and SSL problem

Post by bwallace »

Thanks for that update and glad to hear this is resolved. We'll lock this thread now but feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked