/ServerStatus

Primary LanguageMakefileApache License 2.0Apache-2.0

✨ Rust 版 ServerStatus 云探针

Docker Release GitHub issues GitHub Discussions GitHub release (latest SemVer) GitHub all releases

image

原始的 https://github.com/zdz/ServerStatus-Rust

自己复制上来就是图自己方便安装

其他的问题 去 https://github.com/zdz/ServerStatus-Rust 大家给他点个 star!

我只修改了 tgbot 地址,方便国内服务器也能成功通知 还改了安装脚本 只在debian11 用

# 安装 服务端
cd ~ && wget https://github.goken.top/jiuaiwo/ServerStatus/main/status.sh -O status.sh && bash status.sh -i -s

# 安装 客户端 配置采用了自动分组
cd ~ && wget https://github.goken.top/jiuaiwo/ServerStatus/main/status.sh -O status.sh && bash status.sh -un -c && bash status.sh -i -c  grpc://cn:111111@你的服务端IP:9394
# grpc://cn:andyou@你的服务端IP:9394          账号:密码
# 上面地址 对应config.toml
# hosts_group = [
#   {gid = "cn", password = "111111", location = "🇨🇳", type = "kvm", notify = true},
#   {gid = "hk", password = "111111", location = "🇭🇰", type = "kvm", notify = true},
#   {gid = "home", password = "111111", location = "🏠", type = "kvm", notify = true},
#   # 例如不发送通知可以单独做一组
#   {gid = "silent", password = "111111", location = "🏡", type = "kvm", notify = false},
# ]

# wechat, email, webhook 等其它通知方式 配置详细见 config.toml

# mac 客户端 ,windows 我运行不起
Python:
apt -y install python3-pip
python3 -m pip install psutil requests py-cpuinfo

cd ~ && wget https://github.goken.top/jiuaiwo/ServerStatus/main/client/stat_client.py -O stat_client.py && python3 stat_client.py -a "http://你的服务端IP:8080/report" -g 账号 -p 密码
# 更多用法:
❯ bash status.sh

help:
    -i,--install    安装 Status
        -i -s           安装 Server
        -i -c           安装 Client
        -i -c conf      自动安装 Client
    -up,--upgrade   升级 Status
        -up -s          升级 Server
        -up -c          升级 Client
        -up -a          升级 Server和Client
    -un,--uninstall  卸载 Status
        -un -s           卸载 Server
        -un -c           卸载 Client
        -un -a           卸载 Server and Client
    -rc,--reconfig      更改 Status 配置
        -rc          更改 Client 配置
        -rc conf         自动更改 Client配置
    -s,--server     管理 Status 运行状态
        -s {status|start|stop|restart}
    -c,--client     管理 Client 运行状态
        -c {status|start|stop|restart}
    -b,--bakup      备份 Status
        -b -s          备份 Server
        -b -c          备份 Client
        -b -a          备份 Server and Client
    -rs,--restore    恢复 Status
        -rs -s          恢复 Server
        -rs -c          恢复 Client
        -rs -a          恢复 Server and Client
    -h,--help       查看帮助
若无法访问 Github: 
    CN=true bash status.sh args