Monitoring

Install Zabbix Agent on Ubuntu 20.04

Posted February 27, 2022

By Kevin Schwickrath1 min read

I’m running Zabbix 6.0 through my lab at the moment. To properly test, I’d also like to install the latest Zabbix agent on my test servers.

Install all available updates

Terminal window
sudo apt update
sudo apt install

Get the repo

Terminal window
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu20.04_all.deb

Install the repo, update, and install the Zabbix agent

Terminal window
sudo dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb
sudo apt update
sudo apt install zabbix-agent

Edit the agent config file.

Terminal window
sudo vi /etc/zabbix/zabbix_agentd.conf

Update the following config lines, change the values for your environment.

Server=10.255.2.12
ListenIP=0.0.0.0
ServerActive=10.255.2.12
Hostname=web1.lab.test

Start and enable the service.

Terminal window
sudo ufw allow from 10.255.2.0/24 to any port 10050 proto tcp
sudo ufw allow from 10.255.2.0/24 to any port 10051 proto tcp
sudo systemctl restart zabbix-agent
sudo systemctl enable zabbix-agent

The agent should be installed and running.

This post is licensed under CC BY 4.0 by the author.

Related Posts

Upgrade Zabbix Agent to Agent 2

Monitoring · Oct 2, 2024 · 2 min read

Out with the old, in with the new. Memory-safe is all the rage. Let's upgrade to Zabbix Agent 2 with "Go Technology!" \some parts in C*