Zabbix optimization 2: Active agentd Mode

Source: Internet
Author: User

When the number of hosts is too large and the server collects data, zabbix has serious performance problems, mainly as follows:

1. Web operations are very slow and may cause 502 errors.

2. layer break

3. Too many processes (POLLAR) are enabled. Even if the number of items is reduced, adding a certain number of machines will also cause problems.


Therefore, we will consider the following two optimization aspects:

1. Use proxy or node mode for distributed monitoring

2. Adjust agentd to Active Mode

Because the first solution requires adding physical machines, try the second solution first.


I. Configuration Adjustment of agentd:

LogFile=/tmp/zabbix_agentd.logServer=14.18.xxx.xxxServerActive=14.18.xxx.xxHostname=119.146.xxx.xxRefreshActiveChecks=60BufferSize=10000MaxLinesPerSecond=200Timeout=30

The important parameters are serveractive and hostname. serveractive specifies where the data collected by agentd is sent. hostname must correspond to the host name when the server is added, in this way, the server receives the data to find the corresponding relationship. to be compatible with the passive mode, the startagents is not set to 0. If the active mode is used at the beginning, we recommend that you set startagents to 0, disable Passive Mode


Ii. Server Configuration Adjustment:

Startpollers = 100

First, reduce the process of actively collecting data. The original process is more than 700.

Starttrapi pers = 200

Then, you can increase the number of processes that process the data pushed by agentd.


3. Adjust the Template

We recommend that you clone a template OS Linux template to modify it. The adjustments are as follows:

650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/36/wKiom1Q48kiA3gVIAAI9T4EdOKk715.jpg "Title =" 1.jpg" alt = "regular"/> change the type of all items from the original "zabbix proxy" to "zabbix endpoint proxy (active )"


You only need a few simple steps to complete the active mode switch. After the adjustment, the server will not be stuck, the layers will not split, and the process will be less.

This article is from the "O & M notes" blog, please be sure to keep this source http://lihuipeng.blog.51cto.com/3064864/1562603

Zabbix optimization 2: Active agentd Mode

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.