zabbix-proxy安装配置

zabbix-proxy安装

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
apt-get update
apt-get install zabbix-proxy-mysql

配置mysql

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


生成表
 zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -uzabbix -pzabbix zabbix

修改配置文件

# vi /etc/zabbix/zabbix_proxy.conf
Server=1.1.1.1    
Hostname=zabbix-proxy-query
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
ConfigFrequency=40
DataSenderFrequency=5    #重要


重启服务

/etc/init.d/zabbix-proxy restart
update-rc.d zabbix-proxy defaults



你可能感兴趣的:(Linux)