CentOS-Zabbix-agent client compilation and installation, centos7zabbixagent

Source: Internet
Author: User

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!

 

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.