如果多台机器都需要监控,我们就需要使用zabbix-agent。
zabbix agent需要安装到被监控的主机上,它负责定期收集各项数据,并发送到zabbix server端,zabbix server将数据存储到数据库中,zabbix web根据数据在前端进行展现和绘图。这里agent收集数据分为主动和被动两种模式:
主动:agent请求server获取主动的监控项列表,并主动将监控项内需要检测的数据提交给server/proxy
被动:server向agent请求获取监控项的数据,agent返回数据。
 
1.安装Zabbix Agent
yum install zabbix-agent
 
2.编辑Zabbix Agent 配置文件
vim /etc/zabbix/zabbix_agentd.conf
内容: 
Server=zabbix server的ip地址             # 被动模式 zabbix-server-ip
ServerActive=zabbix server的ip地址       # 主动模式 zabbix-server-ip
Hostname=web1                           # 注意:该名字要在web界面添加的监控主机的名字一致

 

3.启动服务命令
systemctl restart zabbix-agent.service
systemctl enable zabbix-agent.service
 
4.zabbix-web创建主机,添加图形
Zabbix笔记二:zabbix-agent安装

 

 

Zabbix笔记二:zabbix-agent安装

 

 

 

相关文章:

  • 2021-06-11
  • 2021-06-04
  • 2022-12-23
  • 2021-07-22
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-10-03
  • 2021-10-14
  • 2021-08-19
  • 2021-12-24
相关资源
相似解决方案