CentOs7 installation and configuration zabbix3.4 (2) -- install zabbix-agent

Install zabbix-agent

yum install zabbix-agent -y

Confirm the installed version.

Modify the zabbix-agent configuration file

#Backup configuration file
 cp zabbix_agentd.conf zabbix_agentd.conf.bak
#modified configuration file
cat zabbix_agentd.conf
# This is a configuration file for Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=192.168.10.100
ServerActive=192.168.10.100
Hostname=Client.ifeng.com
Include=/etc/zabbix/zabbix_agentd.d/*.conf

Note: It should be noted here that server is passive monitoring and serveractive is active monitoring, and the hostname needs to be consistent with the host.

Detect configuration files and start services

zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
systemctl start zabbix-agent
systemctl enable zabbix-agent

Add a monitoring host on the server side

 

 

 After adding it, you can see the relevant data on the gtaphs page in a moment.

 

 At this point, the installation and deployment of zabbix-agent is complete.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325817009&siteId=291194637