All projects
Zabbix Agent
ToolAutomated Zabbix Agent 2 installation.
- Year
- 2025
- Role
- Open-source tool
- Context
- Infrastructure automation
Technologies: Shell, Zabbix 7.4, Debian, Ubuntu, systemd
Overview
A script that installs and configures Zabbix Agent 2 on Debian or Ubuntu servers. It detects the distribution and version, installs the official Zabbix 7.4 repository, configures active and passive server addresses, and enables the systemd service.
What the script does
- Reads the distribution and version from /etc/os-release.
- Installs the matching official Zabbix 7.4 repository.
- Installs the zabbix-agent2 package.
- Configures Server, ServerActive, and the local hostname.
- Enables and restarts the service with systemd.
sudo bash install-zabbix-agent.sh zabbix.example.comLimitations
- The script pins the Zabbix series to 7.4.
- Only apt-based distributions are supported.
- TLS PSK, auto-registration metadata, and additional parameters must be configured separately.