360 Secure SkillHub
360 安全技能中心

DevOps Ops Bot

通过命令行检查服务器 CPU 负载、内存、磁盘用量和 uptime,按可配置阈值返回 ok/warn/crit,支持 JSON 输出、Slack/Discord webhook 告警,以及严重状态下自动重启服务。需要 Node 运行环境,文档给出的运行路径属于特定 Agent 的技能目录。

分类:自动化
gruted
gruted
热度 46.25
最近更新 2026-05-17 13:35:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add gruted/devops-ops-bot
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
devops-ops-bot
description
Server health monitoring with alerts and auto-recovery. Checks CPU, memory, disk, and uptime with configurable thresholds. Sends Slack/Discord alerts and can auto-restart services on critical.
metadata
{"openclaw":{"requires":{"bins":["node"]}}}

devops-ops-bot

Lightweight server health monitoring CLI.

Quick check

cd ~/.openclaw/workspace/skills/devops-ops-bot
npx @gruted/devops-ops-bot check

Or if installed globally:

devops-watch check

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

# Basic health check
devops-watch check

# Custom thresholds
devops-watch check --warn-cpu 80 --crit-cpu 95 --warn-mem 80 --crit-mem 95

# JSON output
devops-watch check --json

# With Slack alerts
devops-watch check --webhook-url "https://hooks.slack.com/services/..."

# Auto-restart on critical
devops-watch check --restart-cmd "systemctl restart nginx"

# Cron (every 5 min)
devops-watch cron-example --every-min 5

Install

# npm
npm install -g @gruted/devops-ops-bot

# or one-liner
curl -fsSL https://raw.githubusercontent.com/gruted/devops-ops-bot/main/install.sh | bash

# or Docker
docker run --rm ghcr.io/gruted/devops-ops-bot:latest check

Links