设置YUM源:
rpm -ivh http://mirrors.aliyun.com/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
yum install zabbix-agent -y
vim zabbix_agentd.conf
User=zabbix
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=1024
DebugLevel=3
EnableRemoteCommands=1
Server=10.10.250.49,10.10.250.173
ListenPort=10050
ServerActive=10.10.250.49,10.10.250.173
Hostname=SQLAUDIT
Timeout=10
systemctl start zabbix-agent
systemctl enable zabbix-agent
原文地址:https://www.cnblogs.com/EikiXu/p/10579891.html
时间: 2024-10-07 06:00:33