• Install and configure Zabbix for your platform

    a. Instale o repositório Zabbix

    Disable Zabbix packages provided by EPEL, if you have it installed. Editar arquivo /etc/yum.repos.d/epel.repo and add the following statement.

    [epel]
    ...
    excludepkgs=zabbix*

    Proceed with installing zabbix repository.

    # rpm -Uvh https://repo.zabbix.com/zabbix/7.4/release/alma/10/noarch/zabbix-release-latest-7.4.el10.noarch.rpm
    # dnf clean all
    b. Instale o servidor, o frontend e o agente Zabbix
    # dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
    c. Criar banco de dados inicial

    Make sure you have database server up and running.

    Execute os seguintes passos em seu host de banco de dados.

    # mysql -uroot -p
    password
    mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
    mysql> create user zabbix@localhost identified by 'password';
    mysql> grant all privileges on zabbix.* to zabbix@localhost;
    mysql> set global log_bin_trust_function_creators = 1;
    mysql> quit;

    No servidor do Zabbix, importe o esquema inicial e os dados. Vocá será solicitado a inserir a senha que foi criada anteriormente.

    # zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

    Disable log_bin_trust_function_creators option after importing database schema.

    # mysql -uroot -p
    password
    mysql> set global log_bin_trust_function_creators = 0;
    mysql> quit;
    d. Configure o banco de dados para o servidor Zabbix

    Editar arquivo /etc/zabbix/zabbix_server.conf

    DBPassword=password
    e. Inicie o servidor Zabbix e os processos do agente

    Inicie o servidor Zabbix e os processos do agente e configure-os para que sejam iniciados durante o boot do sistema.

    # systemctl restart zabbix-server zabbix-agent httpd php-fpm
    # systemctl enable zabbix-server zabbix-agent httpd php-fpm
    f. Open Zabbix UI web page

    The default URL for Zabbix UI when using Apache web server is http://host/zabbix