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 -
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-centralwith 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 localhostrestart SNMP
sudo systemctl restart snmpd
Centreon-Web
Configure Centreon UI
Start Centreon’s services
sudo systemctl start centreon
Version 19.10.4 does not contain configuration examples. You can use this example.
/usr/share/centreon/examples/clapi/create_config_initialV4.sh -u=admin -p=password -d=centreon -w=pwcentreon -s=yes -m=restartresult:
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
Centreon plugins are automatically added to Centreon in /usr/lib/centreon/plugins. New Macro $CENTREONPLUGINS$ was added.
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
Since version 2.7.1, the package contains only scripts.
sudo apt-get install centreon-clapi