Zabbix添加Agent与Get

本文使用yum方式安装Zabbix Agent,在安装前首先添加对应的yum repository,以下列出了CentOS/RHEL版本的添加地址

1
rpm -Uvh http://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm

安装Zabbix-agent

1
yum install zabbix-agent

安装Zabbix-get

1
yum install zabbix-get.x86_64

4.编辑Zabbix Agent 配置文件

1
2
3
4
vim /etc/zabbix/zabbix_agentd.conf
Server=[zabbix server ip]
ServerActive=[zabbix server ip]
Hostname=[ Hostname of client system ]

5.重启Zabbix Agent

1
service zabbix-agent restart

6.添加开机启动

1
chkconfig zabbix-agent on