Files
vps-management-bot/projects/oc-monitor/oc-monitor-post/copy.html
2026-03-21 01:10:53 +08:00

33 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<html><body><pre style="font-size:14px;white-space:pre-wrap;font-family:monospace;padding:20px">手上有几台 VPS 都跑着 OpenClaw想搞个统一的面板看看各节点状态。跟 OpenClaw 描述了一下需求,它直接帮我从零撸了一套出来,前后端+Agent 全包了。
## 效果
- 节点总览CPU/内存/磁盘/Swap 实时仪表盘
- 供应商矩阵:各节点 API 供应商健康状态、响应延迟
- 请求日志:完整 API 调用记录,输入/输出/缓存读写 Token 统计,分页+筛选
- WebSocket 实时推送10秒心跳
- 未登录可看脱敏面板IP隐藏Token 解锁完整视图
- 暗色/亮色主题切换
- 手机/桌面自适应
## 架构
ServerNode.js + SQLite + WebSocketDocker 一键部署
AgentBash + Python3每个节点装一个自动检测 OpenClaw 配置macOS/Linux 通吃
## 安装
Server
```bash
curl -sL https://git.088520.xyz/admin/oc-monitor/raw/branch/main/install.sh | bash
```
Agent
```bash
curl -sL https://git.088520.xyz/admin/oc-monitor/raw/branch/main/install-agent.sh | bash -s -- -s http://服务器IP:3800 -t TOKEN -n "节点名"
```
前端纯原生 HTML/CSS/JS零依赖单文件 ~300 行。Agent 也是零依赖Bash+Python3 搞定。</pre></body></html>