跳到主要内容

[toc]

zabbix3.4监控一台主机

zabbix-serverIP地址:10.0.0.200

1.安装zabbix-agent

rpm -ivh https://mirrors4.tuna.tsinghua.edu.cn/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.15-1.el7.x86_64.rpm

2.配置zabbix-agent

# 指定zabbix-server地址
sed -i.bak 's/Server=127.0.0.1/Server=10.0.0.200/' /etc/zabbix/zabbix_agentd.conf

3.启动zabbix-agent

# 启动zabbix-agent并设置开机自起
systemctl start zabbix-agent && systemctl enable zabbix-agent

4.在zabbix-server端web界面,点击配置-->主机-->创建主机

iShot_2024-08-28_17.01.18

5.点击配置-->主机-->模板-->链接指示器

iShot_2024-08-28_17.02.58

添加后的主机

iShot_2024-08-28_17.04.14