yum 安装配置zabbix-agent
#安装zabbix源
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
#有可能需要重新执行步骤
yum provides ‘*/applydeltarpm’
如果出现下图报错再次执行yum provides ‘*/applydeltarpm’
yum install -y zabbix-agent
#修改zabbix客户端配置
cat >/etc/zabbix/abbix_agentd.conf<<end
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=system.hostname
Include=/etc/zabbix/zabbix_agentd.d/*.conf
UnsafeUserParameters=1
end
#查看zabbix客户端配置
cat /etc/zabbix/abbix_agentd.conf
#启动zabbix客户端
systemctl start zabbix-agent
#设置zabbix客户端开机启动
systemctl enable zabbix-agent