-#################################-
----------mysql分区+全中文模板-------------
-#################################-
效果图
[root@localhost zabbix_docker]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
zabbix-server-mysql centos-6.0-latest 5bbe1784ca86 4 days ago 889MB
zabbix-web-service centos-6.0-latest 302c32090933 4 days ago 732MB
zabbix-proxy-mysql centos-6.0-latest 2af003bb178b 4 days ago 673MB
zabbix-java-gateway centos-6.0-latest 6825b642100d 4 days ago 720MB
zabbix-snmptraps centos-6.0-latest d444eab79de1 4 days ago 601MB
zabbix-agent2 centos-6.0-latest ddb84f925c55 4 days ago 615MB
mariadb 10.5.19-focal cfe0a83e48d5 8 days ago 392MB
zabbix-web-nginx-mysql centos-6.0-latest 64081ecac82f 6 weeks ago 774MB
quay.io/centos/centos stream8 6a97c47aacfc 3 months ago 513MB
[root@localhost zabbix_docker]#
[root@localhost zabbix_docker]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
977e75774418 zabbix-web-nginx-mysql:centos-6.0-latest "docker-entrypoint.sh" 15 minutes ago Up 15 minutes (healthy) 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp zabbix_docker-zabbix-web-nginx-mysql-1
0770a23343e9 zabbix-server-mysql:centos-6.0-latest "/usr/bin/tini -- /u…" 15 minutes ago Up 15 minutes 0.0.0.0:10051->10051/tcp, :::10051->10051/tcp zabbix_docker-zabbix-server-1
98aecf59d879 zabbix-agent2:centos-6.0-latest "/usr/bin/tini -- /u…" 15 minutes ago Up 15 minutes 0.0.0.0:10050->10050/tcp, :::10050->10050/tcp, 31999/tcp zabbix_docker-zabbix-agent2-1
ec9e9cd0ed74 zabbix-java-gateway:centos-6.0-latest "docker-entrypoint.s…" 15 minutes ago Up 15 minutes zabbix_docker-zabbix-java-gateway-1
d0d7d7977b99 zabbix-snmptraps:centos-6.0-latest "/usr/sbin/snmptrapd…" 15 minutes ago Up 15 minutes 0.0.0.0:162->1162/udp, :::162->1162/udp zabbix_docker-zabbix-snmptraps-1
b72cdae7ba93 zabbix-web-service:centos-6.0-latest "docker-entrypoint.s…" 15 minutes ago Up 15 minutes zabbix_docker-zabbix-web-service-1
0b8819153360 mariadb:10.5.19-focal "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp zabbix_docker-mysql-server-1
[root@localhost zabbix_docker]#
集成全中文模板
执行如下命令进行git安装
yum -y install git
执行如下命令克隆docker安装中文版zabbix项目
ZBX_SOURCES=https://NoYoWiFi:agp_66c5fe553765c414b8de0886f668b5f7@codeup.aliyun.com/636defa3f003e3b7bb5cae22/zabbix_docker/zabbix_chinese.git
ZBX_VERSION=6.0-latest
ZBX_NAME=zabbix_docker-${ZBX_VERSION}
ZBX_DIR=/opt
cd ${ZBX_DIR}
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch ${ZBX_DIR}/${ZBX_NAME}
chmod 755 -R ${ZBX_DIR}/${ZBX_NAME}
cd ${ZBX_DIR}/${ZBX_NAME}
执行如下命令安装docker服务
sh update_config-entrypoint_mysql.sh init
执行如下命令下载docker镜像
sh update_config-entrypoint_mysql.sh down
执行如下命令初始化配置文件
sh update_config-entrypoint_mysql.sh cp
执行如下命令启动docker容器
sh update_config-entrypoint_mysql.sh start
打开网页输入服务器IP地址访问zabbix
用户名: Admin
密码: zabbix
存储位置
映射的卷位于当前文件夹的zbx_env目录
修改历史数据存储周期
管理 -> 一般 -> 管家
历史记录
开启内部管家
覆盖监控项历史期间 √
数据存储期 90d
趋势
开启内部管家
覆盖监控项历史期间 √
数据存储期 365d
存储位置
映射的卷位于当前文件夹的zbx_env目录
全文完结