Zabbix enterprise monitoring Zabbix-Proxy

Source: Internet
Author: User

Zabbix enterprise monitoring Zabbix-Proxy

1. theoretical part

Zabbix Proxy is suitable for large-scale distributed monitoring scenarios. It adopts a layered structure that shares the pressure on the Server end. The Proxy is only responsible for data collection in a certain region, and then periodically sends the data to the Server at a time, it greatly reduces the load pressure on the Server and supports larger monitoring demands.

2. Practice

2.1 Environment
ZabbixSer:
Ipaddress = 10.168.0.160
Hostname = zabbix


Zabbix_proxy:
Ipaddress = 10.168.0.141
Hostname = proxy01


ClientSer:
Ipaddress = 10.168.0.9
Hostname = client02
2.2 install yum Source
In zabbix_proxy:
1234 yum install-y mysql-server mysql-devel mysql
Yum install-y http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Yum install-y zabbix-proxy-mysql zabbix-agent
Yum install-y ntp

In clientSer:
12 yum install-y http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Yum install-y zabbix-agent

2.3 Server Configuration
See the following configuration for zabbixSer:

2.4 proxy configuration
In zabbix_proxy:
2.4.1. Step 1
Start the database and set the default startup
12/etc/init. d/mysqld start
Chkconfig mysqld on

2.4.2. Step 2

1) log on to and create the database zabbix
12 mysql-uroot-p
Create database zabbix_proxy default charset utf8;

2) create an authorized user zabbix
12 grant all privileges on zabbix_proxy. * TO 'zabbix' @ 'localhost' identified by 'zabbix ';
Flush privileges;

2.4.3. Step 3
Import Data Tables
12 cd/usr/share/doc/zabbix-server-mysql-2.4.7/create/
Mysql-uroot-p zabbix_proxy <schema. SQL

2.4.4. Step 4
1) Configure proxy service
1 vim edit/etc/zabbix/zabbix_proxy.conf

Make sure that the following parameters are not commented out and the account password is consistent with the one defined above:
12345678 Server = 10.168.0.160
Hostname = zabbix_proxy.cmdschool.org
DBHost = localhost
DBName = zabbix_proxy
DBUser = zabbix
DBPassword = zabbix
ConfigFrequency = 60
DataSenderFrequency = 5


2) configure the agent file
1 vim edit/etc/zabbix/zabbix_agent.conf

Make sure that the following parameters are not commented out and the account password is consistent with the one defined above:
123 Server = 10.168.0.160
ServerActive = 10.168.0.160
Hostname = Zabbix_proxy.cmdschool.or

2.4.5, step 5

Start zabbix and set startup
1234/etc/init. d/zabbix-proxy start
/Etc/init. d/zabbix-agent start
Chkconfig zabbix-proxy on
Chkconfig zabbix-agent on

2.4.6. Step 6
1) Adjust the system time zone to correct the system time
12 cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Ntpdate 0.CentOS.pool.ntp.org

2.4.7 and step7
Firewall Configuration
1) edit/etc/sysconfig/iptables in vim.
Add the following lines:
1-a input-m state -- state NEW-m tcp-p tcp -- dport 10051-j ACCEPT

2) restart the Firewall
1/etc/init. d/iptables restart

2.3.8. Step 8
Add Proxy Server


2.3.9. Step 9
Added host discovery and Adding Functions

 

Reference:
Official Materials
Https://www.zabbix.com/documentation/2.4/manual/distributed_monitoring/proxies

Unofficial
 

Some Zabbix Tutorials:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

This article permanently updates the link address:

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.