Page 1 of 1

Nagios 4.0.7 and SSL problem

Posted: Wed Dec 02, 2015 3:27 am
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

Re: Nagios 4.0.7 and SSL problem

Posted: Wed Dec 02, 2015 1:53 pm
by tgriep
Did you enable SSL in the /etc/httpd/conf.d/nagios.conf file?
Can you post it so we can review it?

Re: Nagios 4.0.7 and SSL problem

Posted: Thu Dec 03, 2015 1:16 am
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>

Re: Nagios 4.0.7 and SSL problem

Posted: Thu Dec 03, 2015 10:29 am
by rkennedy
When you click 'more information' does your SSL certificate show up?

Re: Nagios 4.0.7 and SSL problem

Posted: Mon Dec 07, 2015 4:08 am
by exelf
I just install later version 4.1.1, the problem has been fixed

Re: Nagios 4.0.7 and SSL problem

Posted: Mon Dec 07, 2015 10:34 am
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.