Centos 6.5 – Create a 389 Directory Server replication

These instructions show how to setup a Master – Slave replication with your 389 Server. This setup takes into account that self signed SSL certificates are being used. The slave server cannot update the master server.

Step 1) Install 389 on your slave server.

Install the EPEL/REMI repos by following these instructions 

Step 2) Prepare your server for the 389 Directory Service

vi /etc/hosts       ldap1.sfentona.lol      ldap1
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 389 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 636 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9830 -j ACCEPT
vi /etc/sysctl.conf
net.ipv4.tcp_keepalive_time = 300
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 64000
 vi /etc/security/limits.conf
*               soft     nofile          8192   
*               hard     nofile          8192

Continue reading

Share Button

Centos 6.5 – Nagios 4.0.7 – How to monitor a remote server via NRPE

The following instructions assume that Nagios was installed from source. With an RPM install the locations of some files may be different. However the overall principal is the same.

In Nagios you can monitor a remote server by either ding a check on the remote server by not invoking any internal command with in it or by monitoring a remote server by actually having the Nagios server invoke a command on the remote server. An example would be a simple PING check versus if a service is running on the remote server. The Ping check can be done from the Nagios server with out having to call any commands on the remote server. However, in order to check if a process is still up and running you would have to setup the remote server to do that specif check.

In order for the second type of check to be completed NRPE will used. NRPE is a utility which allows you to execute remote commands on the remote server you are monitoring. NRPE service will need to be installed on the Nagios server and on the remote server we are monitoring. When we want to do a remote check on a remote server we will have to call upon NRPE from the Nagios server.

An example of setting up the CHECK_DISK plugin.  This plugin checks the disk space on the remote server we are monitoring.

Continue reading

Share Button