Create a code example of zabbix monitoring system based on Dockerfile

Create a code example of zabbix monitoring system based on Dockerfile

Use the for loop to import the zabbix image into the container

for n in `ls *.tar.gz`;do docker load -i $n ;done
 
Run zabbix-server using docker
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" \
   -d mysql:5.7 \
   --character-set-server=utf8 --collation-server=utf8_bin
 
docker run --name zabbix-java-gateway -t \
   -d zabbix/zabbix-java-gateway:latest
 
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" \
   --link mysql-server:mysql \
   --link zabbix-java-gateway:zabbix-java-gateway \
   -p 10051:10051 \
   -d zabbix/zabbix-server-mysql:latest
 
docker run --name zabbix-web-nginx-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" \
   --link mysql-server:mysql \
   --link zabbix-server-mysql:zabbix-server \
   -p 80:80 \
   -d zabbix/zabbix-web-nginx-mysql:latest

Page visits:

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Zabbix monitoring docker application configuration
  • How to deploy zabbix_agent in docker
  • Detailed explanation of the process of installing Zabbix using Docker and configuring custom monitoring items

<<:  An article teaches you how to use js to achieve the barrage effect

>>:  CentOS7.5 installation of MySQL8.0.19 tutorial detailed instructions

Recommend

How to connect to MySQL visualization tool Navicat

After installing Navicat The following error may ...

jQuery plugin to implement stacked menu

A jQuery plugin every day - stacked menu, for you...

URL representation in HTML web pages

In HTML, common URLs are represented in a variety ...

Differentiate between null value and empty character ('') in MySQL

In daily development, database addition, deletion...

Deploy Varnish cache proxy server based on Centos7

1. Varnish Overview 1. Introduction to Varnish Va...

MySQL pessimistic locking and optimistic locking implementation

Table of contents Preface Actual Combat 1. No loc...

Centos8 builds nfs based on kdc encryption

Table of contents Configuration nfs server (nfs.s...

MySQL 8.0 can now handle JSON

Table of contents 1. Brief Overview 2. JSON basic...

mysql calculation function details

Table of contents 2. Field concatenation 2. Give ...

What does href=# mean in a link?

Links to the current page. ------------------- Com...

Docker builds kubectl image implementation steps

If the program service is deployed using k8s inte...

Mysql5.7.14 Linux version password forgotten perfect solution

In the /etc/my.conf file, add the following line ...