Zabbix for Ubuntu 24.04 Server
Automated Bash installer script for deploying Zabbix on Ubuntu 24.04 Server.
Prerequisites
Nginx with PHP-FPM as well as MariaDB. Nginx with PHP-FPM can be installed from here and MariaDB from here.
Note
Maintaining this is tricky since Zabbix frequently changes download paths and details. I’ll do my best to keep this repo up to date, but I can’t guarantee it will always work.
Download the Script
git clone https://git.x-files.dk/web-application/zabbix-ubuntu.git
Usage
cd zabbix-ubuntu
sudo ./zabbixinstall [-n] <domain name> [-p] <zabbix database pwd>
Example
sudo ./zabbixinstall -n zabbix.something.xyz -p zabbixdatabasepwd
This creates a Zabbix site running on port 80 with the domain name you chose. For an HTTPS setup, see the example Nginx config here.
Configuration
Once the script is done, browse to:
http://zabbix.something.xyz
and fill out the mandatory fields marked in green.
Post-install
Nothing to do.
Troubleshooting
Most issues are likely due to differences in Nginx configuration. If you encounter problems, compare with the Nginx configuration I use here and the default sites-enabled config here.
Q and A
Q: Why does the script need the MariaDB root password?
A: To create the Zabbix database and set the correct permissions.
More Guides
More guides can be found on wiki.x-files.dk