Installing Zabbix Agent 2 on Ubuntu 22.04
Table of Contents
This is the current configuration that I needed at the time. Yours may differ. Should there be a need for confiuration that’s more specific. Please utilize the Zabbix Downloads URL in the References section.
wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
Once the installer has been downloaded. Use the dpkg command to install the .deb package for the repository.
dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
Update the system.
apt update
Install the zabbix agent package.
apt install zabbix-agent2
If need be. Install the zabbix agent and zabbix agent plugin.
apt install zabbix-agent2 zabbix-agent2-plugin-*
Allow 10050 TCP through the firewall.
ufw allow 10050/tcp
Will want to edit the following configuration entries in the
/etc/zabbix/zabbix_agent2.conf
. This is so the agent points to the
appropriate server.
There are some other things to keep in mind also. Once this is complete. You’ll need to create the host in the monitoring tab on the Zabbix server.
The Server configuration parameter is for passive checks.
Server=
The ServerActive configuration is for the active checks.
ServerActive=
Set the Hostname to the name of the current server you’re monitoring.
Hostname=
Restart the zabbix-agent service.
systemctl restart zabbix-agent2.service
When this is complete. Check to see if data is populating in the graphs. Verify there aren’t any problems in the Zabbix portal as well.