0% found this document useful (0 votes)
216 views2 pages

Installation Docker - Zabbix On Ubuntu (MySQL)

This document demonstrates how to install and run Zabbix monitoring software on Docker using Ubuntu. It describes starting a MySQL database server instance, Zabbix Java gateway instance, Zabbix server instance linked to the MySQL server, and Zabbix web interface instance linked to the MySQL and Zabbix server instances on a Docker network. All instances are configured to autostart and be accessible on ports 80 and 10051.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
216 views2 pages

Installation Docker - Zabbix On Ubuntu (MySQL)

This document demonstrates how to install and run Zabbix monitoring software on Docker using Ubuntu. It describes starting a MySQL database server instance, Zabbix Java gateway instance, Zabbix server instance linked to the MySQL server, and Zabbix web interface instance linked to the MySQL and Zabbix server instances on a Docker network. All instances are configured to autostart and be accessible on ports 80 and 10051.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

=========================================

=== Install Zabbix on Docker [Ubuntu] ===


=========================================
The example demonstrates how to run Zabbix server with MySQL database support,
Zabbix web interface based on the Nginx web server and Zabbix Java gateway.

[Create Network]
rgx@rgxserver:~$ docker network create --subnet 172.20.0.0/16 --ip-range
172.20.0.240/20 zabbix-net

[Start empty MySQL server Instance]


rgx@rgxserver:~$ docker run --name mysql-server -t \
> -e MYSQL_DATABASE="zabbix" \
> -e MYSQL_USER="zabbix" \
> -e MYSQL_PASSWORD="zabbix_pwd" \
> -e MYSQL_ROOT_PASSWORD="root_pwd" \
> --network=zabbix-net \
> -d mysql:latest \
> --restart unless-stopped \
> --character-set-server=utf8 --collation-server=utf8_bin \
> --default-authentication-plugin=mysql_native_password

[Start Zabbix Java gateway Instance]


rgx@rgxserver:~$ docker run --name zabbix-java-gateway -t \
> --network=zabbix-net \
> --restart unless-stopped \
> -d zabbix/zabbix-java-gateway:alpine-6.2-latest

[Start Zabbix Server Instance and link Instance with Create MySQL Server Instance]
rgx@rgxserver:~$ docker run --name zabbix-server-mysql -t \
> -e DB_SERVER_HOST="mysql-server" \
> -e MYSQL_DATABASE="zabbix" \
> -e MYSQL_USER="zabbix" \
> -e MYSQL_PASSWORD="zabbix_pwd" \
> -e MYSQL_ROOT_PASSWORD="root_pwd" \
> -e ZBX_JAVAGATEWAY="zabbix-java-gateway" \
> --network=zabbix-net \
> -p 10051:10051 \
> --restart unless-stopped \
> -d zabbix/zabbix-server-mysql:alpine-6.2-latest

[Start Zabbix web Interface and link the Instance with created MySQL server and
Zabbix server Instances]
rgx@rgxserver:~$ # docker run --name zabbix-web-nginx-mysql -t \
> -e ZBX_SERVER_HOST="zabbix-server-mysql" \
> -e DB_SERVER_HOST="mysql-server" \
> -e MYSQL_DATABASE="zabbix" \
> -e MYSQL_USER="zabbix" \
> -e MYSQL_PASSWORD="zabbix_pwd" \
> -e MYSQL_ROOT_PASSWORD="root_pwd" \
> --network=zabbix-net \
> -p 80:8080 \
> --restart unless-stopped \
> -d zabbix/zabbix-web-nginx-mysql:alpine-6.2-latest

You might also like