====== Différences ======

Cette page vous affiche les différences entre la révision choisie et la version actuelle de la page.

Lien vers cette vue comparative

nagios:rasp [2015/03/06 10:06]
r.doiteau créée
nagios:rasp [2019/05/11 14:35] (Version actuelle)
Ligne 9: Ligne 9:
 ===== Centreon ===== ===== Centreon =====
  
 +==== Lighttpd ====
  
 +==== Installation ====
 +
 +Toutes les commandes suivantes se feront en mode root. Pour commencer, il faudra installer les paquets suivants pour le serveur web :
 +<​code=shell>​
 +apt-get install lighttpd
 +</​code>​
 +Installez les paquets pour le PHP5.
 +<​code=shell>​
 +apt-get install php5-common php5-cgi php5
 +</​code>​
 +
 +==== Configuration ====
 +
 +Pour prendre en compte le support du PHP, exécutez cette commande :
 +<​code=shell>​
 +lighty-enable-mod fastcgi-php
 +</​code>​
 +Redémarrez le serveur Web pour la prise en compte de cette modification.
 +<​code=shell>​
 +/​etc/​init.d/​lighttpd force-reload
 +</​code>​
 +Préparez le dossier du serveur Web
 +<​code=shell>​
 +chown www-data: /var/www
 +chmod g+w /var/www
 +</​code>​
 +Inclure l'​utilisateur pi dans le groupe www-data
 +<​code=shell>​
 +usermod -a -G www-data pi
 +</​code>​
 +===== Nagios =====
 +
 +==== Installation ====
 +
 +Toutes les commandes suivantes se feront en mode root. Pour commencer, il faudra installer les paquets suivants pour la supervision :
 +<​code=shell>​
 +apt-get install nagios3
 +</​code>​
 +C'est tout pour l'​installation,​ allez prendre un café...
 +==== Configuration ====
 +
 +Il faut faire prendre en compte notre configuration par le serveur web Lighttpd. Modifiez le fichier de configuration /​etc/​lighttpd/​lighttpd.conf
 +<​code=shell>​
 +server.modules = (
 +        "​mod_access",​
 +        "​mod_alias",​
 +        "​mod_cgi",​
 +        "​mod_auth",​
 +        "​mod_compress",​
 +        "​mod_redirect",​
 +#       "​mod_rewrite",​
 +)
 +
 +server.document-root ​       = "/​var/​www"​
 +server.upload-dirs ​         = ( "/​var/​cache/​lighttpd/​uploads"​ )
 +server.errorlog ​            = "/​var/​log/​lighttpd/​error.log"​
 +server.pid-file ​            = "/​var/​run/​lighttpd.pid"​
 +server.username ​            = "​www-data"​
 +server.groupname ​           = "​www-data"​
 +server.port ​                = 80
 +
 +alias.url ​ += ("/​cgi-bin/​nagios3"​ => "/​usr/​lib/​cgi-bin/​nagios3"​)
 +alias.url ​ += ("/​nagios3/​stylesheets"​ => "/​etc/​nagios3/​stylesheets"​)
 +alias.url ​ += ("/​nagios3"​ => "/​usr/​share/​nagios3/​htdocs"​)
 +
 +$HTTP["​url"​] =~ "​^/​cgi-bin/​nagios3"​ {
 +  cgi.assign = ( ""​ => ""​ )
 +}
 +
 +$HTTP["​url"​] =~ "​nagios3"​ {
 +  auth.backend = "​htpasswd"​
 +  auth.backend.htpasswd.userfile = "/​etc/​nagios3/​htpasswd.users"​
 +  auth.require = ( ""​ => (
 +    "​method"​ => "​basic",​
 +    "​realm"​ => "​Nagios",​
 +    "​require"​ => "​user=nagiosadmin"​
 +    )
 +  )
 +  setenv.add-environment = ( "​REMOTE_USER"​ => "​user"​ )
 +}
 +
 +index-file.names ​           = ( "​index.php",​ "​index.html",​ "​index.lighttpd.html"​ )
 +url.access-deny ​            = ( "​~",​ "​.inc"​ )
 +static-file.exclude-extensions = ( "​.php",​ "​.pl",​ "​.fcgi"​ )
 +
 +compress.cache-dir ​         = "/​var/​cache/​lighttpd/​compress/"​
 +compress.filetype ​          = ( "​application/​javascript",​ "​text/​css",​ "​text/​html",​ "​text/​plain"​ )
 +
 +# default listening port for IPv6 falls back to the IPv4 port
 +include_shell "/​usr/​share/​lighttpd/​use-ipv6.pl " + server.port
 +include_shell "/​usr/​share/​lighttpd/​create-mime.assign.pl"​
 +include_shell "/​usr/​share/​lighttpd/​include-conf-enabled.pl"​
 +</​code>​
 +Redémarrez le serveur
 +<​code=shell>​
 +service lighttpd restart
 +</​code>​
 +Créez le fichier d'​accès au page de Nagios
 +<​code=shell>​
 +htpasswd -c /​etc/​nagios3/​htpasswd.users nagiosadmin
 +</​code>​
 +===== PNP4 nagios =====
 +
 +==== Installation ====
 +
 +
 +Toutes les commandes suivantes se feront en mode root. Pour commencer, il faudra installer les paquets prérequis pour PNP4nagios :
 +<​code=shell>​
 +apt-get install rrdtool librrds-perl php5-gd
 +</​code>​
 +Ensuite récupérez les binaires sur le site de PNP4nagios. Copiez les binaires sur le raspberry. Exécutez les commandes suivantes :
 +<​code=shell>​
 +tar xzf pnp4nagios-0.6.21.tar.gz ​
 +cd pnp4nagios-0.6.21/​
 +</​code>​
 +==== Compilation ====
 +
 +Compilez ensuite les binaires. Installer PNP4nagios dans le dossier /​usr/​local/​pnp4nagios. Nous utiliserons deux autres commandes pour installer les fichiers du deamon NPCD et les fichiers de configuration nécessaires au fonctionnement de celui-ci.
 +<​code=shell>​
 +./configure --prefix=/​usr/​local/​pnp4nagios --with-nagios-user=nagios --with-nagios-group=nagios
 +make all
 +make install
 +make install-init
 +make install-config
 +</​code>​
 +Initialisez le démarrage automatique du service PNP4nagios
 +<​code=shell>​
 +update-rc.d npcd defaults
 +</​code>​
 +Configuration du serveur Web
 +Modifier le fichier de configuration de Lighttpd pour PNP4nagios. Rajouter les lignes suivantes à /​etc/​lighttpd/​lighttpd.conf
 +
 +# pnp4nagios configuration for lighttpd
 +<​code=shell>​
 +alias.url +=    (
 +                "/​pnp4nagios"​ => "/​usr/​local/​pnp4nagios/​share",​
 +                )
 +
 +$HTTP["​url"​] =~ "​^/​pnp4nagios"​ {
 +        auth.backend = "​htpasswd"​
 +        auth.backend.htpasswd.userfile = "/​etc/​nagios3/​htpasswd.users"​
 +        auth.require = (
 +                ""​ => (
 +                        "​method"​ => "​basic",​
 +                        "​realm"​ => "​nagios",​
 +                        "​require"​ => "​valid-user",​
 +                )
 +        )
 +}
 +</​code>​
 +Redémarrez le serveur
 +<​code=shell>​
 +service lighttpd restart
 +</​code>​
 +Vérification de la configuration
 +Avec votre navigateur, saisissez l'​adresse suivante : http://[Ip du rapsberry]/​pnp4nagios
 +<​code=shell>​
 +Stacks Image 6249
 +</​code>​
 +Saisir l'​utilisateur nagiosadmin et votre mot de passe
 +Vous devriez obtenir la vue suivante sans erreur.
 +<​code=shell>​
 +Stacks Image 6246
 +</​code>​
 +PNP4nagios est bien installé
 +Supprimez le fichier /​usr/​local/​pnp4nagios/​share/​install.php
 +Configuration Nagios
 +Afin d'​activer les données de performance de Nagios, il faut modifier le fichier de configuration de Nagios. Modifiez /​etc/​nagios3/​nagios.cfg
 +<​code=shell>​
 +process_performance_data=1
 +host_perfdata_file=/​usr/​local/​pnp4nagios/​var/​host-perfdata
 +service_perfdata_file=/​usr/​local/​pnp4nagios/​var/​service-perfdata
 +host_perfdata_file_template=DATATYPE::​HOSTPERFDATA\tTIMET::​$TIMET$\tHOSTNAME::​$HOSTNAME$\tHOSTPERFDATA::​$HOSTPERFDATA$\tHOSTCHECKCOMMAND::​$HOSTCHECKCOMMAND$\tHOSTSTATE::​$HOSTSTATE$\tHOSTSTATETYPE::​$HOSTSTATETYPE$
 +service_perfdata_file_template=DATATYPE::​SERVICEPERFDATA\tTIMET::​$TIMET$\tHOSTNAME::​$HOSTNAME$\tSERVICEDESC::​$SERVICEDESC$\tSERVICEPERFDATA::​$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::​$SERVICECHECKCOMMAND$\tHOSTSTATE::​$HOSTSTATE$\tHOSTSTATETYPE::​$HOSTSTATETYPE$\tSERVICESTATE::​$SERVICESTATE$\tSERVICESTATETYPE::​$SERVICESTATETYPE$
 +host_perfdata_file_mode=a
 +service_perfdata_file_mode=a
 +host_perfdata_file_processing_interval=15
 +service_perfdata_file_processing_interval=15
 +host_perfdata_file_processing_command=process-host-perfdata-file
 +service_perfdata_file_processing_command=process-service-perfdata-file
 +Ajouter les fichiers suivants dans le dossier /​etc/​nagios3/​conf.d/​
 +pnp-commands.cfg
 +define command{
 +   ​command_name process-service-perfdata-file
 +   ​command_line /bin/mv /​usr/​local/​pnp4nagios/​var/​service-perfdata /​usr/​local/​pnp4nagios/​var/​spool/​service-perfdata.$TIMET$
 +}
 +<​code=shell>​
 +define command{
 +   ​command_name process-host-perfdata-file
 +   ​command_line /bin/mv /​usr/​local/​pnp4nagios/​var/​host-perfdata /​usr/​local/​pnp4nagios/​var/​spool/​host-perfdata.$TIMET$
 +}
 +<​code=shell>​
 +pnp-service-template.cfg
 +define service {
 +   name srv-pnp
 +   ​process_perf_data 1
 +   ​action_url /​pnp4nagios/​index.php/​graph?​host=$HOSTNAME$&​srv=$SERVICEDESC$'​ target='​main'​ class='​tips'​ rel='/​pnp4nagios/​popup?​host=$HOSTNAME$&​srv=$SERVICEDESC$
 +   ​register 0
 +}
 +<​code=shell>​
 +pnp-host-template.cfg
 +define host {
 +   name host-pnp
 +   ​process_perf_data 1
 +   ​action_url /​pnp4nagios/​index.php/​graph?​host=$HOSTNAME$&​srv=_HOST_'​ target='​main'​ class='​tips'​ rel='/​pnp4nagios/​popup?​host=$HOSTNAME$&​srv=_HOST_
 +   ​register 0
 +}
 +</​code>​
 +Prise en compte de PNP4nagios pour les hôtes et services de Nagios
 +Pour la prise en compte de PNP4nagios, il suffit de rajouter host-pnp dans la définition d'un hôte comme ci-dessous :
 +<​code=shell>​
 +define host{
 +        use                     ​generic-host,​host-pnp ​           ; Name of host template to use
 +        host_name ​              ​localhost
 +        alias                   ​localhost
 +        address ​                ​127.0.0.1
 +        }
 +</​code>​
 +Pour la prise en compte de PNP4nagios dans chaque service, il suffit de rajouter srv-pnp dans la définition de chaque service comme ci-dessous :
 +<​code=shell>​
 +define service{
 +        use                             ​generic-service,​srv-pnp ​        ; Name of service template to use
 +        host_name ​                      ​localhost
 +        service_description ​            ​Current Load
 +                check_command ​                  ​check_load!5.0!4.0!3.0!10.0!6.0!4.0
 +        }
 +</​code>​
 +Relancer Nagios pour prendre la nouvelle configuration et le deamon npcd pour PN4nagios pour activer les graphes.
 +<​code=shell>​
 +service nagios3 restart
 +service npcd start
 +</​code>​
 +Vérification du fonctionnement des graphes
 +Au bout de quelques minutes, en cliquant sur l'​icône du graphe dans Nagios, vous obtiendrez de jolis graphes comme ci-dessous :
 +<​code=shell>​
 +Stacks Image 6288
 +</​code>​
 +PNP4nagios est bien installé, les graphes sont actifs
 +Nous avons terminé avec logiciel de notre supervision avec un raspberry mais ce n'est pas fini, l'​article suivant vas nous permettre d'​afficher les alertes des hôtes et des services de notre supervision.
 +
 +===== Centreon Clib =====
 +
 +==== Pré requis ====
 +
 +Les paquets de développement sont déjà chargés dans la version de Raspbian.
 +==== Installation ====
 +
 +Téléchargez le binaire dans le dossier /​usr/​local/​src et décompressez-le.
 +<​code=shell>​
 +cd /home/pi
 +tar xzf centreon-clib-1.2.0.tar.gz ​
 +cd centreon-clib-1.2.0/​build
 +</​code>​
 +
 +Préparons la compilation.
 +<​code=shell>​
 + cmake \
 +   ​-DWITH_TESTING=0 \
 +   ​-DWITH_PREFIX=/​usr/​local/​centreon-lib \
 +   ​-DWITH_SHARED_LIB=1 \
 +   ​-DWITH_STATIC_LIB=0 \
 +   ​-DWITH_PKGCONFIG_DIR=/​usr/​lib/​pkgconfig .
 +</​code>​
 +
 +Extrait du résultat
 +<​code=shell>​
 +-- Configuration Summary
 +-- ---------------------
 +-- 
 +--   ​Project
 +--     - Name                      Centreon Clib
 +--     - Version ​                  1.2.0
 +--     - With shared library ​      Yes
 +--     - With static library ​      No
 +-- 
 +--   ​System
 +--     - Name                      Linux
 +--     - Version ​                  ​3.10.25+
 +--     - Processor ​                ​armv6l
 +-- 
 +--   Build
 +--     - Compiler ​                 /​usr/​bin/​c++ (GNU)
 +--     - Extra compilation flags   
 +--     - Build unit tests          No
 +-- 
 +--   ​Installation
 +--     - Prefix ​                   /​usr/​local/​centreon-lib
 +--     - Library directory ​        /​usr/​local/​centreon-lib/​lib
 +--     - Include directory ​        /​usr/​local/​centreon-lib/​include
 +--     - Package ​                  None
 +--     - pkg-config directory ​     /​usr/​lib/​pkgconfig
 +-- 
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: /​home/​pi/​centreon-clib-1.2.0/​buil
 +
 +</​code>​
 +Ensuite compilons cette configuration et installons dans le dossier /usr/local
 +<​code=shell>​
 +make
 +sudo make install
 +</​code>​
 +Prise en compte de la librairie partagée
 +Maintenant, il faut faire prendre en compte la librairie partagée par le système Linux pour éviter le message suivant lorsque vous installerez le moteur centreon-engine:​
 +<​code=shell>​
 +root@supervision:/​usr/​local/​centreon-engine/​bin#​ ./​centengine
 +./​centengine:​ error while loading shared libraries: libcentreon_clib.so:​ cannot open shared object file: No such file or directory
 +</​code>​
 +
 +La librairie ne se trouvant pas dans les dossiers réservés normalement aux librairies (/lib, /usr/lib, /​usr/​local/​lib),​ nous devrons déclarer notre dossier dans un fichier de configuration. Editez le fichier /​etc/​ld.so.conf.d/​libc.conf et ajoutez la dernière ligne soulignée en rouge:
 +
 +# libc default configuration
 +<​code=shell>​
 +/​usr/​local/​lib
 +/​usr/​local/​centreon-lib/​lib
 +</​code>​
 +
 +Ensuite, il faut faire prendre en compte la librairie avec la commande ldconfig
 +<​code=shell>​
 +sudo ldconfig -v
 +
 +</​code>​
 +Dans le résultat de la commande, vous devrez voir les lignes suivantes:
 +<​code=shell>​
 +/​usr/​local/​lib:​
 +/​usr/​local/​centreon-lib/​lib:​
 + libcentreon_clib.so -> libcentreon_clib.so
 +</​code>​
 +===== Connecteurs Centreon =====
 +
 +Centreon Perl Connector
 +==== Pré requis ====
 +
 +Tout d'​abord,​ installons les paquets nécessaires au fonctionnement de cette librairie.
 +<​code=shell>​
 +sudo apt-get install libperl-dev
 +</​code>​
 +
 +L'​installation,​ au préalable, de Centreon Clib est obligatoire.
 +==== Installation ====
 +
 +La dernière version stable est la 1.0.2. Téléchargez le binaire dans le dossier /​usr/​local/​src et décompressez-le.
 +<​code=shell>​
 +cd /home/pi
 +tar xzf centreon-connector-1.0.2.tar.gz ​
 +cd centreon-connector-1.0.2/​perl/​build
 +</​code>​
 +
 +Préparons la compilation.
 +<​code=shell>​
 +cmake \
 + ​-DWITH_PREFIX=/​usr/​local/​centreon-connector ​ \
 + ​-DWITH_CENTREON_CLIB_INCLUDE_DIR=/​usr/​local/​centreon-lib/​include \
 + ​-DWITH_CENTREON_CLIB_LIBRARIES=/​usr/​local/​centreon-lib/​lib/​libcentreon_clib.so \
 + ​-DWITH_TESTING=0 .
 +</​code>​
 +Extrait du résultat
 +<​code=shell>​
 +-- Configuration Summary
 +-- ---------------------
 +-- 
 +-- Project
 +-- - Name Centreon Perl Connector
 +-- - Version 1.0.2
 +-- 
 +-- System
 +-- - Name Linux
 +-- - Version 3.10.25+
 +-- - Processor armv6l
 +-- 
 +-- Build
 +-- - Compiler /​usr/​bin/​c++ (GNU)
 +-- - Extra compilation flags -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/​usr/​local/​include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/​usr/​lib/​perl/​5.14/​CORE
 +-- - Unit tests disabled
 +-- 
 +-- Install
 +-- - Prefix /​usr/​local/​centreon-connector
 +-- - Binary prefix /​usr/​local/​centreon-connector/​bin
 +-- - Package None
 +-- 
 +-- Libraries
 +-- - clib include directory /​usr/​local/​centreon-lib/​include
 +-- - clib library directory /​usr/​local/​centreon-lib/​lib/​libcentreon_clib.so
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: /​home/​pi/​centreon-connector-1.0.2/​perl/​build
 +</​code>​
 +Ensuite compilons cette configuration et installons dans le dossier /usr/local
 +<​code=shell>​
 +make
 +sudo make install
 +
 +</​code>​
 +C'est terminé, nous pouvons continuer par l'​installation du connecteur SSH
 +Centreon SSH Connector
 +Pré requis
 +Tout d'​abord,​ installons les paquets nécessaires au fonctionnement de cette librairie.
 +<​code=shell>​
 +sudo apt-get install libssh2-1-dev libgcrypt11-dev
 +
 +Installation
 +Dirigez-vous dans le dossier pour le connecteur SSH
 +<​code=shell>​
 +cd /​home/​pi/​centreon-connector-1.0.2/​ssh/​build
 +
 +
 +Préparons la compilation.
 +<​code=shell>​
 +cmake \
 + ​-DWITH_PREFIX=/​usr/​local/​centreon-connector ​ \
 + ​-DWITH_CENTREON_CLIB_INCLUDE_DIR=/​usr/​local/​centreon-lib/​include \
 + ​-DWITH_CENTREON_CLIB_LIBRARIES=/​usr/​local/​centreon-lib/​lib/​libcentreon_clib.so \
 + ​-DWITH_TESTING=0 .
 +
 +<​code=shell>​
 +-- Configuration Summary
 +-- ---------------------
 +-- 
 +--   ​Project
 +--     - Name                       ​Centreon SSH Connector
 +--     - Version ​                   1.0.2
 +--     - Known hosts check          disabled
 +-- 
 +--   ​System
 +--     - Name                       Linux
 +--     - Version ​                   3.10.25+
 +--     - Processor ​                 armv6l
 +-- 
 +--   Build
 +--     - Compiler ​                  /​usr/​bin/​c++ (GNU)
 +--     - Extra compilation flags    ​
 +--     - Unit tests                 ​disabled
 +-- 
 +--   ​Install
 +--     - Prefix ​                    /​usr/​local/​centreon-connector
 +--     - Binary prefix ​             /​usr/​local/​centreon-connector/​bin
 +--     - Package ​                   None
 +-- 
 +--   ​Libraries
 +--     - clib include directory ​    /​usr/​local/​centreon-lib/​include
 +--     - clib library directory ​    /​usr/​local/​centreon-lib/​lib/​libcentreon_clib.so
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: /​home/​pi/​centreon-connector-1.0.2/​ssh/​build
 +
 +
 +Si celle-ci échoue, procédez comme précédemment avec le connecteur Perl (voir encart). Ensuite compilons cette configuration et installons dans le dossier /usr/local
 +<​code=shell>​
 +make
 +sudo make install
 +
 +===== Centreon Engine =====
 +
 +==== Pré Requis ====
 +
 +Tout d'​abord,​ Il faudra créer un utilisateur centreon-engine
 +<​code=shell>​
 +sudo groupadd -g 6001 centreon-engine
 +sudo useradd -u 6001 -g centreon-engine -m -r -d /​var/​lib/​centreon-engine -c "​Centreon-engine Admin" centreon-engine
 +</​code>​
 +
 +L'​installation,​ au préalable, de Centreon Clib est obligatoire.
 +Il faut aussi installer des paquets supplémentaires.
 +<​code=shell>​
 +sudo apt-get install libcgsi-gsoap-dev libssl-dev libxerces-c-dev
 +</​code>​
 +==== Installation ====
 +
 +La dernière version stable est la 1.3.5. Téléchargez le binaire dans le dossier /​usr/​local/​src et décompressez-le.
 +<​code=shell>​
 +cd /home/pi
 +tar xzf centreon-engine-1.3.5.tar.gz ​
 +cd centreon-engine-1.3.5/​build/​
 +</​code>​
 +
 +Préparons la compilation.
 +<​code=shell>​
 +cmake \
 +   ​-DWITH_CENTREON_CLIB_INCLUDE_DIR=/​usr/​local/​centreon-lib/​include \
 +   ​-DWITH_CENTREON_CLIB_LIBRARY_DIR=/​usr/​local/​centreon-lib/​lib \
 +   ​-DWITH_PREFIX=/​usr/​local/​centreon-engine \
 +   ​-DWITH_USER=centreon-engine \
 +   ​-DWITH_GROUP=centreon-engine \
 +   ​-DWITH_LOGROTATE_SCRIPT=1 \
 +   ​-DWITH_VAR_DIR=/​var/​log/​centreon-engine \
 +   ​-DWITH_RW_DIR=/​var/​lib/​centreon-engine/​rw \
 +   ​-DWITH_STARTUP_DIR=/​etc/​init.d \
 +   ​-DWITH_PKGCONFIG_SCRIPT=1 \
 +   ​-DWITH_PKGCONFIG_DIR=/​usr/​lib/​pkgconfig \
 +   ​-DWITH_TESTING=0 \
 +   ​-DWITH_WEBSERVICE=1 .
 +</​code>​
 +
 +Extrait du résultat
 +<​code=shell>​
 +-- Configuration Summary
 +-- ---------------------
 +-- 
 +--   ​Project
 +--     - Name                       ​Centreon Engine
 +--     - Version ​                   1.3.5
 +-- 
 +--   ​System
 +--     - Name                       Linux
 +--     - Version ​                   3.10.25+
 +--     - Processor ​                 armv6l
 +-- 
 +--   Build
 +--     - Compiler ​                  /​usr/​bin/​c++ (GNU)
 +--     - Extra compilation flags    ​
 +--     - External commands module ​  ​enabled
 +--     - Webservice module ​         enabled
 +--     - Unit tests                 ​disabled
 +--     - pkg-config script ​         enabled
 +--     - logrotate script ​          ​enabled
 +--     - Startup script ​            ​SysV-style script
 +-- 
 +--   ​Install
 +--     - Prefix ​                    /​usr/​local/​centreon-engine
 +--     - Binary prefix ​             /​usr/​local/​centreon-engine/​bin
 +--     - Configuration prefix ​      /​usr/​local/​centreon-engine/​etc
 +--     - Library prefix ​            /​usr/​local/​centreon-engine/​lib/​centreon-engine
 +--     - Include prefix ​            /​usr/​local/​centreon-engine/​include/​centreon-engine
 +--     - var directory ​             /​var/​log/​centreon-engine
 +--     - Log archive directory ​     /​var/​log/​centreon-engine/​archives
 +--     - RW directory ​              /​var/​lib/​centreon-engine/​rw
 +--     - Lock prefix ​               /​var/​lock/​subsys/​centengine.lock
 +--     - pkg-config directory ​      /​usr/​lib/​pkgconfig
 +--     - logrotate directory ​       /​etc/​logrotate.d
 +--     - Startup directory ​         /etc/init.d
 +--     - User                       ​centreon-engine
 +--     - Group                      centreon-engine
 +--     - Package ​                   None
 +-- 
 +--   ​Libraries
 +--     - clib include directory ​    /​usr/​local/​centreon-lib/​include
 +--     - clib library directory ​    /​usr/​local/​centreon-lib/​lib/​libcentreon_clib.so
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: /​home/​pi/​centreon-engine-1.3.5/​build
 +</​code>​
 +
 +Ensuite compilons cette configuration et installons dans le dossier /usr/local
 +<​code=shell>​
 +make
 +sudo make install
 +</​code>​
 +
 +Pour vérifier, avant de continuer, le bon fonctionnement de la librairie partagée, saisissez la commande suivante:
 +<​code=shell>​
 +root@supervision:​~#​ /​usr/​local/​centreon-engine/​bin/​centengine -V
 +[1391668283] Centreon Engine 1.3.5
 +
 +Copyright 1999-2009 Ethan Galstad
 +Copyright 2009-2010 Nagios Core Development Team and Community Contributors
 +Copyright 2011-2013 Merethis
 +
 +This program is free software: you can redistribute it and/or
 +modify it under the terms of the GNU General Public License version 2
 +as published by the Free Software Foundation.
 +
 +Centreon Engine is distributed in the hope that it will be useful,
 +but WITHOUT ANY WARRANTY; without even the implied warranty of
 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 +General Public License for more details.
 +
 +You should have received a copy of the GNU General Public License
 +along with this program. If not, see
 +.
 +
 +</​code>​
 +Mettre le service centenaire en démarrage automatique.
 +<​code=shell>​
 +sudo update-rc.d centengine defaults
 +</​code>​
 +===== Plugins Nagios =====
 +
 +==== Pré requis ====
 +
 +Tout d'​abord,​ installons les paquets nécessaires au fonctionnement des plugins.
 +<​code=shell>​
 +sudo apt-get install libgnutls-dev libkrb5-dev libldap2-dev libsnmp-dev gawk libwrap0-dev libmcrypt-dev smbclient fping gettext dnsutils libmysqlclient-dev
 +==== Installation pour Centreon-Engine ====
 +
 +Récupération des plugins
 +</​code>​
 +<​code=shell>​
 +cd /home/pi
 +wget http://​assets.nagios.com/​downloads/​nagiosplugins/​nagios-plugins-1.5.tar.gz
 +
 +</​code>​
 +Décompression
 +<​code=shell>​
 +tar -xzf nagios-plugins-1.5.tar.gz
 +cd nagios-plugins-1.5
 +
 +</​code>​
 +Compilation et installation
 +<​code=shell>​
 +./configure --with-nagios-user=centreon-engine --with-nagios-group=centreon-engine --prefix=/​usr/​local/​plugins --enable-perl-modules --with-openssl=/​usr/​bin/​openssl
 +make
 +sudo make install
 +</​code>​
 +===== Centreon Broker =====
 +
 +==== Pré Requis ====
 +
 +Tout d'​abord,​ Il faudra créer un groupe système et un utilisateur système centreon-broker
 +<​code=shell>​
 +groupadd -g 6002 centreon-broker
 +useradd -u 6002 -g centreon-broker -m -r -d /​var/​lib/​centreon-broker -c "​Centreon-broker Admin" centreon-broker
 +</​code>​
 +
 +Si vous utilisez Centreon-Engine,​ celui-ci devra accéder au dossier log de Centreon-Broker pour exécuter son module cbmod.so. Pour cela, l'​utilisateur centreon-engine devra être membre du groupe centreon-broker.
 +<​code=shell>​
 +usermod -aG centreon-broker centreon-engine
 +
 +</​code>​
 +Il faut aussi installer des paquets supplémentaires.
 +<​code=shell>​
 +apt-get install librrd-dev libqt4-dev libqt4-sql-mysql libgnutls-dev lsb-release
 +</​code>​
 +<​code=shell>​
 +Stacks Image 2273
 +</​code>​
 +Avertissement
 +Le package lsb-release est important pour l'​installation du script cbd sur une distribution Debian. Si vous n'​installez pas ce paquet, à la préparation de la compilation,​ vous aurez ce message d'​erreur.
 +<​code=shell>​
 +-- Attempting to determine OS distributor.
 +CMake Warning at CMakeLists.txt:​66 (message):
 +  lsb_release in not installed
 +</​code>​
 +
 +Ce message d'​erreur n'est pas bloquant, mais vous n'​aurez pas la bonne version du script de démarrage cbd pour le fonctionnement de Centreon-Broker.
 +==== Installation ====
 +
 +Téléchargez le binaire dans le dossier /​usr/​local/​src et décompressez-le.
 +<​code=shell>​
 +cd /​usr/​local/​src
 +wget http://​download.centreon.com/​index.php?​id=4323 --output-document=centreon-broker-2.6.3.tar.gz
 +tar xzf centreon-broker-2.6.3.tar.gz
 +cd /​usr/​local/​src/​centreon-broker-2.6.3/​build/​
 +</​code>​
 +
 +Préparons la compilation.
 +<​code=shell>​
 +cmake \
 +    -DWITH_DAEMONS='​central-broker;​central-rrd'​ \
 +    -DWITH_GROUP=centreon-broker \
 +    -DWITH_PREFIX=/​usr/​local/​centreon-broker \
 +    -DWITH_STARTUP_DIR=/​etc/​init.d \
 +    -DWITH_STARTUP_SCRIPT=auto \
 +    -DWITH_TESTING=0 \
 +    -DWITH_USER=centreon-broker .
 +</​code>​
 +
 +Extrait du résultat
 +<​code=shell>​
 +-- Configuration Summary
 +-- ---------------------
 +--
 +--   ​Project
 +--     - Name                       ​Centreon Broker
 +--     - Version ​                   2.6.3
 +--
 +--   ​System
 +--     - Name                       Linux
 +--     - Version ​                   3.2.0-4-amd64
 +--     - Processor ​                 x86_64
 +--
 +--   Build
 +--     - Compiler ​                  /​usr/​bin/​c++ (GNU)
 +--     - Extra compilation flags
 +--     - Qt                         4.8.2
 +--     - Unit tests                 ​disabled
 +--     - Startup script ​            sysv
 +--     - Module ​                    ​stats,​ neb, file, compression,​ correlation,​ local, rrd, sql, storage, tcp, tls, bbdo, ndo
 +--
 +--   ​Install
 +--     - Prefix ​                    /​usr/​local/​centreon-broker
 +--     - Binary prefix ​             /​usr/​local/​centreon-broker/​bin
 +--     - Library prefix ​            /​usr/​local/​centreon-broker/​lib
 +--     - Modules prefix ​            /​usr/​local/​centreon-broker/​lib/​centreon-broker
 +--     - Include prefix ​            /​usr/​local/​centreon-broker/​include/​centreon-broker
 +--     - Configuration prefix ​      /​usr/​local/​centreon-broker/​etc
 +--     - Startup dir                /etc/init.d
 +--     - User                       ​centreon-broker
 +--     - Group                      centreon-broker
 +--     - Package ​                   None
 +--
 +-- Configuring done
 +-- Generating done
 +-- Build files have been written to: /​usr/​local/​src/​centreon-broker-2.6.3/​build
 +
 +</​code>​
 +Ensuite compilons cette configuration et installons dans le dossier /usr/local
 +<​code=shell>​
 +make
 +make install
 +</​code>​
 +Mettre le service cbd en démarrage automatique.
 +<​code=shell>​
 +update-rc.d cbd defaults
 +</​code>​
 +===== Centreon =====
 +
 +==== Pré Requis ====
 +
 +Tout d'​abord,​ Il faudra créer un utilisateur centreon
 +<​code=shell>​
 +groupadd -g 6000 centreon
 +useradd -u 6000 -g centreon -m -r -d /​var/​lib/​centreon -c "​Centreon Admin" centreon
 +</​code>​
 +Il faut aussi installer des paquets supplémentaires
 +<​code=shell>​
 +apt-get install sudo tofrodos bsd-mailx lsb-release mysql-server libmysqlclient-dev apache2 apache2-mpm-prefork php5 php5-mysql php-pear php5-ldap php5-snmp php5-gd rrdtool librrds-perl libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha-perl libgd-gd2-perl snmp snmpd libnet-snmp-perl libsnmp-perl php5-sqlite
 +</​code>​
 +Optionnellement,​ on peut ajouter phpmyadmin pour visualiser aisément les bases de données.
 +<​code=shell>​
 +apt-get install phpmyadmin
 +</​code>​
 +==== Installation en ligne de commande ====
 +
 +Téléchargez le binaire dans le dossier /​usr/​local/​src et décompressez-le.
 +<​code=shell>​
 +cd /​usr/​local/​src
 +wget http://​download.centreon.com/​index.php?​id=4602 --output-document=centreon-2.5.3.tar.gz
 +tar xzf centreon-2.5.3.tar.gz ​
 +cd centreon-2.5.3
 +</​code>​
 +Lancez la ligne de commande ci-dessous pour débuter l'​installation.
 +<​code=shell>​
 +./​install.sh -i
 +
 +Au lancement du script, le programme confirme si toutes les dépendances sont satisfaites.
 +
 +###############################################################################​
 +#                                                                             #
 +#                         ​Centreon (www.centreon.com) ​                        #
 +#                          Thanks for using Centreon ​                         #
 +#                                                                             #
 +#                                    v2.5.3 ​                                  #
 +#                                                                             #
 +#                               ​infos@centreon.com ​                           #
 +#                                                                             #
 +#                   Make sure you have installed and configured ​              #
 +#                   sudo - sed - php - apache - rrdtool - mysql               #
 +#                                                                             #
 +###############################################################################​
 +------------------------------------------------------------------------
 + Checking all needed binaries
 +------------------------------------------------------------------------
 +rm                                                         OK
 +cp                                                         OK
 +mv                                                         OK
 +/​bin/​chmod ​                                                OK
 +/​bin/​chown ​                                                OK
 +echo                                                       OK
 +more                                                       OK
 +mkdir                                                      OK
 +find                                                       OK
 +/​bin/​grep ​                                                 OK
 +/​bin/​cat ​                                                  OK
 +/​bin/​sed ​                                                  OK
 +
 +You will now read Centreon Licence.
 + Press enter to continue.
 +
 +Ensuite, vous devez accepter la licence d'​utilisateur de Centreon (licence GPL Version 2) pour continuer. Si vous refusez cette licence, vous abandonnez l'​installation.
 +
 +This General Public License does not permit incorporating your program into
 +proprietary programs. ​ If your program is a subroutine library, you may
 +consider it more useful to permit linking proprietary applications with the
 +library. ​ If this is what you want to do, use the GNU Library General
 +Public License instead of this License.
 +
 +Do you accept GPL license ?
 +[y/n], default to [n]:
 +> y
 +
 +Le module d'​installation va alors vous si vous souhaitez installer les modules: l'​interface Web Centreon, Centcore, les plugins Centreon et les Traps handler Centreon. Nous utiliserons tous les modules. L'​intérêt d'​installer CentCore maintenant réside dans le fait qu'il sera plus facile d'​évoluer vers une installation distribuée.
 +
 +------------------------------------------------------------------------
 +        Please choose what do you want to install
 +------------------------------------------------------------------------
 +
 +Do you want to install Centreon Web Front
 +[y/n], default to [n]:
 +> y
 +
 +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]:
 +> y
 +
 +Le script d'​installation va maintenant procéder à l'​installation des différents modules.
 +Commençons par Centreon Web, l'​interface de centreon.
 +
 +------------------------------------------------------------------------ ​
 +        Start CentWeb Installation
 +------------------------------------------------------------------------
 +
 +Where is your Centreon directory?
 +default to [/​usr/​local/​centreon]
 +>
 +
 +Ici, on nous demande où installer centreon. Tapez "​entrée"​ pour prendre le chemin par défaut. Sinon saisir un autre chemin. Si le répertoire que vous avez saisi n'​existe pas, il vous sera demandé de valider votre choix pour créer le répertoire.
 +
 +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
 +
 +Ici on nous demande le répertoire de stockage des journaux/​logs de centreon.
 +
 +Where is your Centreon log directory
 +default to [/​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
 +
 +Très important : L'​emplacement des fichiers de configuration de centreon. Attention si cet endroit venait à changer par la suite, vous seriez obligé de relancer l'​installation de centreon, certains fichiers devant être regénérés. Saisir les valeurs par défaut et répondre y pour la création des dossiers.
 +
 +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 binaries directory
 +default to [/​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 your Centreon data informations directory
 +default to [/​usr/​local/​centreon/​data]
 +
 +
 +Do you want me to create this directory ? [/​usr/​local/​centreon/​data]
 +[y/n], default to [n]:
 +> y
 +Path /​usr/​local/​centreon/​data ​                             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
 +/​usr/​bin/​rrdtool ​                                          OK
 +/​usr/​bin/​mail ​                                             OK
 +/​usr/​bin/​php ​                                              OK
 +
 +Where is PEAR [PEAR.php] ​
 +default to [/​usr/​share/​php/​PEAR.php]
 +
 +Path /​usr/​share/​php ​                                       OK
 +/​usr/​bin/​perl ​                                             OK
 +Finding Apache user :                                      www-data
 +Finding Apache group :                                     ​www-data
 +
 +Utilisation d'un groupe centreon et d'un utilisateur centreon, validez entrée par défaut
 +
 +What is the Centreon group ? [centreon]
 +default to [centreon]
 +
 +
 +What is the Centreon user ? [centreon]
 +default to [centreon]
 +
 +
 +Choisissez le moteur centreon-engine et le broker centreon-broker. Indiquez le chemin des plugins.
 +
 +What is the Monitoring engine user ?
 +> centreon-engine
 +
 +What is the Broker user ? (optional)
 +> centreon-broker
 +
 +What is the Monitoring engine log directory ?
 +> /​var/​log/​centreon-engine
 +
 +Where is your monitoring plugins (libexec) directory ?
 +default to [/​usr/​lib/​nagios/​plugins]
 +> /​usr/​local/​plugins/​libexec
 +Path /​usr/​local/​plugins/​libexec ​                           OK
 +Add group centreon to user www-data ​                       OK
 +Add group centreon to user centreon-engine ​                OK
 +Add group centreon-engine to user www-data ​                OK
 +Add group centreon-engine to user centreon ​                OK
 +
 +Configuration des commandes utilisées par Sudo. Saisir les chemins comme indiqué ci-dessous.
 +
 +------------------------------------------------------------------------
 + Configure Sudo
 +------------------------------------------------------------------------
 +
 +Where is sudo configuration file
 +default to [/​etc/​sudoers]
 +
 +/​etc/​sudoers ​                                              OK
 +
 +What is the Monitoring engine init.d script ?
 +> /​etc/​init.d/​centengine
 +
 +What is the Monitoring engine binary ?
 +> /​usr/​local/​centreon-engine/​bin/​centengine
 +
 +What is the Monitoring engine configuration directory ?
 +> /​usr/​local/​centreon-engine/​etc
 +
 +Where is the configuration directory for broker module ?
 +> /​usr/​local/​centreon-broker/​etc
 +
 +Where is the init script for broker module daemon ?
 +> /​etc/​init.d/​cbd
 +Your sudo is not configured
 +
 +Do you want me to configure your sudo ? (WARNING) ​
 +[y/n], default to [n]:
 +> y
 +Configuring Sudo                                           OK
 +
 +Configuration du serveur Web
 +
 +------------------------------------------------------------------------
 + 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 macros for insertBaseConf.sql ​                      OK
 +Change macros for sql update files                         OK
 +Change macros for php files                                OK
 +Change macros for perl binary ​                             OK
 +Change right on /​usr/​local/​centreon-engine/​etc ​            OK
 +Add group centreon-broker to user www-data ​                OK
 +Add group centreon-broker to user centreon-engine ​         OK
 +Add group centreon to user centreon-broker ​                OK
 +Change right on /​usr/​local/​centreon-broker/​etc ​            OK
 +Copy CentWeb in system directory
 +Install CentWeb (web front of centreon) ​                   OK
 +Change right for install directory
 +Change right for install directory ​                        OK
 +Install libraries ​                                         OK
 +Write right to Smarty Cache                                OK
 +Copying libinstall ​                                        OK
 +Change macros for centreon.cron ​                           OK
 +Install Centreon cron.d file                               OK
 +Change macros for centAcl.php ​                             OK
 +Change macros for downtimeManager.php ​                     OK
 +Install cron directory ​                                    OK
 +Change right for eventReportBuilder ​                       OK
 +Change right for dashboardBuilder ​                         OK
 +Change macros for centreon.logrotate ​                      OK
 +Install Centreon logrotate.d file                          OK
 +Prepare centFillTrapDB ​                                    OK
 +Install centFillTrapDB ​                                    OK
 +Prepare centreon_trap_send ​                                OK
 +Install centreon_trap_send ​                                OK
 +Prepare centreon_check_perfdata ​                           OK
 +Install centreon_check_perfdata ​                           OK
 +Prepare centreonSyncPlugins ​                               OK
 +Install centreonSyncPlugins ​                               OK
 +Prepare centreonSyncArchives ​                              OK
 +Install centreonSyncArchives ​                              OK
 +Install generateSqlLite ​                                   OK
 +Install changeRrdDsName.pl ​                                OK
 +Prepare export-mysql-indexes ​                              OK
 +Install export-mysql-indexes ​                              OK
 +Prepare import-mysql-indexes ​                              OK
 +Install import-mysql-indexes ​                              OK
 +Centreon Web Perl lib installed ​                           OK
 +
 +------------------------------------------------------------------------
 +Pear Modules
 +------------------------------------------------------------------------
 +Check PEAR modules
 +PEAR                            1.4.9       ​1.9.4 ​         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.7 ​         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
 +Archive_Zip ​                    ​0.1.2 ​                     NOK
 +
 +Do you want me to install/​upgrade your PEAR modules
 +[y/n], default to [y]:
 +>  y
 +
 +Le script d'​installation n'a pas trouvé les modules Perl à jour, répondre y pour les mettre à jour automatiquement. Dans le cadre d'un serveur qui n'​aurait pas accès à Internet, vous pouvez auparavant mettre à jour les paquets Pear par une méthode manuelle indiquée sur mon blog.
 +<​code=shell>​
 +Upgrading PEAR modules
 +Installing PEAR modules
 +DB                              1.7.6       ​1.7.14 ​        OK
 +DB_DataObject ​                  ​1.8.4 ​      ​1.11.3 ​        OK
 +DB_DataObject_FormBuilder ​      ​1.0.0RC4 ​   1.0.2          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.3 ​         OK
 +Auth_SASL ​                      ​1.0.1 ​      ​1.0.6 ​         OK
 +Net_SMTP ​                       1.2.8       ​1.6.2 ​         OK
 +Net_Traceroute ​                 0.21        0.21.3 ​        OK
 +Net_Ping ​                       2.4.1       ​2.4.5 ​         OK
 +Validate ​                       0.6.2       ​0.8.5 ​         OK
 +XML_RPC ​                        ​1.4.5 ​      ​1.5.5 ​         OK
 +SOAP                            0.10.1 ​     0.13.0 ​        OK
 +Log                             ​1.9.11 ​     1.12.8 ​        OK
 +Archive_Zip ​                    ​0.1.2 ​      ​0.1.2 ​         OK
 +Check PEAR modules
 +PEAR                            1.4.9       ​1.9.5 ​         OK
 +DB                              1.7.6       ​1.7.14 ​        OK
 +DB_DataObject ​                  ​1.8.4 ​      ​1.11.3 ​        OK
 +DB_DataObject_FormBuilder ​      ​1.0.0RC4 ​   1.0.2          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.13 ​        OK
 +HTML_QuickForm_advmultiselect ​  ​1.1.0 ​      ​1.5.1 ​         OK
 +HTML_Table ​                     1.6.1       ​1.8.3 ​         OK
 +Archive_Tar ​                    ​1.1 ​        ​1.3.7 ​         OK
 +Auth_SASL ​                      ​1.0.1 ​      ​1.0.6 ​         OK
 +Console_Getopt ​                 1.2         ​1.3.0 ​         OK
 +Net_SMTP ​                       1.2.8       ​1.6.2 ​         OK
 +Net_Socket ​                     1.0.1       ​1.0.14 ​        OK
 +Net_Traceroute ​                 0.21        0.21.3 ​        OK
 +Net_Ping ​                       2.4.1       ​2.4.5 ​         OK
 +Validate ​                       0.6.2       ​0.8.5 ​         OK
 +XML_RPC ​                        ​1.4.5 ​      ​1.5.5 ​         OK
 +SOAP                            0.10.1 ​     0.13.0 ​        OK
 +Log                             ​1.9.11 ​     1.12.8 ​        OK
 +Archive_Zip ​                    ​0.1.2 ​      ​0.1.2 ​         OK
 +All PEAR modules ​                                          OK
 +
 +------------------------------------------------------------------------
 + Centreon Post Install
 +------------------------------------------------------------------------
 +Create /​usr/​local/​centreon/​www/​install/​install.conf.php ​   OK
 +Create /​etc/​centreon/​instCentWeb.conf ​                     OK
 +
 +Pear étant à jour, nous continuons avec l'​installation de CentStorage. N'​installez pas les script de démarrage pour Centstorage,​ laissez par défaut le reste.
 +
 +------------------------------------------------------------------------
 + 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]
 +
 +Path /​usr/​local/​centreon/​bin ​                              OK
 +
 +Where is your CentStorage RRD directory
 +default to [/​var/​lib/​centreon]
 +
 +Path /​var/​lib/​centreon ​                                    OK
 +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
 +Install CentStorage binary ​                                OK
 +Change right : /​var/​run/​centreon ​                          OK
 +Change macros for centstorage init script ​                 OK
 +Replace Centstorage default script Macro                   OK
 +
 +Do you want me to install CentStorage init script ?
 +[y/n], default to [n]:
 +> y
 +CentStorage init script installed ​                         OK
 +CentStorage default script installed ​                      OK
 +
 +Do you want me to install CentStorage run level ?
 +[y/n], default to [n]:
 +> y
 +update-rc.d:​ using dependency based boot sequencing
 +CentStorage Perl lib installed ​                            OK
 +Install logAnalyser ​                                       OK
 +Install logAnalyserBroker ​                                 OK
 +Install nagiosPerfTrace ​                                   OK
 +Change macros for centstorage.cron ​                        OK
 +Install CentStorage cron                                   OK
 +Change macros for centstorage.logrotate ​                   OK
 +Install Centreon Storage logrotate.d file                  OK
 +Create /​etc/​centreon/​instCentStorage.conf ​                 OK
 +
 +Installation du module CentCore.
 +
 +------------------------------------------------------------------------
 + Start CentCore Installation
 +------------------------------------------------------------------------
 +
 +Where is your CentCore binary directory
 +default to [/​usr/​local/​centreon/​bin]
 +
 +Path /​usr/​local/​centreon/​bin ​                              OK
 +Preparing Centreon temporary files
 +/​tmp/​centreon-setup exists, it will be moved...
 +Copy CentCore in binary directory ​                         OK
 +Change right : /​var/​run/​centreon ​                          OK
 +Change right : /​var/​lib/​centreon ​                          OK
 +Change macros for centcore.logrotate ​                      OK
 +Install Centreon Core logrotate.d file                     OK
 +Replace CentCore init script Macro                         OK
 +Replace CentCore default script Macro                      OK
 +
 +Do you want me to install CentCore init script ?
 +[y/n], default to [n]:
 +> y
 +CentCore init script installed ​                            OK
 +CentCore default script installed ​                         OK
 +
 +Do you want me to install CentCore run level ?
 +[y/n], default to [n]:
 +> y
 +update-rc.d:​ using dependency based boot sequencing
 +CentCore Perl lib installed ​                               OK
 +Create /​etc/​centreon/​instCentCore.conf ​                    OK
 +
 +Installation des plugins pour les Traps SNMP, répondre y pour la création des dossiers.
 +
 +------------------------------------------------------------------------
 + Start CentPlugins Installation
 +------------------------------------------------------------------------
 +
 +Where is your CentPlugins lib directory
 +default to [/​var/​lib/​centreon/​centplugins]
 +
 +
 +Do you want me to create this directory ? [/​var/​lib/​centreon/​centplugins]
 +[y/n], default to [n]:
 +> y
 +Path /​var/​lib/​centreon/​centplugins ​                        OK
 +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
 +
 +------------------------------------------------------------------------
 + Start CentPlugins Traps Installation
 +------------------------------------------------------------------------
 +
 +Where is your SNMP configuration directory
 +default to [/etc/snmp]
 +
 +/​etc/​snmp ​                                                 OK
 +
 +Where is your CentreonTrapd binaries directory
 +default to [/​usr/​local/​centreon/​bin]
 +
 +/​usr/​local/​centreon/​bin ​                                   OK
 +Finding Apache user :                                      www-data
 +Preparing Centreon temporary files
 +/​tmp/​centreon-setup exists, it will be moved...
 +Change macros for snmptrapd.conf ​                          OK
 +Replace CentreonTrapd init script Macro                    OK
 +Replace CentreonTrapd default script Macro                 OK
 +
 +Do you want me to install CentreonTrapd init script ?
 +[y/n], default to [n]:
 +> y
 +CentreonTrapd init script installed ​                       OK
 +CentreonTrapd default script installed ​                    OK
 +
 +Do you want me to install CentreonTrapd run level ?
 +[y/n], default to [n]:
 +> y
 +update-rc.d:​ using dependency based boot sequencing
 +trapd Perl lib installed ​                                  OK
 +Install : snmptrapd.conf ​                                  OK
 +Install : centreontrapdforward ​                            OK
 +Install : centreontrapd ​                                   OK
 +Create /​etc/​centreon/​instCentPlugins.conf ​                 OK
 +###############################################################################​
 +#                                                                             #
 +#                 Go to the URL : http://​debian7.localmac/​centreon/ ​          #
 +#                   ​  ​    to finish the setup                              #
 +#                                                                             #
 +#                  Report bugs at http://​forge.centreon.com ​                  #
 +#                                                                             #
 +#                         ​Thanks for using Centreon. ​                         #
 +#                          ----------------------- ​                           #
 +#                        Contact : infos@centreon.com ​                        #
 +#                          http://​www.centreon.com ​                           #
 +#                                                                             #
 +###############################################################################​
 +
 +Il faut terminer l’installation en mode Web.
 +<​code=shell>​
 +Centreon Engine directory: /​usr/​local/​centreon-engine
 +Centreon Engine Stats binary: /​usr/​local/​centreon-engine/​bin/​centenginestats
 +Centreon Engine var lib directory: /​var/​lib/​centreon-engine
 +Centreon Engine Connector path: /​usr/​local/​centreon-connector
 +Centreon Engine Library (*.so) directory: /​usr/​local/​centreon-engine/​lib/​centreon-engine
 +</​code>​
 +<​code=shell>​
 +Centreon Broker etc directory: /​usr/​local/​centreon-broker/​etc
 +Centreon Broker module (cbmod.so): /​usr/​local/​centreon-broker/​lib/​cbmod.so
 +Centreon Broker log directory: /​var/​log/​centreon-broker
 +Retention file directory: /​var/​lib/​centreon-broker
 +Centreon Broker lib (*.so) directory: /​usr/​local/​centreon-broker/​lib/​centreon-broker
 +</​code>​
 
nagios/rasp.txt · Dernière modification: 2019/05/11 14:35 (modification externe)     Haut de page