
8. Restart the Apache web server for the new certificate key to be used.
===== CentOS 5.x / 6.x | RHEL 5.x / 6.x | Oracle Linux 5.x / 6.x =====
#
service httpd restart
===== CentOS 7.x | RHEL 7.x | Oracle Linux 7.x =====
#
systemctl restart httpd.service
9. Allow port 443 inbound traffic on the local firewall so that the Nagios Core web interface can be reached.
===== CentOS 5.x / 6.x | RHEL 5.x / 6.x | Oracle Linux 5.x / 6.x =====
#
iptables -I INPUT -p tcp --destination-port 443 -j ACCEPT
#
service iptables save
#
p6tables -I INPUT -p tcp --destination-port 443 -j ACCEPT
#
service ip6tables save
===== CentOS 7.x | RHEL 7.x | Oracle Linux 7.x =====
#
firewall-cmd --zone=public --add-port=443/tcp
#
firewall-cmd --zone=public --add-port=443/tcp --permanent
10. Test the connection to the server by directing a web browser to
https://
serveNname
/
.
There is no
nagios
/ extension in the URL. This is to test the connection to Apache to verify that the
certificate works.
If a self-signed certificate warning is returned, add a security exception. The Apache test web page will be
displayed upon success. The Nagios Core server can now be accessed by directing a web browser at
https://
serverName
/nagios/
. More detailed information about this can be found in the following KB
https://support.nagios.com/kb/article.php?id=598
. If an error is returned, check the firewall and
backtrack through this document, making sure all the steps have been performed.
If a user points a browser at
http://
serverName
, they will be directed to
https://
serverName
, which
can cause certificate warnings. If it is required to redirect them to
https://
serverName
.
domain
.com
,
change the
RewriteRule
in the
/etc/httpd/conf/httpd.conf
file.
RewriteRule (.*) https://
serverName
.
domain
.com%{REQUEST_URI}
11. Restart the HTTPD service.
4.2.2
Configure the Nagios Server to Send Email Notifications
Prerequisites
This procedure requires administrative privileges.
About this task
Use the instructions in this procedure to create Email alerts for sending notifications to users when needed.
Procedure
1. Log on to the SMW as root.
System Monitoring
S3016
70