To configure the agent, first you need to find your OS versions you're working with.
cat /etc/os-release
Download the Zabbix Repository Package
https://www.zabbix.com/download
One thing to watch out for: sometimes the wget command shown on the download page doesn't automatically update to match the exact version, distribution, or OS release you've selected. If that happens, you may need to manually adjust the repository URL. You may need to rewrite the wget repo url as shown in the next commands.
Incase if the version you are looking for doesn't appear in the download page, check out the following agent repo page and download the required release package manually by writing a wget command:
Zabbix agent repo: https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/
For example, to download & install the Zabbix 5.0 repository package on Debian 11:
wget
https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-2+debian11_all.deb
sudo dpkg -i
zabbix-release_5.0-2+debian11_all.deb
sudo apt update
sudo apt install zabbix-agent
Configure the Zabbix Agent
Open the agent configuration file from the following location and update the required parameters such as the Zabbix Server IP address and Hostname
sudo vim /etc/zabbix/zabbix_agentd.conf
When you have finished configuring, restart and enable the zabbix agent process to bring up the service and to start the service during a system reboot.
Incase if you want to troubleshoot anything with zabbix agent, logs can be found on this location:
/var/log/zabbix-agent/
0 Comments