Need help configuring SSL with Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help configuring SSL with Nagios XI

Post by scottwilkerson »

Can you attach your nagiosxi.comf file

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios XI

Post by tgfde »

File is attached.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios XI

Post by tgfde »

Sorry here it is. Just rename file to .conf. Thanks.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help configuring SSL with Nagios XI

Post by scottwilkerson »

Lets replace the commented out section with the following:

Code: Select all

<VirtualHost *:443>
<Directory "/usr/local/nagiosxi/html">
  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 XI"
#   AuthType Basic
#   AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
#   Require valid-user
</Directory>
</VirtualHost>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios XI

Post by tgfde »

What about the portion below the commented out section? Do I leave that there?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help configuring SSL with Nagios XI

Post by scottwilkerson »

yes
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios XI

Post by tgfde »

After making the chage, httpd failed to start. Below is the current nagiosxi.conf and the httpd log.

nagiosxi.conf
<VirtualHost *:443>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
</Directory>
</VirtualHost>

Alias /nagiosxi "/usr/local/nagiosxi/html"


Log:
[Fri May 25 08:49:21 2012] [notice] caught SIGTERM, shutting down
[Fri May 25 08:49:22 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 25 08:49:22 2012] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf.d/nagiosxi.conf:1)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help configuring SSL with Nagios XI

Post by scottwilkerson »

I'm sorry the section at the top should be
<VirtualHost *:80>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>
I accidentally left :443 in there and it should be :80
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Need help configuring SSL with Nagios XI

Post by tgfde »

Ok that worked - httpd started.

However, when I access nagiosxi via http, I get the the "Welcome" page (attached) where it has a broken NagiosXI image. Then when I click on "Acess Nagios XI", I get the "Forbidden" page.

Is there a way to bypass the "Welcome" page when a user tries to access Nagiosxi and have redirected straight to the "Forbidden" page.

Thank you.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need help configuring SSL with Nagios XI

Post by lmiltchev »

When you navigate to: Admin->System Config->Mange System Config, what do you see in the "Program URL" field? I guess you have: "https://<IP_address>" but you should have "https://<IP_address>/nagiosxi/" instead. You should modify this field and hit the "Update Settings" button.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked