0% found this document useful (0 votes)
41 views2 pages

Aula-12 02 2022

The document provides instructions for installing and configuring Zabbix and Grafana on a Linux container. It includes steps to: 1. Update packages and enable SSH access on the container. 2. Install Zabbix server, frontend, agent, and database components and configure access to the MySQL database. 3. Install Grafana and enable the Grafana server service. 4. Install a Zabbix plugin for Grafana and SNMP for monitoring with specific OIDs.

Uploaded by

Brian hyr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

Aula-12 02 2022

The document provides instructions for installing and configuring Zabbix and Grafana on a Linux container. It includes steps to: 1. Update packages and enable SSH access on the container. 2. Install Zabbix server, frontend, agent, and database components and configure access to the MySQL database. 3. Install Grafana and enable the Grafana server service. 4. Install a Zabbix plugin for Grafana and SNMP for monitoring with specific OIDs.

Uploaded by

Brian hyr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Após criação do Container:

Atualizar repositórios
- apt update

Atualizar programas instalados


- apt upgrade

Habilitar acesso SSH


- nano /etc/ssh/sshd_config
- #PermitRootLogin prohibit-password -> PermitRootLogin yes
- service ssh restart

Descobrir o IP para acesso SSH


- ip -br ad

Instalando o Zabbix
Baixar o repositório
- wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-
release/zabbix-release_5.0-1+buster_all.deb
- dpkg -i zabbix-release_5.0-1+buster_all.deb
- apt update

Instalar as partes do Zabbix (Server, Frontend e Database)


- apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-
conf zabbix-agent
- apt install default-mysql-server

Criar usuário de acesso ao Database


- mysql -uroot
- create database zabbix character set utf8 collate utf8_bin;
- create user zabbix@localhost identified by '123';
- grant all privileges on zabbix.* to zabbix@localhost;
- quit;

Adicionar senha de acesso ao Database no Zabbix


- nano /etc/zabbix/zabbix_server.conf
- # DBPassword= -> DBPassword=123

Alterar TimeZone do Frontend


- nano /etc/zabbix/apache.conf
- # php_value date.timezone Europe/Riga -> php_value date.timezone
America/Sao_Paulo

Aplicar todas as configurações


- systemctl restart zabbix-server zabbix-agent apache2
- systemctl enable zabbix-server zabbix-agent apache2

Finalizar a instalação em http://IP/zabbix

Instalando o Grafana
Baixar os repositórios
- apt-get install -y apt-transport-https
- apt-get install -y software-properties-common wget
- wget -q -O - https://packages.grafana.com/gpg.key | apt-key add -
- echo "deb https://packages.grafana.com/oss/deb stable main" | tee -
a /etc/apt/sources.list.d/grafana.list

Atualizar o repositório e instalar o grafana


- apt-get update
- apt-get install grafana

Habilitar o serviço
- /bin/systemctl daemon-reload
- /bin/systemctl enable grafana-server
- /bin/systemctl start grafana-server

Instalando Plugin do Zabbix


- grafana-cli plugins install alexanderzobnin-zabbix-app

Instalar o SNMP
- apt install snmp

Pegar OIDs
- system health print oid

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy