下载安装zabbix-agent2
apr searce agent2
apr install zabbix-agent2
下载完之后修改zabbix-agent2的配置文件
grep -Ev '#|^$' /etc/zabbix/zabbix_agent2.conf
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=192.168.80.181,192.168.80.182
ServerActive=192.168.80.181;192.168.80.182
Hostname=pve-node1
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
Include=./zabbix_agent2.d/plugins.d/*.conf
修改完之后启动并设置开机自启
启动
systemctl start zabbix-agent2.service
开机自启
systemctl enable zabbix-agent2.service