Installation zabbix-agent
[root@tz ~]# yum -y install zabbix-agent
Configuring zabbix-agent
First backup the original configuration file
[root@tz ~]# cp /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_agentd.conf.bak [root@tz ~]# vim /etc/zabbix/zabbix_agentd.conf
Modify the configuration file
Where hostname ip address zabbix.server address, Hostname-based machines
PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log LogFileSize=0 Server=192.168.1.200 ServerActive=192.168.1.200 Hostname=mysql Include=/etc/zabbix/zabbix_agentd.d/*.conf
Start zabbix-agent
[root@mysql ~]# systemctl start zabbix-agent.service [root@mysql ~]# systemctl enable zabbix-agent.service [root@mysql ~]# netstat -lntup|grep 10050 tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 8473/zabbix_agentd tcp6 0 0 :::10050 :::* LISTEN 8473/zabbix_agentd