1、安装zabbix-agent服务
[[email protected]~]# wget http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
[[email protected]~]# yum clean all
[[email protected]~]# rpm -ivh zabbix-release-3.0-1.el7.noarch.rpm
2、修改/etc/zabbix/zabbix_agent.conf参数
[[email protected]~]# grep ^[a-Z] /etc/zabbix/zabbix_agentd.conf
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=10.16.3.252 //zabbix服务器的IP
ServerActive=10.16.3.252 //zabbix服务器的IP
Hostname=10.15.3.250 //被监控端的IP,即本机的IP
Include=/etc/zabbix/zabbix_agentd.d/
3、开启服务
[[email protected]~]# systemctl zabbix-agent start
时间: 2024-10-10 20:00:10