时间:2020-08-20 17:00:08 | 栏目: | 点击:次
1.在web01上安装zabbix-agent
部署zabbix仓库
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
更换仓库中的url地址
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
安装agent
yum -y install zabbix-agent
修改配置文件/etc/zabbix/zabbix_agentd.conf
Server=192.168.1.71
ListenPort=10050
#StartAgents=0
#ServerActive=192.168.1.71
Hostname=web01
说明:
防火墙开启端口

启动服务
systemctl start zabbix-agent systemctl enable zabbix-agent

2.在zabbix-server的web页面点击配置---主机
点击右上角 创建主机:

点击模板,选择Template OS Linux by Zabbix agent

点击更新,在主机列表中出现如下:

选择 监测---主机---web01,即可开始观看各种监控数据和图形。