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)