Zabbix_agent installation (under Linux)

Source: Internet
Author: User

System Environment: CentOS 6.6

Zabbix_agent version: zabbix-3.2.1

There are two types of packages included in the installation package of the Zabbix website

There are two source code packages,

One is to install the Zabbxi_server package, you can install the agent by the way of setting parameters--enable-agent

One is to install the Zabbix agent package, unzip the configuration,

One. Download Zabbix installation package (first way)

[[email protected] ~]# yum-y install git


[Email protected] ~]# cd/usr/local/src/


[[email protected] src]# git clone https://git.oschina.net/zhouhemo/zabbix-source.git # download zabbix-3.2.1 Source Package


[Email protected] src]# CD zabbix-source/


[Email protected] zabbix-source]# TAR-ZXVF zabbix-3.2.1.tar.gz


[Email protected] zabbix-source]# CD zabbix-3.2.1

Two. Compiling the installation

[Email protected] zabbix-3.2.1]#/configure--prefix=/usr/local/zabbix_agent--enable-agent


[[email protected] zabbix-3.2.1]# make && make install


[Email protected] zabbix-3.2.1]# cp/usr/local/src/zabbix-source/zabbix-3.2.1/misc/init.d/tru64/zabbix_agentd/etc /init.d/


[Email protected] zabbix-3.2.1]# chmod +x/etc/init.d/zabbix_agentd


[Email protected] zabbix-3.2.1]# cp/usr/local/zabbix-agent/sbin/zabbix_agentd/usr/local/sbin/

Three. Modify the configuration file

[Email protected] zabbix-3.2.1]# cd/usr/local/zabbix_agent/etc/


[Email protected] etc]# VI zabbix_agentd.conf


Pidfile=/tmp/zabbix_agentd.pid

Logfile=/tmp/zabbix_agentd.log

server=172.16.41.155 # zabbix_server IP

listenport=10050

serveractive=172.16.41.155

Hostnameitem=system.hostname (when autoenrollment, the host list displays the name of the agent host)

hostmetadata=linux1111 (when autoenrollment, identifies as a Linux host, triggers an action, automatically joins the template)


include=/usr/local/zabbix_agent/etc/zabbix_agentd.conf.d/*.conf # Loading a custom monitoring profile


Unsafeuserparameters=1 # Allow custom Key

Four. Start Zabbix_agent

[[email protected] etc]#/etc/init.d/zabbix_agentd start

This article is from the "zhoufaye1990" blog, make sure to keep this source http://zhoufaye1990.blog.51cto.com/4153787/1904751

Zabbix_agent installation (under Linux)

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.