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
wget https://cdn.zabbix.com/zabbix/sources/stable/5.0/zabbix-5.0.2.tar.gz

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

wget https://golang.org/dl/go1.13.15.linux-amd64.tar.gz
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
Server= 192.168.10.33

Hostname=client-1

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.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

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

0 Comments

Leave a Reply

Keep ahead of COVID-19

Follow the below safety measures as precautionary steps to avoid COVID-19 1. Use face mask in public Places 2. Use Hand sanitizers 3. Maintain Social Distancing 4. Avoid going to crowded places 5. Avoid touching eyes, nose and mouth