Compilation and installation of Zabbix-agent client

大家讲道理
Release: 2017-05-28 10:35:36
Original
2234 people have browsed it

System environment:

CentOS 6.8

Official website downloadInstallationPackage: http://www.zabbix .com/download

This article uses Zabbix 3.0 LTS

Upload to the client server and decompress


tar xzvf zabbix-3.0.9.tar.gz
Copy after login


Enter the decompressed folder to start compilation and installation


./configure --prefix=/usr/local/zabbix --enable-agent           //指定路径make && make install                             //编译安装
Copy after login


Copy the files in the installation package to the installation path


 /root/zabbix-./misc/init.d/fedora/core/zabbix_agentd /etc/init.d//etc/init.d/zabbix_agentd
Copy after login


Start the agent service


groupadd zabbix                  //添加zabbix组useradd zabbix -g zabbix           //添加zabiix用户service zabbix_agentd start        //启动服务
Copy after login


Configure agent


vim /usr/local/zabbix/etc/zabbix_agentd.conf
Copy after login



Server=127.0.0.1          >>   Server="服务端IP“       //如不在统一网段,需要添加多个IP、网关IPServerActive=127.0.0.1    >>   ServerActive="服务端IP”Hostname=Zabbix server    >>   Hostname="本机IP”
Copy after login


Client opens port 10050


/sbin/iptables -I INPUT -p tcp --dport  -/sbin/iptables -I INPUT -p tcp --dport  -j ACCEPT
/etc/rc.d/init.d/iptables save
service zabbix_agentd restart              
Copy after login


Server web settings

Configuration---Host---Create host

View Status As shown in the figure, ZBX lights up to indicate success!

The above is the detailed content of Compilation and installation of Zabbix-agent client. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!