Skip to main content

Install Zabbix Agent Ubuntu

Ubuntu 20.04

sudo https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bfocal_all.deb 
deb
sudo apt update 
update
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb 
deb

Ubuntu 18.04

wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bbionic_all.deb 
sudo apt update 
update
dpkg -i zabbix-release_5.0-1+bionic_all.deb

Ubuntu 16.04

wget http://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bxenial_all.deb 
sudo apt update 
update
dpkg -i zabbix-release_5.0-1+xenial_all.deb

Ubuntu 14.04

wget http://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Btrusty_all.deb 
sudo apt update 
update
dpkg -i zabbix-release_5.0-1+trusty_all.deb

Install Agent

sudo apt install zabbix-agent

Configure Zabbix Agent

Edit the zabbix configuration file and add sever details into it

sudo nano /etc/zabbix/zabbix_agentd.conf

Add below settings into it

Server=192.168.100.51

Hostname=zabbix.fosstechnix.local

save the file and close

Restart and enable zabbix agent service

sudo systemctl restart zabbix-agent
sudo systemctl enable zabbix-agent

start/stop/check status of zabbix agent service

sudo systemctl start zabbix-agent

sudo systemctl stop zabbix-agent 

sudo systemctl status zabbix-agent

Configure TLS with PSK