Você está na página 1de 2

#UBUNTU SERVER LTS 18.04.2 Instalação do Zabbix 4.

#Download repositorio Zabbix


wget https://repo.zabbix.com/zabbix/4.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.2-
1%2Bbionic_all.deb

#Instalar o pacote
dpkg -i zabbix-release_4.2-1+bionic_all.deb

#atualizar repositorio apt


apt-get update

#Instalação banco de dados


apt-get install mysql-server

#Instalação Zabbix Server


apt-get install zabbix-server-mysql

#Criação banco de dados


mysql -u root -p enter

# Criando banco de dados Zabbix


create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost \
identified by 'zabbix';

#Criar tabelas mysql Zabbix

cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -uroot zabbix

# vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

#Instalar PHP 7.2


apt-get install php7.2 php7.2-mysql php7.2-bcmath php7.2-gd php7.2-mbstring php7.2-xml php7.2-
gettext php7.2-ldap
#PHP.ini
vim /etc/php/7.2/apache2/php.ini

memory_limit = 128MB
post_max_size = 16M
upload_max_filesize = 2M
max_execution_time = 300
max_input_time = 300
date.timezone = America/Sao_Paulo

#Instalação Frontend
apt-get install zabbix-frontend-php

#Reiniciar apache
service apache2 restart

#Ativar Zabbix Server no boot


systemctl enable zabbix-server

#Inciando Zabbix Server


service zabbix-server start

#Abrir navegador e acessar Wizard Frontend


http://IPDOSERVIDOR/zabbix

#Após finalizar as configurações


User: Admin
senha: zabbix

#idioma Português
grep pt_BR /usr/share/i18n/SUPPORTED

locale-gen pt_BR
locale-gen pt_BR.UTF-8

service apache2 restart

#ERRO gráficos Zabbix correção


cd /usr/share/zabbix/assets/fonts
ln -s /usr/share/zabbix/fonts/graphfont.ttf graphfont.ttf

Você também pode gostar