Vous êtes ici:

Menu

Instructions

Only for Raspbian Stretch

Requirements

Modify the main repository to your sources.list and add repo centreon-deb

Add these files to your /etc/apt/sources.list.d directory :
sudo /bin/sh -c 'echo "deb http://repozytorium.mati75.eu/raspbian stretch-backports main contrib non-free" > /etc/apt/sources.list.d/php.list'
sudo /bin/sh -c 'echo "deb http://mirror.sugarbug.fr/centreon/ stretch main" > /etc/apt/sources.list.d/centreon.list'

Fetch and install the GnuPG key

for php
sudo apt-get install dirmngr
sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
sudo gpg --armor --export CCD91D6111A06851 | sudo apt-key add -
for centreon
wget -O - http://mirror.sugarbug.fr/centreon/sugarbug.fr.gpg.key | sudo apt-key add -
Stacks Image 1351808
If you have problems recovering the key
You may have this next message that prevents you from going further
sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
gpg: keyserver receive failed: Pas de données

In this case, you can recover the GPG key from my mirror site.
wget -O - http://mirror.sugarbug.fr/centreon/repozitorium.mati75.eu.gpg.key | sudo apt-key add -

Update apt

sudo apt-get update

Install Centreon central

install centreon fresh-install
sudo apt-get install centreon-central
with scripts clapi
sudo apt-get install centreon-central centreon-clapi
Add password for mariaDB or remove secure

use script of centreon-clapi’s package

apt-get install centreon-clapi
sudo /usr/share/centreon/examples/clapi/add_root_mariadb.sh

or manual configuration

mysql
MariaDB [(none)]> use mysql;
MariaDB [mysql]> update user set plugin='' where user='root';
MariaDB [mysql]> flush privileges;
Configure date.timezone in php.ini

use script of centreon-clapi’s package

apt-get install centreon-clapi
sudo /usr/share/centreon/examples/clapi/init_timezone.sh -t Europe/Paris -r

or manual configuration

vi /etc/php/7.1/fpm/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Paris
reload apache
sudo systemctl reload apache2 php7.1-fpm

SNMP

Configure SNMP and restart
config /etc/snmp/snmpd.conf
rocommunity public  localhost
restart SNMP
sudo systemctl restart snmpd

Centreon-Web

Configure Centreon UI
Stacks Image 847
Click on Next
Stacks Image 324830
Click on Next
Stacks Image 873
Click on Next
Stacks Image 886
Click on Next
Stacks Image 899
Define the admin user and click on Next.
Stacks Image 912
Add password for MySQL and create password for Centreon’s database.
Stacks Image 925
Click on Next
Stacks Image 1351743
Click on Next
Stacks Image 938
Click on Finish
Stacks Image 324839
Centreon is ready
Start Centreon’s services
sudo systemctl start centreon
Version 19.10 does not contain configuration examples. You can use this example.
/usr/share/centreon/examples/clapi/create_config_initialV3.sh -u=admin -p=password -d=centreon -w=pwcentreon -s=yes -m=restart
result:
Create Command base
Create Command local
Create Command snmp
Create Command mysql
Create template service base
Create template service local
Create template service snmp
Create template service local database
Create template app centreon poller
Create template app centreon central
Create template host
Create Central
add storage
Configuration OK !
Start other Centreon’s services
systemctl start centreontrapd.service
Stacks Image 1351774
Engine and Broker are OK
Stacks Image 1351777
Services is pending
Stacks Image 1351822
Centreon-engine is ready
Centreon plugins are automatically added to Centreon in /usr/lib/centreon/plugins. New Macro $CENTREONPLUGINS$ was added.
Stacks Image 1351819
New macro for Centreon Plugins

Other examples

Install central without database

sudo apt-get install centreon-central-without-db

Install poller

For install a poller, it's not necessary install a repo for php
sudo /bin/sh -c 'echo "deb http://mirror.sugarbug.fr/centreon/ stretch main" > /etc/apt/sources.list.d/centreon.list'
wget -O - http://mirror.sugarbug.fr/centreon/sugarbug.fr.gpg.key | sudo apt-key add -
sudo apt-get update
next install the poller
sudo apt-get install centreon-poller
Add password for Centreon User
passwd centreon
Entrez le nouveau mot de passe UNIX :
Retapez le nouveau mot de passe UNIX :
passwd : le mot de passe a été mis à jour avec succès

Install centreon-clapi

Stacks Image 325010
Warning
Since version 2.7.1, the package contains only scripts.
sudo apt-get install centreon-clapi
 Vous êtes ici: