Repository navigation
Zabbix agent 54
Sivaldo Martins edited this page Jul 18, 2021
·
1 revision
https://repo.zabbix.com/zabbix/5.4/debian/pool/main/z/zabbix-release/
* Debian 10.0
wget https://repo.zabbix.com/zabbix/5.4/debian/pool/main/z/zabbix-release/zabbix-release_5.4-1+debian10_all.deb
dpkg -i zabbix-release_5.4-1+debian10_all.deb
apt update
* Install Zabbix Agent
apt install zabbix-agent -y or
apt install zabbix-agent2 -y
* Configuration
vim /etc/zabbix/zabbix-agent.conf ou vim /etc/zabbix/zabbix-agent2.conf
############ GENERAL PARAMETERS #################
# Option: PidFile
PidFile=/run/zabbix/zabbix_agentd.pid
# Option: LogFile
LogFile=/var/log/zabbix/zabbix_agentd.log
# Option: LogFileSize
# 0 - disable automatic log rotation.
#
# Mandatory: no
# Range: 0-1024
# Default:
# LogFileSize=1
LogFileSize=0
# Passive checks
Server=127.0.0.1
# Active checks
ServerActive=127.0.0.1
# Option: Hostname
Hostname=zabbixserver
# Option: Include
Include=/etc/zabbix/zabbix_agentd.d/*.conf
--------------------------------------------------
* Monitoramento Mysql com Agente
cp /usr/share/doc/zabbix-agent/userparameter_mysql.conf /etc/zabbix/zabbix-agent.d/
CREATE USER 'zabbixmon'@'%' IDENTIFIED BY '<sua_senha>';
GRANT USAGE,REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zabbixmon'@'%';
FLUSH PRIVILEGES;
quit;
mkdir -p /var/lib/zabbix
chown zabbix. -R /var/lib/zabbix/
vim /var/lib/zabbix/.my.cnf
[client]
user=zabbixmon
password=
systemctl restart zabbix-agent
#Teste
su zabbix -s /bin/bash
zabbix_agentd -t mysql.ping[localhost,3306]