Zabbix agent is installed on the remote host (target) to monitor the hard drive, memory processor, etc. The agent collects data and sends back to Zabbix Server.
Zabbix agents can use passive or active checks to pass information. In passive check, Zabbix server (poller) requests an agent for certain information, and the agent sends back a value. In the active check, the agent process all data and pushes it to the Zabbix server. However, agent periodically connects the server to collect metric which needs to be monitored.
We will begin by installing Zabbix agent to the remote Ubuntu 20.04 host and later add a host to Zabbix server dashboard.
Step 1: Enable Zabbix repository on remote host
Begin by updating the package lists on the remote host.
sudo apt update
Then download the Zabbix repository Debian file from Zabbix download center as follows.
wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
Then enable it using the dpkg command as follows:
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
Next, update the package index to ensure the repository is synced