Deploying Zabbix Porxy

Source: Internet
Author: User

Environment: Centos 6.6

[[email protected] ~]# yum -y install  Mysql-server[[email protected] ~]# /etc/init.d/mysqld start[[email protected] ~] # chkconfig mysqld on[[email protected] ~]# /usr/bin/mysqladmin -u  root password  ' Redhat ' [[email protected] ~]# mysql -uroot -predhatmysql>  create database zabbix_proxy character set utf8;mysql> grant all  ON zabbix_proxy.* TO  ' zabusr ' @ ' 192.168.31.%.% '  IDENTIFIED BY  ' zbxproxy '; mysql> grant all on zabbix_proxy.* to  ' zabusr ' @ ' localhost '  IDENTIFIED  BY  ' zbxproxy '; mysql> flush privileges; 
[[email protected] rpm]# yum -y install  zabbix-2.0.14-1.el6.x86_64.rpm zabbix-proxy-2.0.14-1.el6.x86_64.rpm  zabbix-proxy-mysql-2.0.14-1.el6.x86_64.rpm[[email protected] rpm]# rpm -ql  Zabbix-proxy-mysql[[email protected] rpm]# mysql -uzabusr -pzbxproxy zabbix_ proxy < /usr/share/doc/zabbix-proxy-mysql-2.0.14/create/schema.sql[[email protected]  rpm]# 
[[Email protected] rpm]# cd /etc/zabbix/[[email protected] ~]# grep -v  ^# /etc/zabbix/zabbix_proxy.conf |grep -v ^ $Server =192.168.31.130hostname= proxy.example.com                     //here must and Zannix web gui remain (DM) listenport=10051logfile=/var/log/zabbix/ Zabbix_proxy.loglogfilesize=0pidfile=/var/run/zabbix/zabbix_proxy.piddbhost=localhostdbname=zabbix_proxydbuser =zabusrdbpassword=zbxproxydbsocket=/var/lib/mysql/mysql.sockdbport=3306proxylocalbuffer=1                //proxy when the data is successfully sent to the server, Unit hour proxyofflinebuffer=24            // Proxy and server disconnected data save time, per hour configfrequency=600               //proxy the time period of the request configuration file to the server, singleBit seconds datasenderfrequency=5            // Proxy sends a time period of data collection to the server, in seconds externalscripts=/usr/lib/zabbix/externalscripts[[email protected] ~]#[[ Email protected] zabbix]# /etc/init.d/zabbix-proxy startstarting zabbix proxy:                                        [  ok  ][[email protected] zabbix]#[[email protected] zabbix]#  netstat -anp|grep 10051tcp        0       0 0.0.0.0:10051                0.0.0.0:*                    listen      1481/zabbix_proxy  tcp         0      0 :::10051                     :::*                           listen      1481/zabbix_proxy  [[email protected]  zabbix]#
[[Email protected] ~]# grep -v ^# /etc/zabbix/zabbix_agentd.conf |grep  -v ^ $PidFile =/var/run/zabbix/zabbix_agentd.pidlogfile=/var/log/zabbix/zabbix_agentd.loglogfilesize= 0server=192.168.31.150            // Proxy address Listenport=10050serveractive=192.168.31.150     //proxy address hostname= 192.168.31.160include=/etc/zabbix/zabbix_agentd.d/userparameter=memory.total,/etc/zabbix/scripts/memory_ Status.sh memory_totaluserparameter=memory.used,/etc/zabbix/scripts/memory_status.sh memory_ useduserparameter=memory.free,/etc/zabbix/scripts/memory_status.sh memory_freeuserparameter=swap.total,/ Etc/zabbix/scripts/memory_status.sh swap_totaluserparameter=swap.used,/etc/zabbix/scripts/memory_ Status.sh swap_useduserparameter=swap.free,/etc/zabbix/scripts/memory_status.sh swap_ freeuserparameter=total.total,/etc/zabbix/scripts/memory_status.sh total_tOtaluserparameter=total.used,/etc/zabbix/scripts/memory_status.sh total_useduserparameter=total.free,/etc /zabbix/scripts/memory_status.sh total_free[[email protected] ~]#
[Email protected] ~]# Tail-2/etc/hosts192.168.31.150proxy.example.com192.168.31.160node.example.com[[email Protected] ~]#[[email protected] ~]# tail-2/etc/hosts192.168.31.160node.example.com192.168.31.150proxy.example.com [[Email protected] ~]#[[email protected] ~]# tail-6/etc/hosts172.24.17.130 zabbix.example.com172.24.17.130 mail.com Mail mail.com.com localhost localhost.localdomain172.24.17.131 131.example.com172.24.17.132 132. Example.com192.168.31.160node.example.com192.168.31.150proxy.example.com[[email protected] ~]#

Add Porxy

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/97/wKiom1cjQiLQiTa7AAJ-Ba615kQ364.png "style=" float: none; "title=" 1.png "alt=" Wkiom1cjqilqita7aaj-ba615kq364.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7F/97/wKiom1cjQiOSM-2yAACgDcQPGrU109.png "style=" float: none; "title=" 2.png "alt=" Wkiom1cjqiosm-2yaacgdcqpgru109.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7F/95/wKioL1cjQvLhgaiCAACMqw0ige0082.png "style=" float: none; "title=" 3.png "alt=" Wkiol1cjqvlhgaicaacmqw0ige0082.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7F/97/wKiom1cjQiSzeLlxAAColtSHh4w448.png "style=" float: none; "title=" 4.png "alt=" Wkiom1cjqiszellxaacoltshh4w448.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7F/95/wKioL1cjQvPzT2d6AADH7aGAaSE345.png "style=" float: none; "title=" 5.png "alt=" Wkiol1cjqvpzt2d6aadh7agaase345.png "/>

Proxy Discovery Host

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/97/wKiom1cjQlWhtwOgAAB1JpsFY0I122.png "style=" float: none; "title=" 1.png "alt=" Wkiom1cjqlwhtwogaab1jpsfy0i122.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7F/95/wKioL1cjQyTAlkcmAACPw9-3NYM132.png "style=" float: none; "title=" 2.png "alt=" Wkiol1cjqytalkcmaacpw9-3nym132.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/95/wKioL1cjQyTg_-GFAACfKonI1eg059.png "style=" float: none; "title=" 3.png "alt=" Wkiol1cjqytg_-gfaacfkoni1eg059.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7F/97/wKiom1cjQlfQ5ZtqAABp7krbG4g846.png "style=" float: none; "title=" 4.png "alt=" Wkiom1cjqlfq5ztqaabp7krbg4g846.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7F/97/wKiom1cjQlfjaLvqAADXGEJ40iw243.png "style=" float: none; "title=" 5.png "alt=" Wkiom1cjqlfjalvqaadxgej40iw243.png "/>


This article from "Pengcheng-soy sauce bottle" blog, declined reprint!

Deploying Zabbix Porxy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.