Mudanças entre as edições de "Instalação Zabbix Server 6.2"
Ir para navegação
Ir para pesquisar
(Criou página com ''''HOMOLOGADO COM'''<br> Ubuntu Server 22.04<br> '''Preparação Sistema''' - Configuração de rede - Configuração de firewall - Download e preparação da ISO - Inst...') |
|||
Linha 8: | Linha 8: | ||
- Instalação do SO | - Instalação do SO | ||
- Desabilitar firewall proprietário do SO [[Firewall Linux Ubuntu|Clique Aqui]] | - Desabilitar firewall proprietário do SO [[Firewall Linux Ubuntu|Clique Aqui]] | ||
− | - Alteração de senhas de instalação [[Troca Senha Acesso|Clique Aqui]] | + | - Alteração de senhas de instalação [[Troca Senha Acesso Ubuntu|Clique Aqui]] |
− | - Configuração xentools/vmtools | + | - Configuração xentools/vmtools {Homologar no Ubuntu} |
- Configuração Serviços | - Configuração Serviços | ||
- Configuração Backup | - Configuração Backup | ||
Linha 15: | Linha 15: | ||
'''Instalação pacotes básicos''' | '''Instalação pacotes básicos''' | ||
− | + | apt-get install wget vim net-tools -y | |
'''Atualizar Sistema''' | '''Atualizar Sistema''' | ||
− | + | apt-get update -y | |
− | + | apt-get upgrade -y | |
'''Reiniciar o SO''' | '''Reiniciar o SO''' | ||
Linha 25: | Linha 25: | ||
'''Instalar repositório Zabbix''' | '''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''' | '''Instalar Zabbix Server, frontend, agent''' | ||
− | + | apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent | |
'''Instalar MYSQL Server''' | '''Instalar MYSQL Server''' | ||
− | + | apt install mysql-server -y | |
'''Iniciar MYSQL Server e habilitar para iniciar automaticamente''' | '''Iniciar MYSQL Server e habilitar para iniciar automaticamente''' | ||
− | systemctl enable | + | 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''' | '''Configuração MYSQL''' | ||
'''mysql -uroot -p''' | '''mysql -uroot -p''' | ||
− | mysql> create database zabbix character set | + | mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; |
mysql> create user zabbix@localhost identified by 'password'; | mysql> create user zabbix@localhost identified by 'password'; | ||
mysql> grant all privileges on zabbix.* to zabbix@localhost; | mysql> grant all privileges on zabbix.* to zabbix@localhost; | ||
− | mysql> | + | mysql> SET GLOBAL log_bin_trust_function_creators = 1; |
− | mysql> quit; | + | mysql> quit; |
− | |||
− | |||
− | |||
'''Importar DB default do Zabbix para o MYSQL''' | '''Importar DB default do Zabbix para o MYSQL''' | ||
− | zcat /usr/share/doc/zabbix-sql-scripts/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''' | '''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''' | '''Configurar dados de conexão do Zabbix com MYSQL''' | ||
Linha 57: | Linha 67: | ||
'''Iniciar serviços, e habilitar para inicio aumotaticamente''' | '''Iniciar serviços, e habilitar para inicio aumotaticamente''' | ||
− | systemctl restart zabbix-server zabbix-agent | + | systemctl restart zabbix-server zabbix-agent apache2 |
− | systemctl enable zabbix-server zabbix-agent | + | systemctl enable zabbix-server zabbix-agent apache2 |
'''Concluir configurações via WEB''' | '''Concluir configurações via WEB''' |
Edição atual tal como às 17h21min de 30 de julho de 2022
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