跳到正文
TakoAPI
返回技能列表

disk-usage-watcher

由 nidalghetf 提供

Web & Frontend Development
249下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Monitors disk space and inode usage on specified paths, sending alerts when thresholds are exceeded.

描述

该技能的功能

Monitors disk space and inode usage across specified paths, sending alerts when configured thresholds are exceeded. Runs on demand or automatically every 15 minutes via cron.

Automated threshold alerts catch disk issues before they cause failures, removing the need for manual spot checks.

何时使用

  • Alert before a production server runs out of disk space
  • Track inode exhaustion on high-file-count directories
  • Monitor specific mount points after a large data ingestion
  • Schedule routine disk checks without manual intervention
  • Get notified when a backup partition fills unexpectedly

示例工作流

输入

User asks: Monitor all mount points and alert at 85%

智能体
  1. 1

    Receives threshold_percent=85 and inode_threshold=85 with no specific paths set

  2. 2

    Calls openclaw/exec to run df against all mounted partitions

  3. 3

    Parses usage percentages for each mount point and inode counts

  4. 4

    Compares results against the 85% threshold

  5. 5

    Calls openclaw/notify for any mount points that exceed the threshold

输出

Status report listing all mount points with usage percentages and alerts sent for any that exceeded 85%

安装

clawhub install nidalghetf/disk-usage-watcher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接