CentOS-Zabbix-agent client compilation and installation, centos7zabbixagent
System Environment: CentOS 6.8
Download installation package Official Website: http://www.zabbix.com/download
This article uses Zabbix 3.0 LTS
Upload to the client server and decompress the package
tar xzvf zabbix-3.0.9.tar.gz
Go to the decompressed folder and start compilation and installation.
./Configure -- prefix =/usr/local/zabbix -- enable-agent // specify the path make & make install // compile and install
Copy the files in the installation package to the installation path.
cp /root/zabbix-3.0.9/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/vim /etc/init.d/zabbix_agentd
BASEDIR=/usr/local/ >> BASEDIR=/usr/local/zabbix
:wq
Start the agent service
Groupadd zabbix // Add zabbix group useradd zabbix-g zabbix // Add zabiix user service zabbix_agentd start // start the service
Configure the agent
vim /usr/local/zabbix/etc/zabbix_agentd.conf
Server = 127.0.0.1> Server = "Server IP Address" // If the IP address is not in the same CIDR block, you need to add multiple IP addresses, Gateway IPServerActive = 127.0.0.1> ServerActive = "server IP Address" Hostname = Zabbix server> Hostname = "local IP Address"
Open Port 10050 on the client
/Sbin/iptables-I input-p tcp -- dport 10050-j ACCEPT/sbin/iptables-I INPUT-p tcp -- dport 10051-j ACCEPT
/Etc/rc. d/init. d/iptables save
Service zabbix_agentd restart // restart the client
Server web Settings
Configuration --- host --- create host
Check that the status ZBX is successfully lit!