![Stacks Image 37279](files/stacks-image-5e3a042-152x122.png)
6 Centreon Perl Connector
6.1 Pré requis
sudo apt-get install libperl-dev
L'installation, au préalable, de Centreon Clib est obligatoire.
6.2 Installation
cd /home/pi
tar xzf centreon-connector-1.0.2.tar.gz
cd centreon-connector-1.0.2/perl/build
Préparons la compilation.
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 .
-- 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
Ensuite compilons cette configuration et installons dans le dossier /usr/local
make
sudo make install
C'est terminé, nous pouvons continuer par l'installation du connecteur SSH
7 Centreon SSH Connector
7.1 Pré requis
sudo apt-get install libssh2-1-dev libgcrypt11-dev
7.2 Installation
cd /home/pi/centreon-connector-1.0.2/ssh/build
Préparons la compilation.
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 .
-- 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
Ensuite compilons cette configuration et installons dans le dossier /usr/local
make
sudo make install
C'est terminé, nous pouvons continuer par l'installation de Centreon Engine