May 132010


I’ve corrected my two previous posts to correct ndoutils high IOwait cpu usage:

Ubuntu Server 10.04 LTS with Nagios 3.2.1 and Centreon 2.1.6
Ubuntu 8.04 LTS Nagios 3.2.1 Install (Part 1)

If you have already installed your solution, proceed as follow:

cd /usr/local/src
sudo wget -r -k -np
sudo /etc/init.d/ndo2db stop

Check if you have no more ndo2db instances:

ps -A|grep ndo2db

If the is, kill them with the command ‘kill -9 PID’

sudo bash ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios
sudo make
sudo cp src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o
sudo cp src/ndo2db-3x /usr/local/nagios/bin/ndo2db
sudo chmod 775 /usr/local/nagios/bin/ndo2db
sudo chmod 755 /usr/local/nagios/bin/ndomod.o
sudo chown nagios:nagios /usr/local/nagios/bin/ndo2db
sudo chown nagios:nagios /usr/local/nagios/bin/ndomod.o
sudo /etc/init.d/ndo2db start
sudo /etc/init.d/nagios restart

That’s it