跳转至

3. 添加监控主机

1. 环境

# zabbix server 
10.0.8.2

# zabbix agent
10.0.8.1
10.0.8.2
10.0.8.3
10.0.8.4
10.0.8.5

2. 修改agent配置文件

# all agent!
#1.进入配置文件目录
root@zabbix:~# cd /etc/zabbix/
root@zabbix:/etc/zabbix# ls
apache.conf  web  zabbix_agentd.conf  zabbix_agentd.conf.d  zabbix_agentd.conf.dpkg-dist  zabbix_agentd.d  zabbix_server.conf

#2.修改配置文件
root@zabbix:/etc/zabbix# vim zabbix_agentd.conf
#将以下2行修改为zabbix server的内网地址
 98 Server=10.0.8.2
139 ServerActive=10.0.8.2

#3. 重启zabbix-agent
root@zabbix:/etc/zabbix# systemctl restart zabbix-agent.service

3. web端配置

# 配置-主机-创建主机
img_6.png

# 主机名称:
# 可见名称:阿里云服务器
# 群组:linux servers
# 客户端:10.0.8.1 
# 然后点击模板

img_7.png

# linux by zabbix agent

img_8.png

# 其他设置类似!
img_9.png


最后更新: 2022-02-18 07:50:18