Guia Completo: Instalação do Zabbix 7.0 LTS
Voltar ao blog

Guia Completo: Instalação do Zabbix 7.0 LTS

ConnectBix Team
15 Jan 2026
12 min
Tutorial

Instalação do Zabbix 7.0 LTS

O Zabbix 7.0 LTS é a versão mais estável e recomendada para ambientes de produção. Neste guia, vamos cobrir a instalação completa em um servidor Ubuntu 22.04.

Requisitos de Sistema

Antes de começar, certifique-se de que seu servidor atende aos seguintes requisitos:

- **CPU**: 2 cores mínimo

- **RAM**: 4GB mínimo (8GB recomendado)

- **Disco**: 20GB mínimo

- **SO**: Ubuntu 22.04 LTS

- **Banco de Dados**: PostgreSQL 12+ ou MySQL 8.0+

Passo 1: Preparar o Sistema

Primeiro, atualize o sistema e instale as dependências necessárias:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo apt update

sudo apt upgrade -y

sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 2: Adicionar Repositório Zabbix

Adicione o repositório oficial do Zabbix:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

wget https://repo.zabbix.com/zabbix-official-repo.key

sudo apt-key add zabbix-official-repo.key

echo "deb https://repo.zabbix.com/zabbix/7.0/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/zabbix.list

sudo apt update

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 3: Instalar Zabbix Server

Agora instale o Zabbix Server, Frontend e Agent:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo apt install -y zabbix-server-pgsql zabbix-frontend-php zabbix-agent2

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 4: Configurar PostgreSQL

Instale e configure o banco de dados PostgreSQL:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo apt install -y postgresql postgresql-contrib

sudo systemctl start postgresql

sudo systemctl enable postgresql

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Crie o usuário e banco de dados do Zabbix:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo -u postgres createuser zabbix

sudo -u postgres createdb -O zabbix zabbix

sudo -u postgres psql -c "ALTER USER zabbix WITH PASSWORD 'zabbix_password';"

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 5: Importar Schema do Zabbix

Importe o schema do banco de dados:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 6: Configurar Zabbix Server

Edite o arquivo de configuração do Zabbix:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo nano /etc/zabbix/zabbix_server.conf

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Localize e atualize as seguintes variáveis:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix_password

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Salve o arquivo (Ctrl+O, Enter, Ctrl+X).

Passo 7: Iniciar os Serviços

Inicie e ative os serviços do Zabbix:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

sudo systemctl start zabbix-server-pgsql

sudo systemctl enable zabbix-server-pgsql

sudo systemctl start zabbix-agent2

sudo systemctl enable zabbix-agent2

sudo systemctl restart apache2

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Passo 8: Acessar a Interface Web

Abra seu navegador e acesse a interface web do Zabbix:

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

http://seu-ip-ou-dominio/zabbix

sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget gnupg2 ca-certificates lsb-release ubuntu-keyring

Use as credenciais padrão para fazer login:

- **Usuário**: Admin

- **Senha**: zabbix

Próximos Passos

Após a instalação bem-sucedida, você pode:

1. Adicionar hosts para monitoramento

2. Configurar templates pré-configurados

3. Criar triggers e alertas para sua infraestrutura

4. Integrar com Grafana para dashboards avançados

5. Configurar notificações por email, SMS ou Telegram

Parabuéns! Você agora tem um Zabbix 7.0 LTS funcionando em produção.