免费服务器监控推送方案
Server 酱免费版每天只能发 5 条,以下是**完全免费**的替代方案
📊 方案对比
| 方案 | 免费额度 | 配置难度 | 推荐指数 |
| 企业微信机器人 | ♾️ 无限 | ⭐⭐ | ⭐⭐⭐⭐⭐ |
| 钉钉机器人 | ♾️ 无限 | ⭐⭐ | ⭐⭐⭐⭐⭐ |
| 飞书机器人 | ♾️ 无限 | ⭐⭐ | ⭐⭐⭐⭐ |
| ntfy.sh | ♾️ 无限 | ⭐ | ⭐⭐⭐⭐ |
| Telegram Bot | ♾️ 无限 | ⭐⭐⭐ | ⭐⭐⭐ |
🔧 方案一:企业微信机器人(推荐)
1. 创建机器人
- 打开企业微信 → 工作台 → 群机器人
- 点击「添加」→ 新建一个群(可以只有自己)
- 点击「添加机器人」→ 设置名称(如:服务器监控)
- 复制 Webhook 地址(格式:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx)
2. 测试推送
| curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"msgtype":"text","text":{"content":"测试消息"}}'
|
3. 配置监控
| chmod +x ~/workspace/scripts/server-monitor-plus.sh
~/workspace/scripts/server-monitor-plus.sh wechat https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY
|
🔧 方案二:钉钉机器人(推荐)
1. 创建机器人
- 打开钉钉 → 选择一个群(或新建)
- 群设置 → 智能助手 → 添加机器人
- 选择「自定义」→ 设置名称
- 安全设置选「自定义关键词」(填入:服务器)
- 复制 Webhook 地址
2. 测试推送
| curl 'https://oapi.dingtalk.com/robot/send?access_token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"msgtype":"text","text":{"content":"测试消息"}}'
|
3. 配置监控
| ~/workspace/scripts/server-monitor-plus.sh dingtalk https://oapi.dingtalk.com/robot/send?access_token=YOUR_TOKEN
|
🔧 方案三:飞书机器人
1. 创建机器人
- 打开飞书 → 选择一个群
- 群设置 → 添加机器人 → 自定义机器人
- 设置名称,复制 Webhook 地址
2. 测试推送
| curl -X POST -H "Content-Type: application/json" \
-d '{"msg_type":"text","content":{"text":"测试消息"}}' \
"https://open.feishu.cn/open-apis/bot/v2/hook/YOUR_TOKEN"
|
3. 配置监控
| ~/workspace/scripts/server-monitor-plus.sh feishu https://open.feishu.cn/open-apis/bot/v2/hook/YOUR_TOKEN
|
🔧 方案四:ntfy.sh(最简单)
1. 订阅主题
访问 https://ntfy.sh/ 或直接使用手机 App
2. 测试推送
| curl -d "测试消息" "https://ntfy.sh/你的主题名"
|
3. 配置监控
| ~/workspace/scripts/server-monitor-plus.sh ntfy your-topic-name
|
⏰ 设置定时任务
添加(每 5 分钟检查一次):
| */5 * * * * /home/admin/.openclaw/workspace/scripts/server-monitor-plus.sh wechat YOUR_WEBHOOK_URL >> /tmp/server-monitor.log 2>&1
|
📝 监控指标
| 指标 | 告警阈值 | 可调整 |
| CPU 使用率 | > 80% | ✅ |
| 内存使用率 | > 80% | ✅ |
| 磁盘使用率 | > 85% | ✅ |
修改脚本开头的阈值变量即可。
💡 建议
- 个人使用 → 企业微信/钉钉(最稳定)
- 团队使用 → 飞书(卡片消息更美观)
- 极简主义 → ntfy.sh(无需注册,一个主题名即可)