zabbix apt 安裝proxy

清華源 wget https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
root@proxy:~# wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
root@proxy:~# dpkg -i zabbix-release_4.0-2+bionic_all.deb
root@proxy:~# apt update
root@proxy:~# apt install zabbix-proxy-mysql -y

#在數據庫服務器上授權
shell> mysql -uroot -p<password>
mysql> create database zabbix_proxy_active character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix_proxy_active.* to zabbix@'%' identified by '123456';




#初始化數據庫
zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -p123456 -h192.168.41.212 zabbix_proxy_active


#編輯配置文件
/etc/zabbix/zabbix_proxy.conf
ProxyMode=0    #0是主動模式
Server=192.168.41.211    #指向服務端
ServerPort=10051
Hostname=Zabbix_proxy_192.168.41.213    #要與後期的管理,agent代理程序一樣
ListenPort=10051
DBHost=192.168.41.212
DBName=zabbix_proxy_active
DBUser=zabbix
DBPassword=123456
Timeout=30

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章