feat:添加zabbix-agent到测试

This commit is contained in:
okxlin 2023-07-12 05:30:00 +08:00
parent 3fe36dad2f
commit f2fb4bd7a3
11 changed files with 170 additions and 4 deletions

View File

@ -0,0 +1,5 @@
CONTAINER_NAME="zabbix-agent"
PANEL_APP_PORT_HTTP="10050"
HOSTNAME="127.0.0.1"
ZABBIX_SERVER="192.168.8.8"
ZABBIX_SERVER_PORT="10051"

View File

@ -0,0 +1,32 @@
additionalProperties:
formFields:
- default: 10050
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: 127.0.0.1
edit: true
envKey: HOSTNAME
labelEn: Native host name
labelZh: 本机主机名
required: true
type: text
- default: 192.168.8.8
edit: true
envKey: ZABBIX_SERVER
labelEn: Zabbix server
labelZh: Zabbix服务端
required: true
type: text
- default: 10051
edit: true
envKey: ZABBIX_SERVER_PORT
labelEn: Zabbix server P-port
labelZh: Zabbix服务端端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,20 @@
version: "3"
services:
zabbix-agent:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:10050"
environment:
- ZBX_HOSTNAME=${HOSTNAME}
- ZBX_SERVER_HOST=${ZABBIX_SERVER}
- ZBX_SERVER_PORT=${ZABBIX_SERVER_PORT}
image: zabbix/zabbix-agent:alpine-6.4.4
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-Agent
tags:
- 工具
title: 实时监控 IT 组件和服务(监控端)
type: 工具
description: 实时监控 IT 组件和服务(监控端)
additionalProperties:
key: zabbix-agent
name: Zabbix-Agent
tags:
- Tool
shortDescZh: 实时监控 IT 组件和服务(监控端)
shortDescEn: Real-time monitoring of IT components and services (Agent)
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,5 @@
CONTAINER_NAME="zabbix-agent"
PANEL_APP_PORT_HTTP="10050"
HOSTNAME="127.0.0.1"
ZABBIX_SERVER="192.168.8.8"
ZABBIX_SERVER_PORT="10051"

View File

@ -0,0 +1,32 @@
additionalProperties:
formFields:
- default: 10050
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: 127.0.0.1
edit: true
envKey: HOSTNAME
labelEn: Native host name
labelZh: 本机主机名
required: true
type: text
- default: 192.168.8.8
edit: true
envKey: ZABBIX_SERVER
labelEn: Zabbix server
labelZh: Zabbix服务端
required: true
type: text
- default: 10051
edit: true
envKey: ZABBIX_SERVER_PORT
labelEn: Zabbix server P-port
labelZh: Zabbix服务端端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,20 @@
version: "3"
services:
zabbix-agent:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:10050"
environment:
- ZBX_HOSTNAME=${HOSTNAME}
- ZBX_SERVER_HOST=${ZABBIX_SERVER}
- ZBX_SERVER_PORT=${ZABBIX_SERVER_PORT}
image: zabbix/zabbix-agent:alpine-latest
labels:
createdBy: Apps
networks:
1panel-network:
external: true

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -1,6 +1,6 @@
CONTAINER_NAME="zabbix-server"
PANEL_APP_PORT_HTTP="40047"
PANEL_APP_PORT_HTTP2="40048"
PANEL_APP_PORT_HTTP="10051"
PANEL_APP_PORT_HTTP2="40047"
PANEL_DB_HOST="127.0.0.1"
FLARUM_DB_PORT="3306"
PANEL_DB_NAME="zabbix"

View File

@ -48,7 +48,7 @@ additionalProperties:
required: true
rule: paramComplexity
type: password
- default: 40047
- default: 10051
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Gateway port
@ -56,7 +56,7 @@ additionalProperties:
required: true
rule: paramPort
type: number
- default: 40048
- default: 40047
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Port