Zabbix Agent installation on Ubuntu Server 22.04

This procedure covers 6.0x installations

SSH to your server and get root privileges.

Download the .deb package from the Zabbix website

wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bubuntu22.04_all.deb

Install the package that adds to the source list an update the package indexes

dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb

apt update

Install the agent

apt install zabbix-agent

Configure the agent. I use nano but you can use the editor of your choice

nano /etc/zabbix/zabbix_agentd.conf

Search and edit

– Server=IP address or FQDN of the Zabbix Server
– ServerActive=IP address or FQDN of the Zabbix Server
– Hostname=The hostname of the server as configured on the Zabbix server

Save and exit

And enable the agent as a service

systemctl restart zabbix-agent

systemctl enable zabbix-agent

Check the installation with

systemctl status zabbix-agent

If it is active and running you are all set. Do not forget to add the host to the Zabbix Server inventory.

Leave a Reply

Your email address will not be published. Required fields are marked *