ServerStatus
About
之前折腾过 Prometheus + Grafana 的服务器状态监控,一直用的都还不错,只不过感觉确实太重了,监控的项目非常多,而我日常并不需要监控这么多项目
于是我又给服务器装上了 ServerStatus,这个是和哪吒差不多的监控,但是比哪吒轻量许多,没有 webssh 等多余的功能,是一个单纯的服务器监控,并且完全开源
这里我选择的是其中一个基于 Rust 重写的版本,功能更强,性能更高
Installation
Server
1 | mkdir -p /opt/ServerStatus && cd /opt/ServerStatus |
修改配置文件:
admin_user = "<Username>"
:管理员用户名admin_pass = "<Password>"
:管理员密码{name = "<Client Name>", password = "<Client Password>", alias = "<Client Display Name>", location = "<Country Code>", type = "<Platform>", labels = "os=<OS>;ndd=<Date>;spec=<CPU Cores>C/<Memory>G/<Disk>G;"}
<Client Name>
:客户端名称,每台唯一<Client Password>
:客户端密码,须与客户端配置对应<Client Display Name>
:客户端显示的名字<Country Code>
:客户端所在国家二字母代码,如CN
US
<Platform>
:客户端平台,如arm
x86
kvm
ovz
os=<OS>;ndd=<Date>;spec=<CPU Cores>C/<Memory>G/<Disk>G;
:客户端系统信息,如os=ubuntu;ndd=2025/01/31;spec=1C/2G/20G;
Client
1 | mkdir -p /opt/ServerStatus && cd /opt/ServerStatus |
替换这行:
1 | ExecStart=/opt/ServerStatus/stat_client -a "https://<domain>:8080/report" -u "<Client Name>" -p "<Client Password>" -n |
1 | systemctl daemon-reload |
About this Post
This post is written by OwlllOvO, licensed under CC BY-NC 4.0.