Install zabbix-agent and add it to the Zabbix web for monitoring

Source: Internet
Author: User

First, describe

This article complements the CentOS7.2 LNMP installation Deployment zabbix3.2, which is described in the LNMP environment Deployment Zabbix Server and Web, This article is mainly about the centos6.x (centos7.x, not the same as the installation source is different) installed zabbix-agent and through the Zabbix Web add to the monitoring. Complete an enterprise Zabbix monitoring application with C/s mode.

Zabbix-agent end there are two ways to let the monitoring of the data to Zabbix server, one is the passive mode, that is, zabbix-server to the agent (tcp/10050) acquisition, the other is called the active module, 10051 that is actively committed to the server side

Therefore, you need to add firewall rules to the agent side to open port access or whitelist the server side IP.


Second, add Zabbix source and install the configuration

1. Add Source Library

#rpm-IVH http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm

2. Installation

#yum install Zabbix-agent-y#chkconfig zabbix-agent on #添加开机启动

Note that if the network speed is too slow to cause the installation to fail, please download the corresponding agent package to install, the same effect

#wget HTTP://101.96.10.64/REPO.ZABBIX.COM/ZABBIX/3.2/RHEL/6/X86_64/ZABBIX-AGENT-3.2.8-1.EL6.X86_64.RPM#RPM-IVH zabbix-agent-3.2.8-1.el6.x86_64.rpm


3, Configuration zabbix_agentd.conf

#egrep-V ' (^$|^#) ' zabbux_agentd.conf

Pidfile=/var/run/zabbix/zabbix_agentd.pidlogfile=/var/log/zabbix/zabbix_agentd.loglogfilesize=0server= 172.16.3.152                     #zabbix  serverServerActive=172.16.3.152:10051        Use hostname=salt-master147        when #zabbix  server   proactively submit monitoring data          #zabbix-agent Identity   can be the same as the hostname refreshactivechecks=60                 # Proactive Refresh commit data failure interval resubmit time buffersize=1000                         #缓存大小MaxLinesPerSecond =200                   #处理监控类型为log何eventlog日志时, The maximum number of rows that the agent sends per second. The default is 100 rows Timeout=30                              #超时时间UnsafeUserParameters =1                  #允许所有字符的参数传递给用户定义的参数        Include=/etc/zabbix/zabbix_agentd.d/*.conf

Save, restart Zabbbix-agent

#service zabbix-agent Restart


Third, server-side (Zabbix web) Add monitoring

Configure-to-host-create hosts

650) this.width=650; "title=" Selection _018.png "alt=" Wkiol1ncejdy7mjsaaenrma7sno752.png "src=" Https://s5.51cto.com/wyfs02 /m02/a6/d8/wkiol1ncejdy7mjsaaenrma7sno752.png "/>650" this.width=650; "title=" 222223.png "alt=" Wkiol1nceo6tyopbaae6swrsui4947.png "src=" https://s5.51cto.com/wyfs02/M01/A6/D8/ Wkiol1nceo6tyopbaae6swrsui4947.png "/> Host name: Must be the same as in the agent hostname, otherwise error, visible name: Can play a well-known meaning of the name;

Interface of Agent Agent add write Zabbix-server ip:172.16.3.152

Then click "Module"--

650) this.width=650; "title=" 333333.png "alt=" Wkiom1nc7dwxvaycaah9ojiqlrm014.png "src=" Https://s1.51cto.com/wyfs02 /m02/08/26/wkiom1nc7dwxvaycaah9ojiqlrm014.png "/> Module--Choose--" Template OS Linux "--select--add; Add Completion agent added to Zabbix monitoring, the default is passive mode.

650) this.width=650; "title=" 44444.png "alt=" Wkiol1ncgukt5xasaahnzcqtm70358.png "src=" https://s3.51cto.com/wyfs02/ M01/a6/d9/wkiol1ncgukt5xasaahnzcqtm70358.png "/>

Wait a moment to get the monitoring data on the agent

Click--Monitoring--latest data--group (LOCALTEST)---host (local_salt-master147)--Monitoring items (Zabbix agent)--you'll see similar information

650) this.width=650; "title=" Dddddd.png "alt=" Wkiom1nc8vpynsq2aafa8ohxkru379.png "src=" Https://s2.51cto.com/wyfs02 /m02/08/27/wkiom1nc8vpynsq2aafa8ohxkru379.png "/> Indicates that the Zabbix agent was successfully added to the Zabbix server in passive mode.


This article is from the "Learning, learning" blog, please be sure to keep this source http://dyc2005.blog.51cto.com/270872/1971212

Install zabbix-agent and add it to the Zabbix web for monitoring

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.