1.zabbix通过zabbix_agent监控主机
在被监控端安装zabbix_agent
编辑配置文件vi /etc/zabbix/zabbix_agent.conf
Server=192.168.1.25
ServerActive=192.168.1.25
Hostname=192.168.124.85
注:Server和ServerActive都是zabbix_server端的ip Hostname是zabbix_agentd端ip
开启agent服务:systemctl start zabbix-agent
查看10050端口是否开启:netstat -ntpl
依次点击【配置】——【主机】——【创建主机】——【填写被添加的主机信息】
可以看到主机已经添加进来
点击【刚添加的主机名称】——【模板】——【选择】——【添加】——【更新】
![在这里插入图片描述](https://img-blog.csdnimg.cn/img_convert/583535a2beece22ba29ab16b9bdf3bd7.png