Note that the installation of the Zabbix-proxy is not the same as the Zabbix-server installation. Do not confuse, especially the SQL structure of the database
RPM-IVH http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm
After downloading this, change the gpgcheck=1 to 0.
Yum Install Zabbix-proxy-mysql
This will install all the other zabbix-proxy needed.
[Email protected] ~]# 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
[Email protected] ~]#
Create a Zabbix database
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数据库, import SQL into
Configuration file
[Email protected] 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 Installation