Hamsa K
Editor
2 min read | 3 months ago

How to Install Zabbix Agent on Centos 7

How to Install Zabbix Agent on Centos 7

Zabbix Agent collects the data from the client machine such as resource statistics, application data, etc.. and sends them to the Zabbix Server.

Step 1: Add zabbix agent repository

##################### Centos 7 ###################################################
rpm -ivh http://repo.zabbix.com/zabbix/4.3/rhel/7/x86_64/zabbix-release-4.3-3.el7.noarch.rpm
###################### Centos 6 ###################################################
rpm -ivh http://repo.zabbix.com/zabbix/4.3/rhel/6/x86_64/zabbix-release-4.3-3.el6.noarch.rpm
###################### Ubuntu 18.04 ###############################################
wget http://repo.zabbix.com/zabbix/4.3/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.3-1%2Bbionic_all.deb
dpkg -i zabbix-release_4.3-1+bionic_all.deb
apt update

Step 2: Install zabbix Agent

### CentOS 7/6 & RHEL 7/6 ###
yum install -y zabbix-agent
### Ubuntu 18.04 / 16.04 & Debian 9/8 ###
apt-get install -y zabbix-agent

Step 3: Configure zabbix Agent

Edit the Zabbix agent file to specify the Zabbix Server details.

vi /etc/zabbix/zabbix_agentd.conf

Update the following details on the Zabbix agent file.

Server=192.168.0.13
ServerActive=192.168.0.13
Hostname=node2
Note: 
Server=IP of Zabbix Server ServerActive=IP of Zabbix Server Hostname=use the FQDN of the node where the agent runs

Run the following command to restart the Zabbix agent.
systemctl restart zabbix-agent
Enable zabbix-agent to start automatically on system boot.
### CentOS 7 / RHEL 7 / Ubuntu 18.04 / Debian 9 ###
systemctl enable zabbix-agent
### CentOS 6 / RHEL 6 ###
chkconfig zabbix-agent on
### Ubuntu 16.04 / Debian 8 ###
update-rc.d zabbix-agent enable






Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy