将业务机器加入到监控中
一、实验拓扑图

二、设置被监控机器
本节操作的机器是: zabbix-agent
2.1)配置主机名、IP信息
# echo "agent.ayitula.com" > /etc/hostname
# hostname agent.ayitula.com
# nmcli con add con-name eth0 ifname ens33 type 802-3-ethernet ipv4.method static ipv4.address 192.168.10.41/24 ipv4.gateway 192.168.10.1 ipv4.dns 202.106.0.20
2.2) 软件包安装,因为是客户端,所以我们需要安装zabbix客户端:zabbix-agent
# rpm -i https://mirrors.aliyun.com/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.10-1.el7.x86_64.rpm
2.3) 修改配置文件,指定zabbix server IP地址
# sed -i '/^Server=127.0.0.1$/c\Server=192.168.10.40' /etc/zabbix/zabbix_agentd.conf
2.4)启动服务
# systemctl start zabbix-agent
# systemctl enable zabbix-agent
# systemctl is-active zabbix-agent 确保启动成功
active
2.5)通过web界面添加主机到监控平台
配置--->主机--->创建主机




BJ_cnc_96_236 代表 机器在北京 联通机房 IP后两位是96.236
模板如果没有自定义模板的话,linux主机建议你就用系统自带的监控模板就行 linux_server,点击添加后,稍等一分钟,然后再一次点击主机按钮查看情况

网友评论