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
sudo apt updatesudo apt installGet the repo
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu20.04_all.debInstall the repo, update, and install the Zabbix agent
sudo dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.debsudo apt updatesudo apt install zabbix-agentEdit the agent config file.
sudo vi /etc/zabbix/zabbix_agentd.confUpdate 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.testStart and enable the service.
sudo ufw allow from 10.255.2.0/24 to any port 10050 proto tcpsudo ufw allow from 10.255.2.0/24 to any port 10051 proto tcpsudo systemctl restart zabbix-agentsudo systemctl enable zabbix-agentThe 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
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*
Quick and simple monitoring for 2017 MSSQL server with Zabbix 7.0
Quick and simple guide for monitoring a 2017 MSSQL server with Zabbix 7.0 (current). Most of the documentation, blog posts, and forums I found on this…
VyOS High CPU Utilization with SNMP checks via Zabbix
I was working with VyOS 1.2 and 1.3 routers in a lab test. I wanted to wanted to monitor the underlying Linux/Debian objects and various routing process…