diff --git a/apps/zabbix-server/6.4.4/.env.sample b/apps/zabbix-server/6.4.4/.env.sample new file mode 100644 index 00000000..0e81adb6 --- /dev/null +++ b/apps/zabbix-server/6.4.4/.env.sample @@ -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" \ No newline at end of file diff --git a/apps/zabbix-server/6.4.4/data.yml b/apps/zabbix-server/6.4.4/data.yml new file mode 100644 index 00000000..4b945f60 --- /dev/null +++ b/apps/zabbix-server/6.4.4/data.yml @@ -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 diff --git a/apps/zabbix-server/6.4.4/docker-compose.yml b/apps/zabbix-server/6.4.4/docker-compose.yml new file mode 100644 index 00000000..c157cba6 --- /dev/null +++ b/apps/zabbix-server/6.4.4/docker-compose.yml @@ -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 diff --git a/apps/zabbix-server/README.md b/apps/zabbix-server/README.md new file mode 100644 index 00000000..2035c7bd --- /dev/null +++ b/apps/zabbix-server/README.md @@ -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/ . \ No newline at end of file diff --git a/apps/zabbix-server/data.yml.bak b/apps/zabbix-server/data.yml.bak new file mode 100644 index 00000000..d73ca98f --- /dev/null +++ b/apps/zabbix-server/data.yml.bak @@ -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 diff --git a/apps/zabbix-server/latest/.env.sample b/apps/zabbix-server/latest/.env.sample new file mode 100644 index 00000000..0e81adb6 --- /dev/null +++ b/apps/zabbix-server/latest/.env.sample @@ -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" \ No newline at end of file diff --git a/apps/zabbix-server/latest/data.yml b/apps/zabbix-server/latest/data.yml new file mode 100644 index 00000000..4b945f60 --- /dev/null +++ b/apps/zabbix-server/latest/data.yml @@ -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 diff --git a/apps/zabbix-server/latest/docker-compose.yml b/apps/zabbix-server/latest/docker-compose.yml new file mode 100644 index 00000000..321313a4 --- /dev/null +++ b/apps/zabbix-server/latest/docker-compose.yml @@ -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 diff --git a/apps/zabbix-server/logo.png b/apps/zabbix-server/logo.png new file mode 100644 index 00000000..8cabcacd Binary files /dev/null and b/apps/zabbix-server/logo.png differ