feat:添加zabbix-server到测试

This commit is contained in:
okxlin 2023-07-12 04:35:53 +08:00
parent 7b92f7621c
commit 3fe36dad2f
9 changed files with 306 additions and 0 deletions

View File

@ -0,0 +1,8 @@
CONTAINER_NAME="zabbix-server"
PANEL_APP_PORT_HTTP="40047"
PANEL_APP_PORT_HTTP2="40048"
PANEL_DB_HOST="127.0.0.1"
FLARUM_DB_PORT="3306"
PANEL_DB_NAME="zabbix"
PANEL_DB_USER="zabbix"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"

View File

@ -0,0 +1,66 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: ZABBIX_DB_PORT
key: mysql
type: param
value: "3306"
#- envKey: ZABBIX_DB_PORT
# key: postgresql
# type: param
# value: "5432"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: zabbix
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 40047
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Gateway port
labelZh: 网关端口
required: true
rule: paramPort
type: number
- default: 40048
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,53 @@
version: "3"
services:
zabbix-server-mysql:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:10051"
environment:
- DB_SERVER_HOST=${PANEL_DB_HOST}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
- ZBX_JAVAGATEWAY=zabbix-java-gateway
image: zabbix/zabbix-server-mysql:alpine-6.4.4
depends_on:
- zabbix-java-gateway
labels:
createdBy: Apps
zabbix-java-gateway:
container_name: ${CONTAINER_NAME}-gateway
restart: always
networks:
- 1panel-network
image: zabbix/zabbix-java-gateway:alpine-6.4.4
labels:
createdBy: Apps
zabbix-web-nginx-mysql:
container_name: ${CONTAINER_NAME}-nginx
restart: always
networks:
- 1panel-network
environment:
- ZBX_SERVER_HOST=zabbix-server-mysql
- DB_SERVER_HOST=${PANEL_DB_HOST}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
ports:
- ${PANEL_APP_PORT_HTTP2}:8080
image: zabbix/zabbix-web-nginx-mysql:alpine-6.4.4
depends_on:
- zabbix-server-mysql
labels:
createdBy: Apps
networks:
1panel-network:
external: true

View File

@ -0,0 +1,32 @@
Zabbix is free software, released under the GNU General Public License
(GPL) version 2.
You can redistribute it and/or modify it under the terms of the GNU GPL
as published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The formal terms of the GPL can be found at
http://www.fsf.org/licenses/ .
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
Exception for linking with OpenSSL
In addition, as a special exception, we give permission to link the code
of Zabbix with the OpenSSL project OpenSSL library (or with modified
versions of it that use the same license as the OpenSSL library), and
distribute the linked executables.
Please see https://www.zabbix.com/ for detailed information about Zabbix.
On-line Zabbix documentation is available at
https://www.zabbix.com/documentation/6.2/manual/ .
Zabbix installation instructions can be found at
https://www.zabbix.com/documentation/6.2/manual/installation/ .
If you are installing Zabbix from packages the instructions can be found at
https://www.zabbix.com/documentation/6.2/manual/installation/install_from_packages/ .

View File

@ -0,0 +1,20 @@
name: Zabbix-Server
tags:
- 工具
title: 实时监控 IT 组件和服务
type: 工具
description: 实时监控 IT 组件和服务
additionalProperties:
key: zabbix-server
name: Zabbix-Server
tags:
- Tool
shortDescZh: 实时监控 IT 组件和服务(服务端)
shortDescEn: Real-time monitoring of IT components and services (Server)
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://www.zabbix.com/
github: https://github.com/zabbix/zabbix
document: https://www.zabbix.com/manuals

View File

@ -0,0 +1,8 @@
CONTAINER_NAME="zabbix-server"
PANEL_APP_PORT_HTTP="40047"
PANEL_APP_PORT_HTTP2="40048"
PANEL_DB_HOST="127.0.0.1"
FLARUM_DB_PORT="3306"
PANEL_DB_NAME="zabbix"
PANEL_DB_USER="zabbix"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"

View File

@ -0,0 +1,66 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: ZABBIX_DB_PORT
key: mysql
type: param
value: "3306"
#- envKey: ZABBIX_DB_PORT
# key: postgresql
# type: param
# value: "5432"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: zabbix
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 40047
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Gateway port
labelZh: 网关端口
required: true
rule: paramPort
type: number
- default: 40048
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,53 @@
version: "3"
services:
zabbix-server-mysql:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:10051"
environment:
- DB_SERVER_HOST=${PANEL_DB_HOST}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
- ZBX_JAVAGATEWAY=zabbix-java-gateway
image: zabbix/zabbix-server-mysql:alpine-latest
depends_on:
- zabbix-java-gateway
labels:
createdBy: Apps
zabbix-java-gateway:
container_name: ${CONTAINER_NAME}-gateway
restart: always
networks:
- 1panel-network
image: zabbix/zabbix-java-gateway:alpine-latest
labels:
createdBy: Apps
zabbix-web-nginx-mysql:
container_name: ${CONTAINER_NAME}-nginx
restart: always
networks:
- 1panel-network
environment:
- ZBX_SERVER_HOST=zabbix-server-mysql
- DB_SERVER_HOST=${PANEL_DB_HOST}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
#- MYSQL_ROOT_PASSWORD=root_pwd
ports:
- ${PANEL_APP_PORT_HTTP2}:8080
image: zabbix/zabbix-web-nginx-mysql:alpine-latest
depends_on:
- zabbix-server-mysql
labels:
createdBy: Apps
networks:
1panel-network:
external: true

BIN
apps/zabbix-server/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB