← 返回 Skills 市场
binyuli

traffic-monitor

作者 binyuli · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
207
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install traffic-monitor
功能描述
监控服务器指定网卡月度网络流量,定期生成使用报告并在流量超过80%阈值时提供警告。
安全使用建议
This skill appears to do what it says: generate monthly traffic reports using vnstat and optionally show realtime cumulative stats. Before installing or running: 1) Ensure vnstat is installed and running (vnstat uses /var/lib/vnstat by default). 2) Be aware the included script writes state to /root/.openclaw/workspace/memory/traffic-state.json — if you run the agent as a non-root user you may need to change STATE_FILE in the script or run as a user with write permission to that path. 3) The script calls the local vnstat binary and reads /proc/net/dev only as a fallback (those are local operations; there are no external network calls). 4) If you want different interface, monthly limit, or state location, edit INTERFACE, MONTHLY_LIMIT_GB, or STATE_FILE in traffic_report.py. 5) If you need tighter review, verify the script contents yourself (it is short and straightforward) and confirm any automation (heartbeat) will run under an account that has permission to run vnstat and write the state file.
功能分析
Type: OpenClaw Skill Name: traffic-monitor Version: 1.0.0 The traffic-monitor skill is a legitimate utility designed to track network usage via the standard 'vnstat' tool. The script traffic_report.py safely retrieves local interface statistics from /proc/net/dev and vnstat, uses a local JSON file for state persistence, and contains no evidence of data exfiltration, command injection, or malicious intent.
能力评估
Purpose & Capability
Name and description claim monthly network traffic monitoring; the SKILL.md and traffic_report.py both use vnstat and /proc/net/dev to produce monthly and cumulative reports. The requested items (vnstat, systemctl commands) align with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to run vnstat and the included script and to check vnstat service status — all within scope. Note: the script writes a state file at /root/.openclaw/workspace/memory/traffic-state.json (not mentioned in SKILL.md), and the fallback to /proc/net/dev is only a cumulative since-boot view (the code does avoid using it as monthly data). Running the script as a non-root user may fail to create or write the state file as currently configured.
Install Mechanism
No install spec (instruction-only with a single included script). Nothing is downloaded or written during install beyond running the provided script — low install risk.
Credentials
The skill requests no environment variables or credentials, which is appropriate. Minor mismatch: SKILL.md lists vnstat DB location (/var/lib/vnstat/vnstat.db) as vnstat's data store (expected), while the script independently stores state under /root/.openclaw/... — an internal state file path that may be surprising and requires write access.
Persistence & Privilege
always is false and model invocation is normal. The script persists its own small JSON state file but does not modify other skills or system-wide config. It does not request elevated privileges explicitly, though interacting with vnstat/systemctl or writing to /root may require root permissions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install traffic-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /traffic-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Traffic Monitor Skill 1.0.0 — Initial Release - Monitors monthly and daily server network traffic using vnstat. - Provides monthly usage reports via a human-readable Python script. - Alerts when usage exceeds 80% of the 2TB monthly limit. - Includes quick reference for relevant commands and setup tips. - Designed for persistent tracking and integration with heartbeat checks.
元数据
Slug traffic-monitor
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

traffic-monitor 是什么?

监控服务器指定网卡月度网络流量,定期生成使用报告并在流量超过80%阈值时提供警告。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。

如何安装 traffic-monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install traffic-monitor」即可一键安装,无需额外配置。

traffic-monitor 是免费的吗?

是的,traffic-monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

traffic-monitor 支持哪些平台?

traffic-monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 traffic-monitor?

由 binyuli(@binyuli)开发并维护,当前版本 v1.0.0。

💬 留言讨论