nidalghetf-disk-usage-watcher

TotalClaw 作者 totalclaw

监控磁盘空间与 inode 使用率,超阈值时发送告警,防止磁盘满。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~nidalghetf-disk-usage-watcher
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~nidalghetf-disk-usage-watcher/file -o nidalghetf-disk-usage-watcher.md
## 概述(中文)

监控磁盘空间与 inode 使用率,超阈值时发送告警,防止磁盘满。

## 技能正文

# 磁盘用量监控

## 描述
监控指定路径的磁盘空间与 inode 用量,超阈值时发送告警。防止磁盘满事故。

## 用法
智能体可直接调用本技能,或通过 cron 每 15 分钟自动运行。

### 示例提示:
- "Check disk space on root partition"
- "Monitor all mount points and 告警 at 85%"
- "Show me disk usage statistics"

## 输入
- `阈值_percent`: number — Alert when usage exceeds this percentage (default: 85)
- `inode_阈值`: number — Alert when inode usage exceeds this percentage (default: 85)
- `paths`: array — Specific paths to monitor (default: all mounted partitions)
- `告警_on_failure`: boolean — Send 告警 if check fails (default: true)

## 输出
- `status`: string — "success" or "failure"
- `details`: object — Contains disk_usage array with mount points, usage percentages, and any triggered 告警s

## 依赖
- `openclaw/exec` - For running df commands
- `openclaw/notify` - For sending 告警s

## 测试
```bash
openclaw call disk-usage-watcher --params '{"paths": ["/"]}'
```