Instalação Zabbix Server 6.2
Ir para navegação
Ir para pesquisar
HOMOLOGADO COM
Ubuntu Server 22.04
Preparação Sistema
- Configuração de rede - Configuração de firewall - Download e preparação da ISO - Instalação do SO - Desabilitar firewall proprietário do SO Clique Aqui - Alteração de senhas de instalação Clique Aqui - Configuração xentools/vmtools {Homologar no Ubuntu} - Configuração Serviços - Configuração Backup - Agendamento de auditoria serviços e backup
Instalação pacotes básicos
apt-get install wget vim net-tools -y
Atualizar Sistema
apt-get update -y apt-get upgrade -y
Reiniciar o SO
reboot
Instalar repositório Zabbix
wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu22.04_all.deb dpkg -i zabbix-release_6.2-1+ubuntu22.04_all.deb apt update
Instalar Zabbix Server, frontend, agent
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Instalar MYSQL Server
apt install mysql-server -y
Iniciar MYSQL Server e habilitar para iniciar automaticamente
systemctl enable mysql; systemctl start mysql; systemctl status mysql
Definir senha para usuário ROOT do MYSQL
mysql -u root -p ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'fjm$Gg46GfF#@3T'; FLUSH PRIVILEGES; exit;
Configuração MYSQL
mysql -uroot -p 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;
Importar DB default do Zabbix para o MYSQL
zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix Obs: Já peguei problema de não ter o arquivo create.sql.gz, pode ser usado o arquivo da versão 5.2
Desabilitar log_bin_trust_function_creators option após importar o esquema.
mysql -u root -p password mysql> SET GLOBAL log_bin_trust_function_creators = 0; mysql> quit;
Configurar dados de conexão do Zabbix com MYSQL
vim /etc/zabbix/zabbix_server.conf Descomentar "# DBPassword=" , colocando a senha do usuario zabbix do DB
Iniciar serviços, e habilitar para inicio aumotaticamente
systemctl restart zabbix-server zabbix-agent apache2 systemctl enable zabbix-server zabbix-agent apache2
Concluir configurações via WEB
Acessar: http://IP/zabbix
Os exemplos abaixo são da versão 5.2, mas a lógica segue a mesma