Install zabbix agent on linux
by sij /
Goal
We will install the zabbix agent on Debian 10 and Ubuntu 20.04 for the Zabbix Version 5.2.
Install zabbix repository
First we need to configure the zabbix repository, for installing the zabbix agent.
Download repo
Debian 10
wget https://repo.zabbix.com/zabbix/5.2/debian/pool/main/z/zabbix-release/zabbix-release_5.2-1%2Bdebian10_all.deb
Ubuntu 20.04
wget https://repo.zabbix.com/zabbix/5.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.2-1%2Bubuntu20.04_all.deb
Install the repository
sudo dpkg -i zabbix-release_5.2-1%2Bubuntu20.04_all.deb
And afterwards update repositories.
sudo apt-get update
Install the agent
sudo apt-get install zabbix-agent
Configure the agent
To work proeprly, we need to edit the config file /etc/zabbix/zabbix_agentd.conf
.
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=IP-OF-THE-ZABBIX-SERVER
ServerActive=127.0.0.1
Hostname=NAME-OF-THE-HOST
Include=/etc/zabbix/zabbix_agentd.d/*.conf
After we have configured the agent, we need to restart the agent.
sudo service zabbix-agent restart
This is all we have to do on our linux agent. The rest can be done on the zabbix web gui.