how to install Zabbix-agent2 on centos 7 for advanced monitoring2 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Hi All, This document deals with how to install Zabbix-agent2 on centos 7 for advanced monitoring.
Zabbix is an open-source monitoring software tool for diverse IT components, including networks, servers, virtual machines, and cloud services. Zabbix provides monitoring metrics, among others network utilization, CPU load, and disk space consumption.

Zabbix-agent2 is a new generation Zabbix-agent2 that comes with a lot of features. Zabbix agent2 is not available on package installation. You need to install it separately. Zabbix agent 5.0 comes with all these new features.
Below are the new features of Zabbix agent2.

  •  Build on go language
  •  reduce the number of TCP connections
  •  have greater check concurrency
  •  be easily extendible with plugins.

Here we show you how to install Zabbix-agent2 on centos 7

Step 1: Download the Zabbix package and install the dependency packages, For ubuntu, you can use support ubuntu packages

cd /tmp/
yum install -y wget pcre-devel gcc zlib-devel

Step 2: add zabbix user for the process

groupadd --system zabbix
useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c "Zabbix Monitoring System" zabbix

Step 3: Extract the package

tar -xvzf zabbix-5.0.2.tar.gz 
cd zabbix-5.0.2

Step 4: Download Go and configure

sudo tar -C /usr/local -xzf go1.13.15.linux-amd64.tar.gz

Step 5: Setup the Go binary path

echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
source /etc/profile

Step 6: Compile and install zabbix-agent2

./configure --enable-agent2
make install

Step 7: Configure the zabbix-agent2.conf

vi /usr/local/etc/zabbix-agent2.conf


Step 8: Start the Zabbix-agent2

cd /usr/local/sbin
./zabbix-agent2 &

Check the Zabbix agent log from /tmp/zabbix-agent2.log

Refer the doc for Zabbix-console configuration  how to setup Zabbix-agent

© 2020, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply