系统健康监测器:8层 Linux 安全与性能 - Openclaw Skills

作者:互联网

2026-04-13

AI教程

什么是 系统健康监测器?

系统健康监测器是一款先进的工具,旨在提供系统完整性和性能的全面视图。通过利用 8 层坚控架构,此技能可以追踪从 SSH 登录尝试和网络流量到防火墙状态和软件包完整性的所有内容。它是 Openclaw Skills 库的重要组成部分,适用于需要主动警报和自动化报告以维护高可用性系统的开发人员。

该技能将复杂的系统数据合成一个单一的健康分数,允许管理员快速评估其基础设施的状态。无论您是管理单台服务器还是复杂的网络,系统健康监测器都能确保在安全威胁和性能瓶颈影响运营之前识别它们。

下载入口:https://github.com/openclaw/skills/tree/main/skills/snowzlm/system-health-monitor

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install system-health-monitor

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 system-health-monitor。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

系统健康监测器 应用场景

  • 坚控实时系统健康评分和性能趋势。
  • 调查安全事件,包括 SSH 登录尝试和网络威胁。
  • 生成自动化的每日或每周系统健康报告。
  • 检查特定坚控层的状态,如软件包完整性或心跳监测。
  • 查看 fail2ban 和 UFW 防火墙活动以确保网络安全。
系统健康监测器 工作原理
  1. 该技能与本地 systemd 服务接口,从 8 个不同的坚控层收集遥测数据。
  2. 实时处理来自网络流量、SSH 日志和软件完整性检查的数据点。
  3. 根据所有坚控层的运行状态生成 0 到 100 之间的综合健康分数。
  4. 如果健康分数跌破定义的阈值,系统将通过配置的通知渠道(如 T@elegrimm)触发警报。
  5. 用户可以使用标准 CLI 命令向代理查询特定层的报告或一般状态概览。

系统健康监测器 配置指南

要在您的 Openclaw Skills 环境中部署此技能,请确保您的 Linux 系统基于 systemd 并具有必要的依赖项。

# 安装所需的系统工具
sudo apt-get install jq systemctl

# 初始化健康检查脚本
bash scripts/health-check.sh status

# (可选)编辑配置以自定义阈值
nano config/health-monitor.json

系统健康监测器 数据架构与分类体系

该技能使用结构化的 JSON 格式和表格状态报告来管理其配置和报告。

组件 描述
alert_threshold 决定何时发送通知的整数值 (0-100)。
monitored_services 8 层系统追踪的 systemd 服务列表。
health_score 代表整体系统稳定性的动态指标。
8-Layer System 包含 SSH、心跳、流量、防火墙、完整性、报告、清理和内部安全的组织数据。
name: system-health-monitor
description: "System health and security monitoring skill with 8-layer monitoring system. Provides real-time health scoring, security reporting, and performance analysis. Use when: checking system status, monitoring security events, or generating health reports."
homepage: https://github.com/openclaw/openclaw
author: "ZLMbot ??"
license: MIT
metadata: { "openclaw": { "emoji": "??", "requires": { "bins": ["systemctl", "jq"], "os": "linux" }, "tags": ["monitoring", "security", "health", "system"] } }

System Health Monitor

System health and security monitoring skill with 8-layer monitoring system.

Description

This skill provides real-time status reports, alerting, and historical analysis of system performance and security by integrating with the 8-layer monitoring infrastructure.

When to Use

? USE this skill when:

  • Checking overall system health status
  • Monitoring security events and threats
  • Analyzing system performance trends
  • Generating health reports
  • Investigating monitoring alerts
  • Reviewing fail2ban activity

? DON'T use this skill when:

  • Modifying system configuration → use system administration tools
  • Installing packages → use apt/yum
  • Managing user accounts → use useradd/usermod

Usage

Quick Health Check

/health status

Detailed System Report

/health report

Check Specific Monitoring Layer (1-8)

/health layer 3      # Check heartbeat monitoring
/health layer 6      # Check package integrity monitoring

Security Overview

/health security

Configuration

Optional configuration file at config/health-monitor.json:

{
  "alert_threshold": 80,
  "report_frequency": "hourly",
  "notify_on_critical": true,
  "telegram_channel_id": "",
  "monitored_services": [
    "ssh-login-monitor",
    "heartbeat-monitor",
    "package-integrity-monitor"
  ]
}

Monitoring Layers (8-Layer System)

Layer Service Integration
1 SSH Login Monitor Real-time login tracking
2 Heartbeat Monitor Advanced health checks
3 Outbound Traffic Monitor Network security
4 UFW Firewall Network layer protection
5 Package Integrity Monitor Software security
6 Report Monitor Automated reporting
7 Cleanup Monitor System maintenance
8 Internal Security Monitor Network threat detection

Features

  • Real-time Health Scoring: 0-100 score based on monitoring layer status
  • Alert System: Notify on critical issues via T@elegrimm
  • Historical Analysis: Track system performance trends
  • Security Dashboard: Consolidated security status view
  • Automated Reports: Generate daily/weekly health reports

Commands

Get Current Status

bash scripts/health-check.sh status

Generate Report

bash scripts/health-check.sh report

Requirements

  • OS: Linux (systemd-based distributions)
  • OpenClaw Gateway running
  • Systemd monitoring services enabled
  • Dependencies: systemctl, jq
  • Optional: fail2ban, ufw (for security features)

Skill Development Details

  • Version: 1.1.1
  • Author: ZLMbot ??
  • Created: 2026-02-28
  • Updated: 2026-03-01 (fixed security scan issues)
  • License: MIT

Status: ?? Active
Monitoring System: ? 8-layer system
Last Updated: 2026-03-01

相关推荐