zabbix_install.sh
is a bash script designed to quickly install the docker version of Zabbix (https://www.zabbix.com)
for testing and/or small scale production purposes.
The script is menu based and will install and configure Docker as a swarm (so we can use secrets), set up the required volume directories and environment files for Zabbix containers and start the containers as a stack.
Here are the script installation tasks:
- Install Docker
- Setup Grafana
- Setup Zabbix
- Start Zabbix Stack
The following docker images are deployed via the included docker-compose.yml:
- Grafana-oss
- MariaDB-Server
- Zabbix-Agent
- Zabbix-Java-Gateway
- Zabbix-Server
- Zabbix-Web-Nginx-MySQL
This script was developed and tested on Ubuntu 22.04 LTS.
You can download zabbix_install.sh
by cloning this git repository:
git clone https://github.com/sonusboom/zabbix_installer.git
To Run:
chmod +x zabbix_install.sh`
sudo ./zabbix_install.sh
After you have installed Zabbix, log onto the server and do the following:
- Click on "Configuration" and then "Hosts"
- Click on "Zabbix server" and make the following change on "Interfaces"
- DNS name
zabbix-agent
- "Connect to" click
DNS
- Click
Update
- DNS name
- These changes will allow the Zabbix server to connect to the Zabbix agent
I am open to suggestions and improvement. Thanks!