
cd /usr/local/src
tar -zxf nagios-3.4.1.tar.gz
useradd -m nagios
./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --enable-nanosleep --enable-event-broker
cd /usr/local/src
./configure --prefix=/usr/local/nagios/ --disable-mysql --disable-pgsql
cp ./src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o
chown nagios:nagios /usr/local/nagios/etc/ndo*Installing SSH Keys
su - nagiosThen we will generate the SSH key:
ssh-keygen
vi ~/.ssh/configInside there, add these lines:
Host
Host home
passwd nagios (if you're root)
ssh-copy-id -i /home/nagios/.ssh/nagios_.pub nagios@
ssh-copy-id -i /home/nagios/.ssh/nagios_10.1.5.4.pub nagios@10.1.5.4
scp /usr/local/nagios/libexec/* nagios@This shaves off about 10 minutes of waiting, so enjoy the break. We're almost finished! Now we just need to finish up the Centreon part.:/usr/local/nagios/libexec/
Configuration -> Centreon -> Pollers -> Add (right above the list)

Configuration -> Nagios -> nagios.cfg -> Add

Configuration -> Hosts -> Add
Configuration -> Nagios -> Generate

Preparing environment...OK
Configuration -> Centreon -> Pollers