← 返回
未分类 中文

Alibabacloud Alinux Sysom Inspection

用于检查 ECS 实例的系统健康状况,识别内存、磁盘、CPU、负载与资源泄漏等异常,并在命中关键内存问题时自动补充深度诊断结果。适用于实例巡检、故障排查与风险预警场景。触发词:SysOM、巡检、实例诊断、memory_usage_rate、内存使用率。
用于检查 ECS 实例的系统健康状况,识别内存、磁盘、CPU、负载与资源泄漏等异常,并在命中关键内存问题时自动补充深度诊断结果。适用于实例巡检、故障排查与风险预警场景。触发词:SysOM、巡检、实例诊断、memory_usage_rate、内存使用率。
sdk-team sdk-team 来源
未分类 clawhub v0.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 285
下载
💾 0
安装
2
版本
#latest

概述

SysOM Inspection (sysom-inspection)

Run ./scripts/osops.sh from the skill root directory.

Currently implemented command:

  • inspection

Quick Start

cd <alibabacloud-alinux-sysom-inspection>
./scripts/init.sh
./scripts/osops.sh inspection \
  --region-id cn-hangzhou \
  --managed-type all

Observability

  • UA template (required for all SDK requests):
  • AlibabaCloud-Agent-Skills/{SKILL_NAME}/{session-id}
  • Runtime resolved form in this skill: AlibabaCloud-Agent-Skills/alibabacloud-alinux-sysom-inspection/
  • Unified session-id rule:
  • A single SKILL_SESSION_ID must be reused across all API calls in one CLI execution.
  • Injection priority is: external env SKILL_SESSION_ID (preferred) -> auto-generated fallback sid-.
  • Accepted format is [A-Za-z0-9][A-Za-z0-9._:-]{7,127}; invalid injected values fall back to generated id.
  • The resolved value is exported to process env SKILL_SESSION_ID to keep downstream calls consistent.

Execution Flow

  • Before each inspection, the CLI calls ROA API POST /api/v1/openapi/initial_sysom (source=skill_hub) to verify permissions and SysOM activation.
  • If SysOM is not activated or role readiness is missing, the CLI interactively asks whether to continue with activation + installation.
  • After user confirmation, it calls InitialSysom(check_only=false, source=skill_hub) for activation, then calls InstallAgentWithType.
  • After installation, it re-checks readiness using InitialSysom(check_only=true, source=skill_hub). Inspection continues only when re-check succeeds.
  • Local threshold/event-rule configuration is not used; anomaly decisions come from the server-side inspection report.
  • If --instance-id is not provided, the CLI calls ListAllInstances (region / instanceType=ecs / managedType / current / pageSize) and lets the user pick an instance interactively.
  • It always calls ROA inspection API POST /api/v1/inspection/createInstanceInspection with source=skill_hub, and supports optional metricSource (cms / sysom / auto).
  • If --metric-source is not explicitly provided, the CLI maps automatically from management status: managed -> sysom, unmanaged -> cms, unknown -> auto.
  • To inspect all items, pass items=[] (in CLI, provide an explicit empty --inspection-items).
  • If the standard inspection API returns InvalidAction.NotFound, the CLI marks the API as unavailable and stops follow-up flow to avoid invalid retries.
  • Report lookup uses ROA API GET /api/v1/inspection/getInspectionReport.
  • If create API is unavailable, the CLI still sends one GetInspectionReport probe call and records the result for observability.
  • If report contains sysom:metric:memory_usage_rate anomaly, the CLI automatically triggers InvokeDiagnosis for memgraph.
  • InvokeDiagnosis injects __sysom_diagnosis_source=skill_hub into params and validates business code=Success.
  • After diagnosis is started, the CLI polls GetDiagnosisResult until success / fail / timeout.
  • Auto diagnosis can be disabled via --disable-memgraph-diagnosis.

Extensibility Notes

  • Inspection items can be overridden via --inspection-items.
  • Instance filtering can be controlled by --managed-type (managed / unmanaged / all) and pagination args --current, --page-size.
  • Metric source can be specified via --metric-source (cms / sysom / auto); if omitted, default behavior is preserved.
  • If InitialSysom indicates not activated, the CLI asks for terminal confirmation before activation attempt + recheck.
  • Memory anomaly trigger logic is implemented in scripts/sysom_cli/inspection/command.py.
  • To add more post-inspection specialized diagnosis actions, reuse the InvokeDiagnosis integration pattern.

版本历史

共 2 个版本

  • v0.0.2 当前
    2026-06-19 15:34
  • v0.0.1
    2026-05-21 15:26

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,101
ai-agent

Alibabacloud Find Skills

sdk-team
用于搜索、发现、浏览或查找阿里云(Alibaba Cloud)代理技能。触发词包括“查找X技能”“搜索阿里云…”等。
★ 0 📥 1,168
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 472 📥 78,694