Zabbix Upgrade - llewellyn-marriott/notes GitHub Wiki
Ubuntu Setup
Follow guide to join Ubuntu to AD.
Install Docker and Docker Compose
Use official instructions
Git
Pull zabbix-docker repository
git clone https://github.com/Dulkeith/zabbix-docker.git /srv/zabbix-docker
cd /srv/zabbix-docker/
Edit environment file
cp example.env .env
vi .env
Editor monitor config
cp /srv/zabbix-docker/zabbix-tools/config-example.json /srv/zabbix-docker/zabbix-tools/config.json
vi /srv/zabbix-docker/zabbix-tools/config.json
Pull Zabbix Tools (Monitor, Lockouts etc) submodules
cd /srv/zabbix-docker/zabbix-tools
git submodule update --init
Copy database
Dump on old box
systemctl stop zabbix-server
mysqldump -u zabbix -p zabbix > ~/2import.sql
Note that the "zabbix" after the "-p" here is the database, not the password. You will be prompted to enter the password.
Copy to new
scp 2import.sql [email protected]:~
Move into init folder
mv ~/2import.sql /srv/zabbix-docker/zabbix-mariadb/init/
Start containers
docker-compose up -d
Check progress with
docker ps
docker logs -f containerid
Change IP
vi /etc/netplan/00-installer-config.yaml
netplan apply