技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
disk-monitor【数据与研究】Use when the user asks to check disk status, report on hard disk health, temperature, or SMART data, or when performing routine server maintenance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill provides tools and guidelines for checking the health status of hard drives across the infrastructure using SMART data. It generates human-readable reports and helps identify disks that need replacement or monitoring.
To check the current health of all disks, execute the included script. Because your working directory may vary, you should use the absolute path to the script:
python3 ./scripts/disk-health-check.py
(Run from within the skill directory, or use the absolute path scripts/disk-health-check.py relative to this skill)
To export structured tabular data containing pure integer measurements (ideal for AI parsing, parsing loops, or monitoring stacks like Zabbix/Prometheus), add the --csv flag:
python3 ./scripts/disk-health-check.py --csv
The script outputs a formatted table containing:
When the user asks for historical data, trend analysis, or raw monitoring data beyond the CLI script, you can directly query the underlying Scrutiny APIs. The default host is typically https://smart.pve.icu.
| Endpoint | Method | Purpose & Data Structure |
|---|---|---|
/api/device/{wwn}/details | GET | Historical Data: Best for building temperature/wearout trend charts. Returns data.device (metadata) and data.smart_results (an array of historical SMART snapshots including date, temp, power_on_hours, and attrs). |
/api/summary | GET | Global Snapshot: Returns a lightweight dictionary (data.summary) containing the latest status of all monitored disks. Used by the disk-health-check script. |
/api/health | GET | Service Health: Returns status of internal components (influxdb, sqlite, frontend). Useful for testing if the monitoring system itself is down. |
Example Automation Flow for Trending:
/api/summary to get all WWN keys./api/device/{wwn}/details.data.smart_results[].date and data.smart_results[].temp (or any attribute from attrs) to build a time-series dataset.When reporting disk health to a user, follow these principles:
更新时间 (Update Time). If a failing disk's data hasn't updated in weeks, explicitly point out that the data is stale and the disk might already be dead.执行前:
--csv 结构化输出执行后:
更新时间 是否足够新| 错误做法 | 正确做法 |
|---|---|
| 把健康检查当成磁盘容量检查 | 仅用此技能处理 SMART / 温度 / 寿命 / 风险状态 |
忽略 更新时间,直接断言磁盘当前状态 | 先判断数据是否新鲜,再下结论 |
| 只看总通过/失败数量,不看具体风险盘 | 先列出异常盘,再补总体统计 |
需要历史趋势时仍只依赖 /api/summary | 改查 /api/device/{wwn}/details 获取历史快照 |