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.debUbuntu 20.04
wget https://repo.zabbix.com/zabbix/5.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.2-1%2Bubuntu20.04_all.debInstall the repository
sudo dpkg -i zabbix-release_5.2-1%2Bubuntu20.04_all.debAnd afterwards update repositories.
sudo apt-get updateInstall the agent
sudo apt-get install zabbix-agentConfigure 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/*.confAfter we have configured the agent, we need to restart the agent.
sudo service zabbix-agent restartThis is all we have to do on our linux agent. The rest can be done on the zabbix web gui.