Translate

segunda-feira, 14 de maio de 2018

Instalação Zabbix 3.0 3.2 3.4 no Debian 8


Download da versão desejada do zabbix
Versão 3.4.X
# wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+jessie_all.deb
# dpkg -i zabbix-release_3.4-1+jessie_all.deb

Versão 3.2.X
# wget http://repo.zabbix.com/zabbix/3.2/debian/pool/main/z/zabbix-release/zabbix-release_3.2-1+jessie_all.deb
# dpkg -i zabbix-release_3.2-1+jessie_all.deb

Versão 3.0.X
# wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix-release/zabbix-release_3.0-1+jessie_all.deb
# dpkg -i zabbix-release_3.0-1+jessie_all.deb

Atualizar os repositórios e o sistema
#apt-get update
 
Instalar o zabbix server o mysql o php e o apache
# apt install zabbix-server-mysql zabbix-frontend-php
 
Instalar o agente
# apt install zabbix-agent
 
Criar e configurar o banco de dados
# mysql –u root –p
               >create database zabbix character set utf8 collate utf8_bin;
               >grant all privileges on zabbix.* to zabbix@localhost identified by 'SENHAUSERDBZABBIX';
               >flush privileges;
               >exit;
 
Importar o esquema de tabelas do zabbix para o mysql
# cd /usr/share/doc/zabbix-server-mysql
# zcat create.sql.gz | mysql -u root zabbix -p
 
Editar o arquivo de configuração do zabbix server
# nano /etc/zabbix/zabbix_server.conf
            DBSocket=/var/run/mysqld/mysqld.sock
DBPort=3306
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=SENHAUSERDBZABBIX

CacheSize=3072M
HistoryCacheSize=64M
HistoryIndexCacheSize=64M
TrendCacheSize=512
ValueCacheSize=512M

Iniciar o server e o agente
# /etc/init.d/zabbix-server start
# /etc/init.d/zabbix-agent start

Editar o arquivo de configuraç
#nano /etc/apache2/conf-enabled/zabbix.conf
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 32M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone America/Sao_Paulo

Reiniciar o apache
# /etc/init.d/apache2 restart

Acessar a interface web http://SEU-IP/zabbix
O usuário e senha padrões são: Admin/zabbix
Avançar e preencher os campos solicitados conforme configurado nos passos acima


#nano /etc/rc.local

Antes o exit 0 adicionar
/etc/init.d/zabbix-server start
/etc/init.d/zabbix-agent start