Instalação Zabbix Server 6.4 - DB e Aplicação separados Ubuntu Server 22.04
Ir para navegação
Ir para pesquisar
Observações - Configurar firewall para os IPs do WEB e DB - Configurar adequadamente backup do WEB e DB - Agendar uma vistoria periódica do backup e utilização de recursos - Alteração de senhas de instalação Clique Aqui - Configuração xentools/vmtools Clique Aqui
EXECUTAR NA MAQUINA DA WEB
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.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb apt update
Instalar Zabbix Server, frontend, agent apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent -y
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 Se for o DB for separado da maquina WEB, descomentar #DBHost e colocar IP da maquina de banco
Iniciar serviços, e habilitar para inicio aumotaticamente systemctl restart zabbix-server zabbix-agent apache2 systemctl enable zabbix-server zabbix-agent apache2
EXECUTAR NA MAQUINA DO DB
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.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb apt update
Instalação Banco de Dados apt install zabbix-server-mysql mysql-server zabbix-sql-scripts -y
Iniciar MYSQL Server e habilitar para iniciar automaticamente systemctl enable mysql systemctl start mysql systemctl status mysql
Atualizar Sistema apt-get update -y apt-get upgrade -y
Configuração MYSQL mysql -uroot -p mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@'%' identified by 'g45fr543efc43g54'; mysql> grant all privileges on zabbix.* to zabbix@'%'; mysql> set global log_bin_trust_function_creators = 1; mysql> quit;
Importar schema do banco zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix Liberar acesso remoto ao db vim /etc/mysql/mysql.conf.d/mysqld.cnf comente a linha "bind-address = 127.0.0.1" systemctl restart mysql
Concluir configurações via WEB. As imagens a seguir podem ser de outra versão do zabbix, mas o conceito segue o mesmo. Acessar: http://IP/zabbix
Se tiver com erros de linguagens 1. Instale as linguagens que precisa "dpkg-reconfigure locales" 2. Reinicie o apache e o zabbix-server