mirror of
https://github.com/okxlin/appstore.git
synced 2025-09-14 13:56:55 +08:00
feat:添加smokeping到列表
This commit is contained in:
parent
838eb49351
commit
61506aa217
6
apps/smokeping/2.8.2/.env.sample
Normal file
6
apps/smokeping/2.8.2/.env.sample
Normal file
@ -0,0 +1,6 @@
|
||||
CONTAINER_NAME="smokeping"
|
||||
PANEL_APP_PORT_HTTP="40213"
|
||||
DATA_PATH="./data"
|
||||
MASTER_URL="http://<master-host-ip>:40213/smokeping/"
|
||||
SHARED_SECRET=""
|
||||
TIME_ZONE="Asia/Shanghai"
|
39
apps/smokeping/2.8.2/data.yml
Normal file
39
apps/smokeping/2.8.2/data.yml
Normal file
@ -0,0 +1,39 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40213
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: http://<master-host-ip>:40213/smokeping/
|
||||
edit: true
|
||||
envKey: MASTER_URL
|
||||
labelEn: Master url
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
rule: paramHttp
|
||||
type: text
|
||||
- default: Asia/Shanghai
|
||||
edit: true
|
||||
envKey: TIME_ZONE
|
||||
labelEn: Time zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: SHARED_SECRET
|
||||
labelEn: Master shared secret (slave mode)
|
||||
labelZh: 主共享密钥 (从属模式)
|
||||
required: false
|
||||
type: text
|
26
apps/smokeping/2.8.2/docker-compose.yml
Normal file
26
apps/smokeping/2.8.2/docker-compose.yml
Normal file
@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
services:
|
||||
smokeping:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
image: linuxserver/smokeping:2.8.2
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${TIME_ZONE}
|
||||
- MASTER_URL=${MASTER_URL}
|
||||
- SHARED_SECRET=${SHARED_SECRET}
|
||||
- CACHE_DIR=/tmp
|
||||
volumes:
|
||||
- ${DATA_PATH}/config:/config
|
||||
- ${DATA_PATH}/data:/data
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
20
apps/smokeping/README.md
Normal file
20
apps/smokeping/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
[Smokeping](https://oss.oetiker.ch/smokeping/) keeps track of your network latency. For a full example of what this application is capable of visit [UCDavis](http://smokeping.ucdavis.edu/cgi-bin/smokeping.fcgi).
|
||||
|
||||
## Application Setup
|
||||
|
||||
* Once running, the URL will be `http://<host-ip>/smokeping/smokeping.cgi`. For example, a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`.
|
||||
* Basic setup: edit the `Targets` file to ping the hosts you're interested in to match the format found there.
|
||||
* Wait 10 minutes.
|
||||
* To reload the configuration without restarting the container, run `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `smokeping` is the container ID.
|
||||
* To restart the container, run `docker restart smokeping`, where `smokeping` is the container ID.
|
||||
* Note that the default `Targets` file includes items that may or may not work. These are simply to provide examples of configuration.
|
||||
* Slave setup: modify the `Targets`, `Slaves`, and `smokeping_secrets` files on the master host, per [the documentation](https://manpages.ubuntu.com/manpages/trusty/en/man7/smokeping_master_slave.7.html).
|
||||
|
||||
> 中文说明
|
||||
* 运行后,URL 将是 `http://<host-ip>/smokeping/smokeping.cgi`。例如,完整的 URL 可能是 `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`。
|
||||
* 基本设置:编辑 `Targets` 文件,ping 你感兴趣的主机,使其与文件中的格式一致。
|
||||
* 等待 10 分钟。
|
||||
* 要在不重启容器的情况下重新加载配置,请运行 `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'` ,其中 `smokeping` 是容器 ID。
|
||||
* 要重新启动容器,请运行 `docker restart smokeping`,其中 `smokeping` 是容器 ID。
|
||||
* 请注意,默认的 `Targets` 文件包含的项目可能有效,也可能无效。这些只是为了提供配置示例。
|
||||
* 从属设置:根据 [文档](https://manpages.ubuntu.com/manpages/trusty/en/man7/smokeping_master_slave.7.html),修改主主机上的 `Targets`、`Slaves` 和 `smokeping_secrets` 文件。
|
14
apps/smokeping/data.yml
Normal file
14
apps/smokeping/data.yml
Normal file
@ -0,0 +1,14 @@
|
||||
additionalProperties:
|
||||
key: smokeping
|
||||
name: Smokeping
|
||||
tags:
|
||||
- Tool
|
||||
shortDescZh: 一个豪华的延迟测量工具
|
||||
shortDescEn: A deluxe latency measurement tool
|
||||
type: tool
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 0
|
||||
website: https://oss.oetiker.ch/smokeping/
|
||||
github: https://github.com/linuxserver/docker-smokeping
|
||||
document: https://oss.oetiker.ch/smokeping/doc/index.en.html
|
6
apps/smokeping/latest/.env.sample
Normal file
6
apps/smokeping/latest/.env.sample
Normal file
@ -0,0 +1,6 @@
|
||||
CONTAINER_NAME="smokeping"
|
||||
PANEL_APP_PORT_HTTP="40213"
|
||||
DATA_PATH="./data"
|
||||
MASTER_URL="http://<master-host-ip>:40213/smokeping/"
|
||||
SHARED_SECRET=""
|
||||
TIME_ZONE="Asia/Shanghai"
|
39
apps/smokeping/latest/data.yml
Normal file
39
apps/smokeping/latest/data.yml
Normal file
@ -0,0 +1,39 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40213
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: http://<master-host-ip>:40213/smokeping/
|
||||
edit: true
|
||||
envKey: MASTER_URL
|
||||
labelEn: Master url
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
rule: paramHttp
|
||||
type: text
|
||||
- default: Asia/Shanghai
|
||||
edit: true
|
||||
envKey: TIME_ZONE
|
||||
labelEn: Time zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: SHARED_SECRET
|
||||
labelEn: Master shared secret (slave mode)
|
||||
labelZh: 主共享密钥 (从属模式)
|
||||
required: false
|
||||
type: text
|
26
apps/smokeping/latest/docker-compose.yml
Normal file
26
apps/smokeping/latest/docker-compose.yml
Normal file
@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
services:
|
||||
smokeping:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
image: linuxserver/smokeping:latest
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${TIME_ZONE}
|
||||
- MASTER_URL=${MASTER_URL}
|
||||
- SHARED_SECRET=${SHARED_SECRET}
|
||||
- CACHE_DIR=/tmp
|
||||
volumes:
|
||||
- ${DATA_PATH}/config:/config
|
||||
- ${DATA_PATH}/data:/data
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
BIN
apps/smokeping/logo.png
Normal file
BIN
apps/smokeping/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Loading…
Reference in New Issue
Block a user