首页 > 代码库 > zabbix-proxy安装

zabbix-proxy安装

注意,zabbix-proxy的安装和zabbix-server的安装不一样。不要混为一谈,尤其是数据库的sql结构


rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm

下载了这个后把gpgcheck=1改成0

yum install zabbix-proxy-mysql

这个会把其他zabbix-proxy所需的都安装上

[root@dx-it-elk01 ~]# rpm -ql zabbix-proxy-mysql

/etc/init.d/zabbix-proxy

/etc/logrotate.d/zabbix-proxy

/etc/zabbix/zabbix_proxy.conf

/usr/lib/zabbix/externalscripts

/usr/sbin/zabbix_proxy_mysql

/usr/share/doc/zabbix-proxy-mysql-3.0.5

/usr/share/doc/zabbix-proxy-mysql-3.0.5/AUTHORS

/usr/share/doc/zabbix-proxy-mysql-3.0.5/COPYING

/usr/share/doc/zabbix-proxy-mysql-3.0.5/ChangeLog

/usr/share/doc/zabbix-proxy-mysql-3.0.5/NEWS

/usr/share/doc/zabbix-proxy-mysql-3.0.5/README

/usr/share/doc/zabbix-proxy-mysql-3.0.5/schema.sql.gz

/usr/share/man/man8/zabbix_proxy.8.gz

/var/log/zabbix

/var/run/zabbix

[root@dx-it-elk01 ~]# 




创建zabbix数据库

drop database zabbix; 

create database zabbix;


cd /usr/share/doc/zabbix-proxy-mysql-3.0.5/

gunzip schema.sql.gz

mysql -u root -p zabbix  < schema.sql ##提前要创建好zabbix数据库,将sql导入

配置文件

[root@dx-it-elk01 sankuai]# cat /etc/zabbix/zabbix_proxy.conf

ProxyMode=0

DebugLevel=3

Server=192.168.6.120

ServerPort=10051

Hostname=DX

LogFile=/var/log/zabbix/zabbix_proxy.log

LogFileSize=0

PidFile=/var/run/zabbix/zabbix_proxy.pid

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=12345

DBPort=3306

ProxyLocalBuffer=4

ProxyOfflineBuffer=8

StartPollers=100

StartPollersUnreachable=10

StartTrappers=20

StartPingers=20

StartDiscoverers=5

Timeout=30

ExternalScripts=/usr/lib/zabbix/externalscripts

LogSlowQueries=3000

FpingLocation=/usr/sbin/fping

Fping6Location=/usr/sbin/fping6


zabbix-proxy安装