Tutorial : Installation de Centreon 2.1.2 / 2.1.3 & Nagios 3.2 – Partie 3 – Ligne de Commande

Introduction

L’installation de centreon se fait en 2 phases :

  1. L’installation en ligne de commande : la copie des fichiers, la configuration des différentes librairies, services et plugins
  2. L’installation depuis le navigateur WEB : la base de données et la configuration utilisateur ( Partie 4)

Téléchargement de Centreon 2.1.3

Nous n’avons pas besoin de le télécharger vu qu’il est déjà sur le disque (fin de la partie1)

Placez-vous dans le répertoire :

opensuse11:~ # cd centreon-2.1.3

Installation de Centreon 2.1.3

Pour l’installation, pas besoin de grand blabla, suivez juste simplement le log ci-dessous.
Pour lancer l’installation, il suffit de saisir :

opensuse11:~ # ./install.sh -i

--------------------------------------------------------------
 Checking all needed binaries
--------------------------------------------------------------
rm                                                         OK
cp                                                         OK
mv                                                         OK
/bin/chmod                                                 OK
/bin/chown                                                 OK
echo                                                       OK
more                                                       OK
mkdir                                                      OK
find                                                       OK
/usr/bin/grep                                              OK
/bin/cat                                                   OK
/usr/bin/sed                                               OK
You will now read Centreon Licence.
Press enter to continue. (...)

Faites attention lorsque vous faites défiler la licence GNU, si vous ne faites pas Y (yes) à la fin, vous êtes bon pour relancer l’installation !

Do you accept GPL license ?
[y/n], default to [n]:
> y

Cette section vous demande quoi installer :

------------------------------------------------------------------------
 Please choose what you want to install
------------------------------------------------------------------------
Do you want to install : Centreon Web Front
[y/n], default to [n]:
> y</pre>
Do you want to install : Centreon CentCore
[y/n], default to [n]:
> y Do you want to install : Centreon Nagios Plugins
[y/n], default to [n]:
> y Do you want to install : Centreon Snmp Traps process
[y/n], default to [n]:
> n

Celle-ci présente la configuration pour l’interface WEB :

------------------------------------------------------------------------
 Start CentWeb Installation
------------------------------------------------------------------------
Where is your Centreon directory?
default to [/usr/local/centreon]
>
Do you want me to create this directory ? [/usr/local/centreon]
[y/n], default to [n]:
> y
Path /usr/local/centreon                                   OK
Where is your Centreon log directory
default to [/usr/local/centreon/log]
> /usr/local/centreon/log        
Do you want me to create this directory ? [/usr/local/centreon/log]
[y/n], default to [n]:
> y
Path /usr/local/centreon/log                               OK
Where is your Centreon etc directory
default to [/etc/centreon]
>
Do you want me to create this directory ? [/etc/centreon]
[y/n], default to [n]:
> y
Path /etc/centreon                                         OK
Where is your Centreon generation_files directory?
default to [/usr/local/centreon]
>
Path /usr/local/centreon                                   OK
Where is your Centreon variable library directory?
default to [/var/lib/centreon]
>
Do you want me to create this directory ? [/var/lib/centreon]
[y/n], default to [n]:
> y
Path /var/lib/centreon                                     OK
Where is your CentPlugins Traps binary
default to [/usr/local/centreon/bin]

> /usr/local/centreon/bin
Do you want me to create this directory ? [/usr/local/centreon/bin]
[y/n], default to [n]:
> y
Path /usr/local/centreon/bin                               OK
Where is the RRD perl module installed [RRDs.pm]
default to [/usr/lib/perl5/RRDs.pm]
> /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi/RRDs.pm
Path /usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-muOKi
/usr/bin/rrdtool                                           OK
/usr/bin/mail                                              OK
Where is PEAR [PEAR.php]
default to [/usr/share/php/PEAR.php]
> /usr/share/php5/PEAR/PEAR.php
Path /usr/share/php5/PEAR                                  OK

Cette partie permet de configurer nagios avec centreon, très important !

Where is installed Nagios ?
default to [/usr/local/nagios]
>
Path /usr/local/nagios                                     OK
Where is your nagios config directory
default to [/usr/local/nagios/etc]
>
Path /usr/local/nagios/etc                                 OK
Where is your Nagios var directory ?
default to [/usr/local/nagios/var]
>
Path /usr/local/nagios/var                                 OK
Where is your Nagios plugins (libexec) directory ?
default to [/usr/local/nagios/libexec]
>
Path /usr/local/nagios/libexec                             OK
Where is your nagios binary ?
default to [/usr/local/nagios/bin/nagios]
>
/usr/local/nagios/bin/nagios                               OK
Where is your Nagios image directory ?
default to [/usr/local/nagios/share/images/logos]
>
Path /usr/local/nagios/share/images/logos                  OK
Where is your nagiostats binary ?
default to [/usr/local/nagios/bin/nagiostats]
>
/usr/local/nagios/bin/nagiostats                           OK
p1_file : /usr/local/nagios/bin/p1.pl                      OK
/usr/bin/php                                               OK
/usr/bin/perl                                              OK
Finding Apache group :                                     www
Finding Apache user :                                      wwwrun
Finding Nagios user :                                      nagios
Finding Nagios group :                                     nagios
Where is your NDO ndomod binary ?
default to [/usr/sbin/ndomod.o]
> /usr/local/nagios/bin/ndomod.o
/usr/local/nagios/bin/ndomod.o                             OK

Cette section permet de configurer les droits pour le sudoer

------------------------------------------------------------------------
 Configure Sudo
------------------------------------------------------------------------
Where is sudo configuration file
default to [/etc/sudoers]
>
/etc/sudoers                                               OK
Nagios init script                                         OK
Your sudo is not configured
Do you want me to configure your sudo ? (WARNING)
[y/n], default to [n]:
> y
Configuring Sudo                                           OK

La configuration du serveur Apache :

------------------------------------------------------------------------
 Configure Apache server
------------------------------------------------------------------------
Do you want to add Centreon Apache sub configuration file ?
[y/n], default to [n]:
> y
Create '/etc/apache2/conf.d/centreon.conf'                 OK
Configuring Apache                                         OK
Do you want to reload your Apache ?
[y/n], default to [n]:
> y
Reloading Apache service                                   OK
Preparing Centreon temporary files
Change right on /usr/local/centreon/log                    OK
Change right on /etc/centreon                              OK
Change right on /usr/local/nagios/share/images/logos       OK
Install nagios documentation                               OK
Change macros for insertBaseConf.sql                       OK
Change macros for php files
Change macros for php files                                OK
Change right on /usr/local/nagios/etc                      OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon)                    OK
Install libraries                                          OK
Copying libinstall                                         OK
Change macros for centreon.cron                            OK
Install Centreon cron.d file                               OK
Change macros for archiveDayLog                            OK
Change macros for centAcl.php                              OK
Install cron directory                                     OK

Configuration des modules PEARL :

------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.7.2          OK
DB                              1.7.6                      NOK
DB_DataObject                   1.8.4                      NOK
DB_DataObject_FormBuilder       1.0.0RC4                   NOK
MDB2                            2.0.0                      NOK
Date                            1.4.6                      NOK
HTML_Common                     1.2.2                      NOK
HTML_QuickForm                  3.2.5                      NOK
HTML_QuickForm_advmultiselect   1.1.0                      NOK
HTML_Table                      1.6.1                      NOK
Archive_Tar                     1.1         1.3.2          OK
Auth_SASL                       1.0.1                      NOK
Console_Getopt                  1.2         1.2.3          OK
Net_SMTP                        1.2.8                      NOK
Net_Socket                      1.0.1                      NOK
Net_Traceroute                  0.21                       NOK
Net_Ping                        2.4.1                      NOK
Validate                        0.6.2                      NOK
XML_RPC                         1.4.5                      NOK
SOAP                            0.10.1                     NOK
Log                             1.9.11                     NOK

Attention, ils ne sont pas à jour, cliquez Y pour effectuer la mise à jour, si vous êtes derrière un proxy, ouvrez un autre terminal et passez la commande suivante :
pear config-set http_proxy ip_du_proxy:port

Do you want me to install/upgrade your PEAR modules
[y/n], default to [y]:
>
Upgrading PEAR modules
Installing PEAR modules
DB                              1.7.6       1.7.13         OK
DB_DataObject                   1.8.4       1.8.12         OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.0          OK
MDB2                            2.0.0       2.4.1          OK
HTML_QuickForm_advmultiselect   1.1.0       1.5.1          OK
HTML_Table                      1.6.1       1.8.2          OK
Auth_SASL                       1.0.1       1.0.3          OK
Net_SMTP                        1.2.8       1.3.3          OK
Net_Traceroute                  0.21        0.21.1         OK
Net_Ping                        2.4.1       2.4.4          OK
Validate                        0.6.2       0.8.2          OK
XML_RPC                         1.4.5       1.5.2          OK
SOAP                            0.10.1      0.12.0         OK
Log                             1.9.11      1.11.5         OK
Check PEAR modules
PEAR                            1.4.9       1.7.2          OK
DB                              1.7.6       1.7.13         OK
DB_DataObject                   1.8.4       1.8.12         OK
DB_DataObject_FormBuilder       1.0.0RC4    1.0.0          OK
MDB2                            2.0.0       2.4.1          OK
Date                            1.4.6       1.4.7          OK
HTML_Common                     1.2.2       1.2.5          OK
HTML_QuickForm                  3.2.5       3.2.11         OK
HTML_QuickForm_advmultiselect   1.1.0       1.5.1          OK
HTML_Table                      1.6.1       1.8.2          OK
Archive_Tar                     1.1         1.3.2          OK
Auth_SASL                       1.0.1       1.0.3          OK
Console_Getopt                  1.2         1.2.3          OK
Net_SMTP                        1.2.8       1.3.3          OK
Net_Socket                      1.0.1       1.0.9          OK
Net_Traceroute                  0.21        0.21.1         OK
Net_Ping                        2.4.1       2.4.4          OK
Validate                        0.6.2       0.8.2          OK
XML_RPC                         1.4.5       1.5.2          OK
SOAP                            0.10.1      0.12.0         OK
Log                             1.9.11      1.11.5         OK
All PEAR modules                                           OK

Configuration de Centreon

------------------------------------------------------------------------
  Centreon Post Install
------------------------------------------------------------------------
Create /usr/local/centreon/www/install/install.conf.php    OK
Create /etc/centreon/instCentWeb.conf                      OK
------------------------------------------------------------------------
 Start CentStorage Installation
------------------------------------------------------------------------
Where is your Centreon Run Dir directory?
default to [/var/run/centreon]
>
Do you want me to create this directory ? [/var/run/centreon]
[y/n], default to [n]:
> y
Path /var/run/centreon                                     OK
Where is your CentStorage binary directory
default to [/usr/local/centreon/bin]
> /usr/local/centreon/bin
Path /usr/local/centreon/bin                               OK
Where is your CentStorage RRD directory
default to [/var/lib/centreon]
>
Path /var/lib/centreon                                     OK
Finding Nagios group :                                     nagios
Finding Nagios user :                                      nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
install www/install/createTablesCentstorage.sql            OK
Creating Centreon Directory '/var/lib/centreon/status'     OK
Creating Centreon Directory '/var/lib/centreon/metrics'    OK
Change macros for centstorage binary                       OK
Install CentStorage binary                                 OK
Install library for centstorage                            OK
Change right : /var/run/centreon                           OK
Change macros for centstorage init script                  OK
Do you want me to install CentStorage init script ?
[y/n], default to [n]:
> y
CentStorage init script installed                          OK
Do you want me to install CentStorage run level ?
[y/n], default to [n]:
> y
insserv: warning: script 'nagios' missing LSB tags and overrides
insserv: Default-Start undefined, assuming default start runlevel(s) for script `nagios'
centstorage               0:off  1:off  2:off  3:on   4:off  5:on   6:off
Change macros for logAnalyser                              OK
Install logAnalyser                                        OK
Change macros for nagiosPerfTrace                          OK
Install nagiosPerfTrace                                    OK
Change macros for purgeLogs                                OK
Install purgeLogs                                          OK
Change macros for purgeCentstorage                         OK
Install purgeCentstorage                                   OK
Change macros for centreonPurge.sh                         OK
Install centreonPurge.sh                                   OK
Change macros for centstorage.cron                         OK
Install CentStorage cron                                   OK
Create /etc/centreon/instCentStorage.conf                  OK

Configuration de CentCore

------------------------------------------------------------------------
 Start CentCore Installation
------------------------------------------------------------------------
Where is your CentCore binary directory
default to [/usr/local/centreon/bin]
>
Path /usr/local/centreon/bin                               OK
/usr/bin/ssh                                               OK
/usr/bin/scp                                               OK
Finding Nagios group :                                     nagios
Finding Nagios user :                                      nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change CentCore Macro                                      OK
Copy CentCore in binary directory                          OK
Change right : /var/run/centreon                           OK
Change right : /var/lib/centreon                           OK
Replace CentCore init script Macro                         OK
Do you want me to install CentCore init script ?
[y/n], default to [n]:
> y
CentCore init script installed                             OK
Do you want me to install CentCore run level ?
[y/n], default to [n]:
> y
insserv: warning: script 'nagios' missing LSB tags and overrides
insserv: Default-Start undefined, assuming default start runlevel(s) for script `nagios'
centcore                  0:off  1:off  2:off  3:on   4:off  5:on   6:off
Create /etc/centreon/instCentCore.conf                     OK

Installation des plugins :

------------------------------------------------------------------------
 Start CentPlugins Installation
------------------------------------------------------------------------
Where is your CentPlugins lib directory
default to [/var/lib/centreon/centplugins]
> /var/lib/centreon
Path /var/lib/centreon                                     OK
Finding Nagios user :                                      nagios
Finding Nagios group :                                     nagios
Preparing Centreon temporary files
/tmp/centreon-setup exists, it will be moved...
Change macros for CentPlugins                              OK
Installing the plugins                                     OK
Change right on centreon.conf                              OK
CentPlugins is installed
Create /etc/centreon/instCentPlugins.conf                  OK 

                                                                            
                 Go to the URL : http://your-server/centreon/              
                         to finish the setup                             
                                                                            
                  Report bugs at http://forge.centreon.com                 
                                                                            
                         Thanks for using Centreon.                         
                          -----------------------                           
                        Contact : infos@centreon.com                       
                          http://www.centreon.com                        
                                                                            

Voila pour l’installation de centreon en ligne de commande, nous allons maintenant terminer l’installation via le navigateur web.

Rendez-vous dans la partie 4 de ce tutorial

Si vous avez des questions, n’hésitez pas à venir sur le forum ou à laisser un commentaire sur cet article

Classé sous: Tutoriaux - Linux

Tags: , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (Aucune notation)
Loading...

Laisser un Commentaire




Si vous voulez afficher un avatar avec votre commentaire, vous devez obtenir un Gravatar.

*