Press "Enter" to skip to content

zabbix proxy安装配置简记

一、配置yum源

# vim /etc/yum.repos.d/zabbix.repo 
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://repo.zabbix.com/zabbix/3.4/rhel/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch 
baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=0

二、安装zabbix proxy

yum install zabbix-proxy-mysql

zcat /usr/share/doc/zabbix-proxy-mysql-3.4.14/schema.sql.gz|mysql -uzabbix -p -h127.0.0.1 -P3306 zabbix
vim /etc/zabbix/zabbix_proxy.conf
#填写zabbix-server所在服务器IP
Server=127.0.0.1
Hostname=dmli-proxy
DBHost=127.0.0.1
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
DBPort=3306
#更新配置文件频率
ConfigFrequency=300
systemctl start zabbix-proxy
systemctl enable zabbix-proxy

三、配置zabbix proxy

在zabbix-server中添加proxy:

Administration -- Proxies -- Create proxy -- dmli-proxy

四、配置zabbix agent

跟平常配置一样,注意“Server”和“ServerActive”参数要填zabbix-proxy的ip地址。

五、添加hosts

就正常添加,“Monitored by proxy”选项那里把代理选上即可。

注:本文转自https://www.muzifei.com/post/zabbix_proxy_install.html

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注