zabbix agents 安装

安装步骤

根据选择,在官网上做如下选择,下面有步骤

设置服务器名称

[root@localhost ~]# hostnamectl set-hostname zbagent
[root@localhost ~]# su
[root@zbagent ~]#

安装zabbix仓库

# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm
# yum clean all 

安装zabbix agent2

 yum install zabbix-agent2 zabbix-agent2-plugin-* 

配置/etc/zabbix/zabbix-agent2.conf


ServerActive改成真实的zabbix-server的IP地址:10051

Server=192.168.10.0/24
ServerActive=192.168.10.4:10051

放行 10050的udp端口

firewall-cmd –add-port=10050/udp –permanent
firewall-cmd –reload

启动 zabbix agent2

systemctl start zabbix_agent2
作者:严锋  创建时间:2023-09-10 15:35
最后编辑:严锋  更新时间:2025-05-09 15:48