devops-ops-bot
Lightweight server health monitoring CLI.
Quick check
CODEBLOCK0
Or if installed globally:
CODEBLOCK1
What it does
- - Checks CPU load, memory usage, disk usage, uptime
- Returns ok/warn/crit with configurable thresholds
- Sends alerts to Slack or Discord webhooks
- Can auto-restart services on critical conditions
- JSON output for log aggregation
Usage examples
CODEBLOCK2
Install
CODEBLOCK3
Links
- - GitHub: https://github.com/gruted/devops-ops-bot
- Landing page: https://gruted.github.io/devops-ops-bot/
devops-ops-bot
轻量级服务器健康监控命令行工具。
快速检查
bash
cd ~/.openclaw/workspace/skills/devops-ops-bot
npx @gruted/devops-ops-bot check
或全局安装后:
bash
devops-watch check
功能说明
- - 检查CPU负载、内存使用、磁盘使用、运行时间
- 返回正常/警告/严重状态,支持可配置阈值
- 向Slack或Discord Webhook发送告警
- 可在严重条件下自动重启服务
- 支持JSON输出,便于日志聚合
使用示例
bash
基本健康检查
devops-watch check
自定义阈值
devops-watch check --warn-cpu 80 --crit-cpu 95 --warn-mem 80 --crit-mem 95
JSON输出
devops-watch check --json
带Slack告警
devops-watch check --webhook-url https://hooks.slack.com/services/...
严重时自动重启
devops-watch check --restart-cmd systemctl restart nginx
定时任务(每5分钟)
devops-watch cron-example --every-min 5
安装
bash
npm
npm install -g @gruted/devops-ops-bot
或一行命令安装
curl -fsSL https://raw.githubusercontent.com/gruted/devops-ops-bot/main/install.sh | bash
或使用Docker
docker run --rm ghcr.io/gruted/devops-ops-bot:latest check
链接
- - GitHub:https://github.com/gruted/devops-ops-bot
- 主页:https://gruted.github.io/devops-ops-bot/