Apr 052010

Hi again, before starting the installation process, let define some rules we will follow: I recommend that before you start any installation you define a template for the naming scheme of your monitored machines. I decided to uses this one (but it’s up to you to create your own): 3 first letters for customer-name of the machine-environment. In my case it’s ACT-CENTREON-TEST (ACT for ACTIVLAN, Centreon for my computer and test for the target environment) for the central monitoring machine. Here is a spreadsheet for the different login and passwords that will be used for the installation process (some of them are used in further post):

Account role Login Password
MySQL root access root mysqlcentaccess03
Nagios nagios nagaccess03
User account activlan remoteaccess03
Mysql account centreon mysqlcentreon03
Web Nagios nagiosadmin nagwebaccess03
Web Centreon admin actwebaccess03

Let start the installation process

Insert you CD, boot from it and proceed for a minimal install. For the partition scheme let the system choose one for you (I recommend using LVM because in case of “out of disk space” it will be easier to extend disk). DO NOT INSTALL ANY ROLE EXCEPT SSH.

System update

Once it’s installed, proceed to a system update

sudo aptitude update
sudo aptitude full-upgrade -y

Switch to fixed IP address

sudo nano /etc/network/interfaces

Please verify that you are working with fixed IP address. You should see something like this at the end of the file (the value should be different for you):

auto eth0
iface eth0 inet static


Compilation component install

sudo aptitude install build-essential -y
sudo aptitude install linux-headers-$(uname -r) -y

If you are using a virtual machine, it’s time to install the appropriate tools (it’s up to you).


sudo aptitude install mysql-server-5.0 libmysqlclient15-dev -y

Use mysqlcentaccess03 for root MySQL password


sudo aptitude install sysutils mailx policykit -y

Web and php5

sudo aptitude install apache2 apache2-mpm-prefork libapache2-mod-php5 -y
sudo aptitude install php5 php5-mysql -y
sudo aptitude install php-pear php5-ldap php5-snmp php5-gd -y


sudo aptitude install rrdtool librrds-perl -y


sudo aptitude install libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl -y


sudo aptitude install snmp snmpd libnet-snmp-perl libsnmp-perl -y


sudo aptitude install libgd2-xpm libgd2-xpm-dev libpng12-dev -y

Other needed library

sudo aptitude install libldap2-dev libssl-dev libsnmp-dev -y

Now we are ready to install Nagios and Centreon (in further post).