Setting up Nagios with SSL
Setting up Nagios with SSL
hi i have migrated my nagios from rhel 5 to rhel 7 server, i have mostly everything working.
Now i just need to get it running over HTTPS, on the older server i already had it running over HTTPS.
what would be my best/easiest approach to migrating https over to my new server.
thanks!
Now i just need to get it running over HTTPS, on the older server i already had it running over HTTPS.
what would be my best/easiest approach to migrating https over to my new server.
thanks!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Setting up Nagios with SSL
First make sure port 443 inbound is open on the local firewall.
You should be able to copy over your Apache configs and certificate from the old server to the new server, they might be:
The following guide is for Nagios XI however the core Apache config should be similar:
https://assets.nagios.com/downloads/nag ... os%20XI.pd
You should be able to copy over your Apache configs and certificate from the old server to the new server, they might be:
Code: Select all
/etc/httpd/conf.d/ssl.conf
/etc/httpd/conf/httpd.confThe following guide is for Nagios XI however the core Apache config should be similar:
https://assets.nagios.com/downloads/nag ... os%20XI.pd
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Setting up Nagios with SSL
I have moved those files over to new server including the certificate/key files its points to,
however this stops my apache server.
however this stops my apache server.
Re: Setting up Nagios with SSL
What are the errors that you see in the apache error log?
Code: Select all
tail -100 /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setting up Nagios with SSL
are you sure that is the log file?
I have that file but no new logs are added to it.
I have that file but no new logs are added to it.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Setting up Nagios with SSL
could you post the output of httpd -V (note the cap V)
Re: Setting up Nagios with SSL
Try running this
And then see if you find any errors in any of the files in this folder and post it here.
Code: Select all
service httpd restartCode: Select all
/var/log/httpdBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setting up Nagios with SSL
hey dwhitfield
the httpd -V command give following error:
httpd: Syntax error on line 148 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_auth_kerb.so into server: /etc/httpd/modules/mod_auth_kerb.so: cannot open shared object file: No such file or directory
looks like module related, i defenatly see that the old httpd file from old server has alot of modules listed where as the new one doesnt
the httpd -V command give following error:
httpd: Syntax error on line 148 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_auth_kerb.so into server: /etc/httpd/modules/mod_auth_kerb.so: cannot open shared object file: No such file or directory
looks like module related, i defenatly see that the old httpd file from old server has alot of modules listed where as the new one doesnt
Re: Setting up Nagios with SSL
okay i think ive fixed that error, i just commented out the modules and poinited it to the folder where they are on the new server and now apache starts fine.
However when adding the ssl.conf file i get an error running httpd -V, looks like another module related error:
i checked in the /etc/httpd/modules/ and is not listed there
However when adding the ssl.conf file i get an error running httpd -V, looks like another module related error:
Code: Select all
# httpd -V
httpd: Syntax error on line 214 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: Cannot load modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: cannot open shared object file: No such file or directory
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Setting up Nagios with SSL
You might need to do this:
Code: Select all
yum install mod_ssl
service httpd configtestAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.