After having installed the pre-requisites, Nagios & Nagios plugins, the next part of the installation of centreon Network monitoring solution involves the centreon binaries itself.
If you jumped into this article then please have a look at the previous three steps of this four part installation procedure:
Download the latest version of Centreon (1.4.2.3 at the time of writing) from
Use wget to download the files
debian4r2:/software# wget http://download.oreon-project.org/index.php?id=73
Untar and Unzip the files
debian4r2:/software# tar -zxvf centreon-1.4.2.3.tar.gz
Change Directory to the extracted cenreon-1.4.2.3 directory
debian4r2:/software# cd centreon-1.4.2.3
Run the install script. This will start the installation and take you through a series questions, mostly accept the default, however if required change as appropriate.
debian4r2:/software/centreon-1.4.2.3# ./install.sh
The following is from my installation:
######################################################
# Centreon (www.centreon.com) #
# Thanks for using Centreon #
# #
# v 1.4.2.3 #
# #
# infos@oreon-project.org #
# #
# Make sure you have installed and configured #
# sudo – sed #
# php – apache – rrdtool – mysql #
# #
# #
######################################################
# The Team Centreon #
######################################################Make sure you have root permissions !
WARNING : Setup will delete all previous informations in your Centreon DATABASE .Are you sure to continue ?
[y/n], default to [n]:y
Where is installed Nagios ?
default to [/usr/local/nagios]:
Where is your nagios etc directory ?
default to [/usr/local/nagios/etc]:
Path /usr/local/nagios/etc OKWhere is your nagios var directory ?
default to [/usr/local/nagios/var]:
Path /usr/local/nagios/var OKWhere is your nagios plugins (libexec) directory ?
default to [/usr/local/nagios/libexec]:
Path /usr/local/nagios/libexec OKWhere is your nagios bin directory?
default to [/usr/local/nagios/bin]:
Path /usr/local/nagios/bin OKWhere is your nagios image directory ?
default to [/usr/local/nagios/share/images]:
Path /usr/local/nagios/share/images OKWhere do I install centreon ?
default to [/usr/local/centreon]:
Directory /usr/local/centreon does not exits. CRITICALDo you want me to create this directory [/usr/local/centreon]?[Y/n]y
Path /usr/local/centreon OKWhere is installed RRD perl modules [RRDs.pm] ?
Just put directory, not full path.
default to [/usr/local/rrdtool/lib/perl]:/usr/lib/perl5
File /usr/lib/perl5 OKWhere is rrdtool binary ?
default to [/usr/bin/rrdtool]:
/usr/bin/rrdtool OKWhere is mail binary ?
default to [/usr/bin/mail]:
/usr/bin/mail OKWhere is PEAR Path ?
default to [/usr/share/pear]:/usr/share/php/
PEAR Path /usr/share/php OK————————————————————————
User Management
————————————————————————
Finding Apache group : www-data
Finding Apache user : www-data
Finding Nagios group : nagios
Finding nagios group ‘nagios’ in /etc/group YES
Finding Nagios user : nagios
Finding nagios user ‘nagios’ in /etc/passwd YES————————————————————————
Other Stuff
————————————————————————
TrueType directory created OK
TrueType verdana installed OK
Finding PEAR Path : /usr/share/php OK
PEAR Font directory created OK
PEAR Font installed OK————————————————————————
Configure Apache server
————————————————————————
Create ‘/etc/apache2/conf.d/oreon.conf’ OK
Configuring Apache OK
User www-data added to nagios group OK
————————————————————————
Start Centreon Installation
————————————————————————
Centreon Directory already exists PASSED
Copy ‘filesGeneration’ OK
Copy ‘filesUpload’ OK
Copy ‘GPL_LIB’ OK
Copy ‘log’ OK
Copy ‘www’ OK
Copy ‘cron’ OK
Copy ‘ODS’ OK
Copy ‘ODS_SRC_ETC’ OK
Copy ‘doc’ OK————————————————————————
Start Plugins Centreon Installation
————————————————————————
/usr/local/nagios/libexec already exists PASSEDPreparing Oreon Plugins…
-> centreon.conf OK
-> centreon.pm OK
-> check_centreon_dummy OK
-> check_centreon_MS_multiple_services OK
-> check_centreon_nt OK
-> check_centreon_ping OK
-> check_centreon_snmp_cpu OK
-> check_centreon_snmp_loadaverage OK
-> check_centreon_snmp_multiple_process OK
-> check_centreon_snmp_packetErrors OK
-> check_centreon_snmp_process OK
-> check_centreon_snmp_process_detailed OK
-> check_centreon_snmp_remote_storage OK
-> check_centreon_snmp_TcpConn OK
-> check_centreon_snmp_traffic OK
-> check_centreon_snmp_uptime OK
-> check_centreon_snmp_value OK
-> check_meta_service OK
-> check_snmp_cpfw.pl OK
-> check_snmp_load.pl OK
-> check_snmp_mem.pl OK
-> check_snmp_process.pl OK
-> check_snmp_processus_loaded.pl OK
-> check_snmp_script_result.pl OK
-> check_snmp_storage.pl OK
-> check_snmp_win.pl OK
-> process-service-perfdata OK
-> submit_host_check_result OK
-> submit_service_check_result OKDo you want to install Centreon Plugins ?
[y/n], default to [y]:y
Installing Centreon Plugins on ‘/usr/local/nagios/libexec’ OK————————————————————————
Start Traps Handler Installation
————————————————————————Preparing Oreon Plugins…
-> fill_trapDB
-> genSnmpttConfFile
-> trapHandlerDo you want to install Centreon Traps Plugins ?
[y/n], default to [y]:y
[y/n], default to [y]:y
Installing Centreon Traps Plugins on
/usr/local/nagios/libexec/traps created OKWhere is your SNMP configuration file?
default to [/etc/snmp/]:Moving snmptrapd.conf to /etc/snmp/ OK
/etc/snmp/centreon_traps created OK
Moving snmptt.ini to /etc/snmp/centreon_traps/ OK
Moving snmp.conf to /etc/snmp/ OK
Moving snmptt to /usr/sbin/ OK
Moving snmpttconvertmib to /usr/sbin/ OK
/usr/local/nagios/libexec/traps/’ OK
Finding Centreon Plugins configuration file ‘centreon.conf’OK
You already seem to have installed the plugins Centreon.
Do you want overwrite this file ? You must regenerate this one from Centreon interface.
[y/n], default to [n]:/usr/local/centreon/filesGeneration/nagiosCFG already existPASSED
/usr/local/centreon/filesUpload/nagiosCFG already exists PASSED————————————————————————
Start ODS Installation
————————————————————————
Checking ODS data folder :
Creating Centreon Directory ‘/var/lib/ods’ OK
Checking ODS database folder :
Creating Centreon Directory ‘/var/lib/ods/database/’ OK
Checking ODS log folder :
Creating Centreon Directory ‘/var/log/ods/’ OK
Replace ODS Macro OK
Install ODS Binary OK
Set ODS properties OK————————————————————————
Replace Macro In ODS cron script
————————————————————————
in /usr/local/centreon/cron/inventory_update.php OK
in /usr/local/centreon/cron/reporting/ArchiveLogInDB.php OK
in /usr/local/centreon/cron/parsing_status.pl OK
in /usr/local/centreon/cron/parsing_log.pl OK————————————————————————
Start Centreon Cron Configuration
————————————————————————
Specify user do you use for Centreon cron
/usr/local/centreon/filesGeneration/nagiosCFG already existPASSED
/usr/local/centreon/filesUpload/nagiosCFG already exists PASSED————————————————————————
Start ODS Installation
————————————————————————
Checking ODS data folder :
Creating Centreon Directory ‘/var/lib/ods’ OK
Checking ODS database folder :
Creating Centreon Directory ‘/var/lib/ods/database/’ OK
Checking ODS log folder :
Creating Centreon Directory ‘/var/log/ods/’ OK
Replace ODS Macro OK
Install ODS Binary OK
Set ODS properties OK————————————————————————
Replace Macro In ODS cron script
————————————————————————
in /usr/local/centreon/cron/inventory_update.php OK
in /usr/local/centreon/cron/reporting/ArchiveLogInDB.php OK
in /usr/local/centreon/cron/parsing_status.pl OK
in /usr/local/centreon/cron/parsing_log.pl OK————————————————————————
Start Centreon Cron Configuration
————————————————————————
Specify user do you use for Centreon cron
Default to [nagios]
no crontab for nagios
You old crontab is backup on /tmp/crontab_nagios.G22876 file————————————————————————
Configure Sudo
————————————————————————
Finding nagios init script : /etc/init.d/nagios
Configuring Sudo OK————————————————————————
Centreon Post Install
————————————————————————
Finding mail binary : /usr/bin/mail OK
Finding rrdtool binary : /usr/bin/rrdtool OK
Create /usr/local/centreon/www/install/installoreon.conf.phOK
Create /etc/oreon.conf OK
Configuring Oreon post-install OK######################################################
# Go to the URL : http://your-server/oreon/ #
# or http://your-server/centreon/ to finish the setup #
# #
# Report bugs at bugs@oreon-project.org #
# Thanks for using Centreon. #
# ———————– #
# Contact : infos@oreon-project.org #
# http://www.centreon.com #
Now, proceed to the final step of configuring the setup parameters and database here