File contents 凌晨 5 点基础设施健康检查
适用场景
每天 05:00 自动检查磁盘、内存、负载和备份状态。;| 内置 | cron | 固定时间触发巡检 | OpenClaw Built-in |
功能说明
凌晨 5 点基础设施健康检查
在工作日开始前完成资源巡检,问题提前暴露,避免早高峰临时救火。
这个案例能帮你做什么
每天 05:00 自动检查磁盘、内存、负载和备份状态。
达到阈值时立刻告警,没问题就静默通过。
把“上班后才发现故障”改成“上班前已定位风险”。
你需要的 Skills(按类型)
类型
Skill
用途
来源
内置
system
读取系统资源指标
OpenClaw Built-in
内置
telegram
异常即时通知
OpenClaw Built-in
内置
cron
固定时间触发巡检
OpenClaw Built-in
快速体验版(先跑一轮)
先执行一次“白天演练”:
你是我的 OpenClaw 助手。
请帮我做“5AM 基础设施健康检查”的预演版:
1. 现在立刻检查一次磁盘、内存、负载、备份状态、外网连通性。
2. 不要做系统改动,只输出检查结果和告警级别。
3. 按阈值标记 Warning / Critical。
4. 最后给出明天 05:00 的自动执行计划。
稳定自动版(可长期运行)
1) 健康检查脚本:check-health.sh
#!/bin/bash
# check-health.sh
df -h | grep -E "(9[0-9]|100)%" && alert "Disk critical"
free -m | awk '/Mem:/ {if ($3/$2 > 0.9) print "Memory high"}'
uptime | awk '{if ($3 > 7) print "Reboot suggested"}'
2) OpenClaw 执行提示词(自动版)
你是我的 OpenClaw 助手,请执行“5AM Infrastructure Check”。
请使用内置 Skills:system、telegram、cron。
每天 05:00 执行:
1. 检查所有卷磁盘使用率。
2. 检查内存利用率。
3. 检查 load average。
4. 验证备份是否完成。
5. 测试外部网络连通性。
6. 如任一检查失败,立即告警。
7. 全部通过则静默成功。
阈值:
- Disk >90%: Warning
- Disk >95%: Critical
- Memory >90%: Warning
- Load >4: Investigate
成功标准
100% uptime for critical services
Issues detected before 8 AM
False positive rate <5%
源文件
来源:awesome-openclaw-zh 原始文件:13-5am-infrastructure-health-check.md
1 --- 2 name: 5am-infrastructure-health-check 3 description: 凌晨 5 点基础设施健康检查 4 --- 5 6 # 凌晨 5 点基础设施健康检查 7 8 ## 适用场景 9 - 每天 05:00 自动检查磁盘、内存、负载和备份状态。;| 内置 | `cron` | 固定时间触发巡检 | OpenClaw Built-in | 10 11 ## 功能说明 12 # 凌晨 5 点基础设施健康检查 13 14 > 在工作日开始前完成资源巡检,问题提前暴露,避免早高峰临时救火。 15 16 ## 这个案例能帮你做什么 17 18 - 每天 05:00 自动检查磁盘、内存、负载和备份状态。 19 - 达到阈值时立刻告警,没问题就静默通过。 20 - 把“上班后才发现故障”改成“上班前已定位风险”。 21 22 ## 你需要的 Skills(按类型) 23 24 | 类型 | Skill | 用途 | 来源 | 25 |---|---|---|---| 26 | 内置 | `system` | 读取系统资源指标 | OpenClaw Built-in | 27 | 内置 | `telegram` | 异常即时通知 | OpenClaw Built-in | 28 | 内置 | `cron` | 固定时间触发巡检 | OpenClaw Built-in | 29 30 ## 快速体验版(先跑一轮) 31 32 先执行一次“白天演练”: 33 34 ```text 35 你是我的 OpenClaw 助手。 36 请帮我做“5AM 基础设施健康检查”的预演版: 37 1. 现在立刻检查一次磁盘、内存、负载、备份状态、外网连通性。 38 2. 不要做系统改动,只输出检查结果和告警级别。 39 3. 按阈值标记 Warning / Critical。 40 4. 最后给出明天 05:00 的自动执行计划。 41 ``` 42 43 ## 稳定自动版(可长期运行) 44 45 ### 1) 健康检查脚本:`check-health.sh` 46 47 ```bash 48 #!/bin/bash 49 # check-health.sh 50 51 df -h | grep -E "(9[0-9]|100)%" && alert "Disk critical" 52 free -m | awk '/Mem:/ {if ($3/$2 > 0.9) print "Memory high"}' 53 uptime | awk '{if ($3 > 7) print "Reboot suggested"}' 54 ``` 55 56 ### 2) OpenClaw 执行提示词(自动版) 57 58 ```text 59 你是我的 OpenClaw 助手,请执行“5AM Infrastructure Check”。 60 请使用内置 Skills:system、telegram、cron。 61 62 每天 05:00 执行: 63 1. 检查所有卷磁盘使用率。 64 2. 检查内存利用率。 65 3. 检查 load average。 66 4. 验证备份是否完成。 67 5. 测试外部网络连通性。 68 6. 如任一检查失败,立即告警。 69 7. 全部通过则静默成功。 70 71 阈值: 72 - Disk >90%: Warning 73 - Disk >95%: Critical 74 - Memory >90%: Warning 75 - Load >4: Investigate 76 ``` 77 78 ## 成功标准 79 - 100% uptime for critical services 80 - Issues detected before 8 AM 81 - False positive rate <5% 82 83 ## 源文件 84 来源:awesome-openclaw-zh 85 原始文件:13-5am-infrastructure-health-check.md
YangYuChen-Work/awesome-ai-skills/tree/main/夜间自动化/5am-infrastructure-health-check commit 446e91840b
Frequently asked questions How do I install the 5am Infrastructure Health Check skill? Run npx skillmds@latest add yangyuchen-work/5am-infrastructure-health-check in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the 5am Infrastructure Health Check skill do? 凌晨 5 点基础设施健康检查 It is listed under Coding & Dev Tools on SkillMD.
Is 5am Infrastructure Health Check safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 5am Infrastructure Health Check? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is 5am Infrastructure Health Check free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 5am Infrastructure Health Check? YangYuChen-Work (@yangyuchen-work) published this skill. Their other Agent Skills are listed on their SkillMD profile.