centos7下搭建zabbix-agent
1、安装zabbix-agent
rpm -ivh http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum -y install zabbix-agent
2、启动zabbix-agent并配置开机自启
systemctl start zabbix-agent
systemctl enable zabbix-agent

3、添加zabbix-agent




修改zabbix-agent配置文件
vim /etc/zabbix/zabbix_agentd.conf
修改如下(下面的ip,为zabbix-server的ip)
Server=192.168.152.123
ServerActive=192.168.152.123
Hostname=192.168.152.129 #注意,这里的hostname要与上面创建主机的hostname一样,不然会报错
重启zabbix-agent服务
systemctl restart zabbix-agent
网友评论