April 12, 2026
Tutorials

How to Install Zabbix Agent on Ubuntu 24.04

Install zabbix agent on Ubuntu 24.04

Monitoring your server’s performance and uptime is crucial to ensuring its security and reliability. Installing the Zabbix agent on a Ubuntu VPS is the best way to monitor the server’s health, system resources, and services. Zabbix, when configured correctly, ensures that your Ubuntu 24.04 VPS is secure, efficient, and constantly monitored. The Zabbix Agent collects metrics from a monitored system. This data is sent securely to the Zabbix Server, which can be used for alerting and analysis.

This guide will show you how to install Zabbix Agent, configure it properly, and connect it with a Zabbix Server. It is perfect for VPS monitoring and Linux server monitoring.

Table of Content

What Is a Zabbix Agent?

Zabbix Agent, which provides accurate data and minimal performance overhead, is widely used to monitor Ubuntu VPS servers. Zabbix is seamlessly integrated with Ubuntu 24.04 LTS, a popular VPS and Cloud Server. Zabbix Agent is ideal for production environments because it provides real-time monitoring and early issue detection. It also sends automated alerts.

How to Install Zabbix Agent on Ubuntu 24.04 VPS?

Installing Zabbix Agent is an important step towards proactive server monitoring. This setup allows you to track performance, avoid downtime, and maintain a stable environment for your VPS.

Prerequisites

Be sure that your system meets these requirements before you begin the installation.

You will need an Ubuntu 24.04 running VPS, root access or sudo, a Zabbix server configured, and a reliable internet connection.

To install Zabbix Agent on Ubuntu 24.04 VPS, follow the steps below:

Step 1: Update Ubuntu 24.04 System Packages

Update your system software to ensure compatibility.

sudo apt update

This command installs and updates the latest security updates and dependencies. By keeping the system up-to-date, package conflicts can be avoided during Zabbix agent installation.

Step 2: Add the Official Zabbix Repository

Ubuntu’s default repositories might not contain the latest Zabbix package, so you will need to add the official Zabbix repo.

wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu24.04_all.deb

This step will add the official Zabbix repositories to your Ubuntu 24.04 Virtual Server.

sudo dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb

Let’s update packages. This ensures that you are installing a Zabbix Agent supported by Zabbix.

sudo apt update

Step 3: Install Zabbix Agent on Ubuntu 24.04

Install the Zabbix agent package after adding the repository.

sudo apt install zabbix-agent -y

This command installs Zabbix Agent and its dependencies. The agent is optimised for VPS servers to use low resources.

Step 4: Configure Zabbix Agent

The Zabbix agent configuration file controls the way the agent communicates with the Zabbix server.

sudo nano /etc/zabbix/zabbix_agentd.conf

Update the following parameters:

Server=ZABBIX_SERVER_IP

ServerActive=ZABBIX_SERVER_IP

Hostname=server_name

These settings enable active monitoring and assign a unique hostname for the VPS. They also define the Zabbix server IP. The hostname configured in Zabbix must match exactly.

Step 5: Allow Zabbix Agent Port Through Firewall

You must allow traffic from the Zabbix Agent if the UFW firewall is activated.

sudo ufw allow 10050/tcp

The Zabbix Agent uses port 10050 to communicate with the server. This port is required to ensure data transfer between your VPS server and Zabbix Server.

Step 6: Start and Enable Zabbix Agent Service

Start the Zabbix agent service and set it to automatically start on boot.

sudo systemctl start zabbix-agent

sudo systemctl enable zabbix-agent

Check your service status:

sudo systemctl status zabbix-agent

The Zabbix Agent will then run continuously and start automatically when the system is rebooted. Status check ensures the agent is running and active.

Step 7: Add Ubuntu 24.04 VPS Host in Zabbix Server

Log in to the Zabbix interface on your web browser and add your virtual private server as a monitored host.

Navigate to Monitoring > Hosts > Create host. Enter the VPS IP and hostname, assign a Group, and link the Linux agent template.

Zabbix Server can receive and display monitoring information by adding the host. The Linux template enables all essential metrics to monitor Ubuntu servers.

Step 8: Test Zabbix Agent Connectivity

Zabbix, an open-source enterprise-grade monitoring tool, is trusted around the world. It integrates seamlessly with Ubuntu Linux servers, offers advanced dashboards, and scales easily. Verify the Zabbix agent is accessible from the Zabbix server.

The Zabbix Agent responds correctly. This indicates that the network is connected and configured correctly.

Common Zabbix Agent Issues and Troubleshooting

If the agent cannot connect, check firewall rules, server IP configuration, and hostname consistency.

Use logs to identify errors related to the service.

journalctl -u zabbix-agent

That is all from the guide.

Conclusion

To install Zabbix Agent on Ubuntu 24.04 VPS, update the system, add the official Zabbix repository, install the Zabbix Agent package, configure the agent with the Zabbix Server IP and hostname, allow port 10050 in the firewall, start and enable the agent service, and finally add the VPS as a host in the Zabbix Server using the Linux by Zabbix agent template. Monitor CPU, memory, and disk usage and use active checks in cloud environments. Configure alerts to receive notifications of issues before they impact the server’s performance.

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video