The Zabbix agent runs on hosts you want to monitor and collects metrics (CPU, memory, disk, network, etc.) for the Zabbix server. The agent must be installed on every host you add to Zabbix. It supports two check types: passive (the server asks the agent for data) and active (the agent pushes data to the server on a schedule).
This guide shows how to install and configure the Zabbix agent on OpenSUSE Leap 15.3 using the official Zabbix repository (Zabbix 5.4). For Zabbix 6, see the related article below.
Prerequisites
- OpenSUSE Leap 15.3 server with root or sudo access
- IP address of your Zabbix server or proxy (for
ServerandServerActive) - Hostname you will use when adding the host in Zabbix (must match the agent’s
Hostname)
Related Articles
- How to Add Host in Zabbix Server to Monitor
- How to Install Zabbix Agent 6 on OpenSUSE Leap 15.3
- How to Install Zabbix Agent on Rocky Linux/Alma Linux 8
- How to Install and Configure Zabbix Agent on Ubuntu 20.04
- How to Install and Configure Zabbix Server 6 on Ubuntu 20.04
1. Update System Packages
Refresh repositories and update the system:
| |
Optionally install useful tools:
| |
2. Install the Zabbix Agent
The Zabbix agent is not in the default OpenSUSE repositories. Add the official Zabbix repository for SLES 15 / Leap 15 (this guide uses Zabbix 5.4):
| |
Install the agent:
| |
Verify the installed version:
| |
3. Configure the Zabbix Agent
Edit the agent configuration and set the Zabbix server address and this host’s name:
| |
Set these parameters (use your Zabbix server or proxy IP and a hostname that matches what you will use in Zabbix):
| |
- Server: Comma-separated list of server/proxy IPs allowed to request data (passive checks).
- ServerActive: Comma-separated list of server/proxy IPs for active checks (agent pushes data).
- Hostname: Must match the host name you configure in the Zabbix frontend when adding this host.
Save and exit.
4. Adjust Firewall for Zabbix
The agent listens on port 10050/tcp. If firewalld is enabled, open it:
| |
(Only the Zabbix server needs port 10051; agents use 10050.)
5. Start and Enable the Zabbix Agent
Start the agent and enable it at boot:
| |
Check that it is running:
| |
You should see Active: active (running).
Next Steps
Add this host in the Zabbix frontend using the same Hostname as in the config (e.g. dev-susesrv), and link it to the Zabbix server’s interface. See How to Add Host in Zabbix Server to Monitor for the exact steps. After the host is added and the server can reach the agent, items will start collecting data.