Zabbix is an enterprise-level monitoring software designed to monitor the status of various network services and servers. It helps troubleshoot issues and provides notifications of problems occurring within your systems.
- Install docker
#!/bin/bash
sudo apt update
sudo apt upgrade -y
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
- Get clone the zabbix docker compose files
git clone https://git.rdr-it.io/docker/zabbix.git
- Change to the env_vars directory to change passwords
cd env_vars
- Change .MYSQL_PASSWORD and .MYSQL_ROOT_PASSWORD files, change to a personalized password.
nano .MYSQL_PASSWORD
and
nano .MYSQL_ROOT_PASSWORD
- Start the docker compose and then go the web portal http://:8080
docker compose up
-
once you can login with username:admin and password:zabbix. Stop the docker container by using “Ctrl-C”
-
start the docker contianers as a demon
docker compose down && docker compose up -d
This quick guide walks you through installing Docker and setting up Zabbix using Docker Compose. Follow these steps to get your Zabbix environment up and running efficiently.