Académique Documents
Professionnel Documents
Culture Documents
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
3. Installer le dépôt de configuration de Zabbix afin d’obtenir Zabbix server, agent, and 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
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
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 :
vi /etc/zabbix/zabbix_server.conf
DBName=zabbix_db
DBUser=zabbix_user
DBPassword=passw0rd123
http://localhost/zabbix
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