Vous êtes ici:

Menu

Instructions

Only for Stretch 64 bits

Requirements

Add the main repository to your sources.list

Add this line to your /etc/apt/sources.list file :
deb http://mirror.sugarbug.fr/centreon/ stretch main

Fetch and install the GnuPG key

wget -O - http://mirror.sugarbug.fr/centreon/sugarbug.fr.gpg.key | apt-key add -

Install repo for php 7.1 and update apt

apt-get install apt-transport-https lsb-release ca-certificates -y
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/php.list
apt-get update

Install Centreon central

install centreon fresh-install
apt-get install centreon-central
with scripts clapi
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
/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
/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
systemctl reload apache2 php7.1-fpm

SNMP

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

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-Broker’s services and Centcore service
systemctl start cbd
systemctl start centcore
Add the notifications commands for the admin.
Stacks Image 1351762
Version 18.10 does not contain configuration examples. You can use this example.
/usr/share/centreon/examples/clapi/create_config_initialV2.sh -u=admin -p=password -d=centreon -w=pwcentreon -s=yes
Apply Centron’s configuration
Stacks Image 1351767
Start Centreon’s services
systemctl start centcore.service
systemctl start centreontrapd.service
or
service centcore start
service centreontrapd start
Stacks Image 1351774
Engine and Broker are OK
Stacks Image 1351777
Services is pending
Stacks Image 1351780
Centreon-engine is ready
Centreon plugins are automatically added to Centreon in /usr/lib/centreon/plugins. New Macro $CENTREONPLUGINS$ was added.
Stacks Image 1351785
New macro for Centreon Plugins

Other examples

Install central without database

apt-get install centreon-central-without-db

Install poller

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.
apt-get install centreon-clapi
 Vous êtes ici: