Installation de Zabbix Server 5.
0 sur CentOS 7
1. Selinux:
Il est recommandé d’avoir Selinux en mode “Permissive” a moins de savoir comment reparer les
erreurs pouvant survenir:
sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
2. Activer ce dépôt (software collection repository)
yum install -y centos-release-scl
3. Installer le dépôt de configuration de Zabbix afin d’obtenir Zabbix server, agent, and frontend.
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-
1.el7.noarch.rpm
4. Installer Zabbix Server
yum install -y zabbix-web-mysql-scl zabbix-apache-conf-scl zabbix-server-mysql
zabbix-agent --enablerepo=zabbix-frontend
5. Timezone
Pour commencer à utiliser Apache avec le serveur Zabbix. Le fichier de configuration Zabbix doit être
mis à jour avec TimeZone adequat
vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = Africa/Algiers
6. Installer and configurer la base de donnees
a. Installer MariaDB
vi /etc/yum.repos.d/MariaDB.repo
Copier ceci:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4.14/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Remarque: la version de mariadb peut etre changee de 10.4.14 vers la plus recente:
10.5.6
yum -y install mariadb-server mariadb && systemctl start mariadb && systemctl
enable mariadb
b. Réinitialiser le mot de passe root pour la base de données
mysql_secure_installation
Enter current password for root (enter for none): Press the Enter
Set root password? [Y/n]: Y
New password: <Enter root DB password>
Re-enter new password: <Repeat root DB password>
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
c. Creer la base de donnees
mysql -u root -p
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> create user zabbix@localhost identified by 'passw0rd123';
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit
d. Importer le schéma :
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
7. Modifier le fichier de configuration de Zabbix server :
vi /etc/zabbix/zabbix_server.conf
DBName=zabbix_db
DBUser=zabbix_user
DBPassword=passw0rd123
8. Redemarrer les services :
systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
9. Démarrez l'installation Web, suivez étape par étape pour terminer ce processus :
http://localhost/zabbix
10. Suivre les etapes suivantes via l’interface web:
Password: mot de passe de la base de donnees precedemment cree sur mariadb
Username: Admin Password: zabbix
references :
https://www.zabbix.com
https://technologyrss.com/how-to-install-zabbix-5-0-on-centos-7/
https://bestmonitoringtools.com/how-to-install-zabbix-server-on-centos-or-rhel/
https://www.fosslinux.com/7705/how-to-install-and-configure-zabbix-on-centos-7.htm
https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-zabbix-server-3-2-on-centos-7-
ubuntu-16-04-debian-8.html