(二)centos7安装zabbix agentd端

  • 关闭防火墙和selinux
systemctl stop firewalld
systemctl  disable firewalld
sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config
setenforce 0
  • 安装zabbix-agentd
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
yum install zabbix-agent -y
systemctl enable zabbix-agent.service
  • agent端配置
# vim /etc/zabbix/zabbix_agentd.conf
Server=192.168.92.129        #zabbix server地址
ServerActive=192.168.92.129    #zabbix server地址
或
sed -ri '/^ServerActive=127.0.0.1/cServerActive=192.168.92.129' /etc/zabbix/zabbix_agentd.conf
sed -ri '/^Server=127.0.0.1/cServer=192.168.92.129' /etc/zabbix/zabbix_agentd.conf 
  • 重启agent服务
systemctl start zabbix-agent.service
原文地址:https://www.cnblogs.com/lovelinux199075/p/8885807.html