1,被监控端需要安装agent,并修改配置文件。

  1. #下载agent安装包
  2. wget https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.11-1.el7.x86_64.rpm
  3. #安装
  4. rpm -ivh zabbix-agent-4.0.11-1.el7.x86_64.rpm
  5. #修改配置文件
  6. vim /etc/zabbix/zabbix_agentd.conf
  7. Server=10.0.0.66 #修改为zabbixserver端ip
  8. systemctl start zabbix-agent
  9. systemctl enable zabbix-agent

2,在web上配置监控主机

image.png
image.png
image.png
image.png

zabbix机制,我们在web端的操作会写入数据库,而server端每60秒读取数据库,导致信息同步不是很慢,我们可以通过重启server端,让server端重新读取数据库数据。

image.png