Agent一键安装,快速上手Zabbix监控!



一、Linux操作系统部署Agent

环境配置

1、防火墙配置

方法一、关闭linux操作系统自带的防火墙:

临时关闭:systemctl stop firewalld
永久关闭:systemctl disable firewalld

方法二、linux操作系统自带防火墙放通10050端口

firewall-cmd  --zone=public  --add-port=10050/tcp  --permanent
firewall-cmd  --reload

2、永久关闭selinux

临时关闭:setenforce 0
永久关闭:编辑/etc/selinux.config ,将enforcing取值改为disabled ,保存退出

yum方式安装

1、配置zabbix仓库

rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-3.el7.noarch.rpm
yum makecache

2、安装agent

yum install -y zabbix-agent

3、配置 Zabbix-Agent 指向 Zabbix-Server

vim /etc/zabbix/zabbix_agentd.conf

Server=192.168.244.128   #指向serverIP
ServerActive=192.168.244.128   #指向serverIP
Hostname=k8s-master   #server上该服务器取名必须与该值相同
ListenIP=0.0.0.0   #填写本地IP或者监听所有

4、启动agent服务

systemctl start zabbix-agent
systemctl enable zabbix-agent
systemctl status zabbix-agent

二进制包安装

1、下载二进制包

wget https://cdn.zabbix.com/zabbix/binaries/stable/6.0/6.0.3/zabbix_agent-6.0.3-linux-3.0-amd64-static.tar.gz

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值