zabbix proxy 安裝配置

1. 安裝DB並啟用
yum install -y mariadb*
systemctl start mariadb
systemctl enable mariadb

 2. 設定並創建zabbix_proxy資料庫,並提供存取權限

mysql
mysql> create database zabbix_proxy character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost identified by 'zabbix';
mysql> quit;

#尾巴的';'不可省略

3. 安裝並配置zabbix proxy

#更改倉庫位置
rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm
yum install -y zabbix-proxy-mysql
zcat /usr/share/doc/zabbix-proxy-mysql*/schema.sql.gz | mysql -uzabbix -p zabbix_proxy

4. 更改proxy配置檔

vim /etc/zabbix/zabbix_proxy.conf
Server=192.168.56.103        #更改為你的zabbix伺服器IP
Hostname=zabbix_proxy        #這台proxy的hostname
DBName=zabbix_proxy          #資料庫名稱
DBUser=zabbix                #資料庫帳戶名
DBPassword=zabbix            #資料庫帳戶密碼

5. 啟用proxy

systemctl start zabbix-proxy
systemctl enable zabbix-proxy

 

6. 在zabbix webGUI上新增proxy

Administration -> Proxies -> Create proxy
Proxy name: zabbix_proxy
Proxy mode: Active
Proxy address: 192.168.56.101

 


 

你可能感兴趣的:(zabbix proxy 安裝配置)