Giter VIP home page Giter VIP logo

probe's Introduction

探针

本项目为原项目哪吒探针的修改版,目前使用的是自用精简版

GitHub Workflow Status Agent release GitHub Workflow Status shell

注意

  • 本项目与原项目不兼容!
  • 本项目配置文件与原项目不通用!

演示图

前台

首页截图

后台

后台截图

安装脚本

curl -L https://git.io/probe.sh -o probe.sh && chmod +x probe.sh
sudo ./probe.sh
国内镜像加速:
curl -L https://fastly.jsdelivr.net/gh/xos/probe@master/script/probe.sh -o probe.sh && chmod +x probe.sh
CN=true sudo ./probe.sh

* 使用 WatchTower 可以自动更新面板,Windows 终端可以使用 nssm 配置自启动。

非Docker环境手动部署控制面板

注意:

  • 需要安装Golang且版本需要1.18或以上。
  • 默认安装路径 /opt/probe/dashboard
  • 手动部署的面板暂无法通过脚本进行面板部分的控制操作。

1.克隆仓库

git clone https://github.com/xOS/Probe.git

2.下载依赖

cd Probe/
go mod tidy -v

3.编译,以AMD64架构为例

cd cmd/dashboard/
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o probe-dashboard -ldflags="-s -w"

4.部署面板为系统服务

mkdir -p /opt/probe/dashboard
mv probe-dashboard /opt/probe/dashboard/
cp /root/Probe/resource/ /opt/probe/dashboard/ -r
cd ../..
mkdir -p /opt/probe/dashboard/data
cp script/config.yaml /opt/probe/dashboard/data
cp script/probe-dashboard.service /etc/systemd/system

5.修改配置文件/opt/probe/dashboard/data/config.yaml,注册服务并启动

systemctl enable probe-dashboard
systemctl start probe-dashboard

通知方式

#NG# 是面板消息占位符,面板触发通知时会自动替换占位符到实际消息

Body 内容是JSON 格式的:当请求类型为 FORM 时,值为 key:value 的形式,value 里面可放置占位符,通知时会自动替换。当请求类型为 JSON 时 只会简进行字符串替换后直接提交到URL

URL 里面也可放置占位符,请求时会进行简单的字符串替换。

参考下方的示例,非常灵活。

添加通知方式

  • server 酱示例

    • 名称:server 酱
    • URL:https://sc.ftqq.com/SCUrandomkeys.send?text=#NG#
    • 请求方式: GET
    • 请求类型: 默认
    • Body: 空
  • wxpusher 示例,需要关注你的应用

    • 名称: wxpusher
    • URL:http://wxpusher.zjiecode.com/api/send/message
    • 请求方式: POST
    • 请求类型: JSON
    • Body: {"appToken":"你的appToken","topicIds":[],"content":"#NG#","contentType":"1","uids":["你的uid"]}
  • telegram 示例 @haitau 贡献

    • 名称:telegram 机器人消息通知
    • URL:https://api.telegram.org/botXXXXXX/sendMessage?chat_id=YYYYYY&text=#NG#
    • 请求方式: GET
    • 请求类型: 默认
    • Body: 空
    • URL 参数获取说明:botXXXXXX 中的 XXXXXX 是在 telegram 中关注官方 @Botfather ,输入/newbot ,创建新的机器人(bot)时,会提供的 token(在提示 Use this token to access the HTTP API:后面一行)这里 'bot' 三个字母不可少。创建 bot 后,需要先在 telegram 中与 BOT 进行对话(随便发个消息),然后才可用 API 发送消息。YYYYYY 是 telegram 用户的数字 ID。与机器人@userinfobot 对话可获得。

probe's People

Contributors

dependabot[bot] avatar xos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.