← 返回 Skills 市场
luckypig1209

Zhihu Aiops

作者 luckypig1209 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install zhihu-aiops
功能描述
Use this skill when working with the Zhihu AIOps / 智护运维平台, including asset management, CMDB discovery, monitoring, alarm dashboards, Categraf SNMP metrics in...
使用说明 (SKILL.md)

Zhihu AIOps Skill

This skill provides workflows and API references for the 智护运维平台 / Zhihu AIOps platform.

Use it for:

  • Querying platform assets, asset models, asset types, and managed devices.
  • Creating operating-system monitoring assets after connectivity checks.
  • Querying dashboard and alarm summaries.
  • Working with CMDB / asset discovery scan tasks and scan results.
  • Querying VictoriaMetrics and Categraf SNMP snmp_* metrics.
  • Generating managed asset inspection reports.

Configuration

Set these environment variables before calling platform APIs:

export ZHIHU_API_URL="http://zhihu-server:48080/admin-api"
export ZHIHU_USER="admin"
export ZHIHU_PASSWORD="your-password"
export VM_URL="http://zhihu-metric:9090"

Do not hard-code customer IPs, test-environment URLs, usernames, passwords, or API keys into prompts or generated scripts. Prefer environment variables.

Core Workflow

  1. Read the relevant reference file from references/ based on the user's goal.
  2. Login to the Zhihu platform before calling protected platform APIs.
  3. Send Authorization: Bearer \x3CaccessToken> with platform requests unless the target environment expects the raw token format.
  4. For managed assets, query asset models first when the model ID is unknown, then call /cqt/asset-info/page with the correct modelId and modelCode.
  5. For SNMP/network/security/storage device metrics, use VictoriaMetrics snmp_* metrics collected by Categraf, not Zabbix.
  6. For inspection reports, combine platform managed asset data with VictoriaMetrics/SNMP data only when realtime metric status is requested.

Reference Map

  • Asset center APIs: references/api_asset.md
  • CMDB discovery APIs: references/api_cmdb.md
  • Dashboard and alarm summary APIs: references/api_dashboard.md
  • Monitor center APIs: references/api_monitor.md
  • VictoriaMetrics APIs: references/api_victoriametrics.md
  • Categraf SNMP metrics: references/api_snmp_metrics.md
  • Add OS monitoring workflow: references/add-os-monitor.md
  • Managed asset inspection workflow: references/inspection-run.md

Common Tasks

Query Managed Assets

Read references/api_asset.md. If the user asks for concrete assets rather than model definitions, use /cqt/asset-info/page. For known managed inspection models, use the model information in references/inspection-run.md.

Generate Managed Asset Inspection Report

Read references/inspection-run.md, then query these categories as needed:

  • Security device: modelId=254, modelCode=securitydevice
  • Network device: modelId=185, modelCode=networkdevice
  • Terminal device: modelId=260, modelCode=terminaldevice
  • Storage device: modelId=261, modelCode=storagedevice
  • Database: modelId=183, modelCode=storagebase
  • Operating system: modelId=195, modelCode=operatesystem

Query SNMP Metrics

Read references/api_snmp_metrics.md. Use VM_URL and VictoriaMetrics APIs:

  • /api/v1/series for metric discovery.
  • /api/v1/query for instant queries.
  • /api/v1/query_range for trends.

Prefer snmp_* metrics for network devices, security devices, storage devices, switches, routers, firewalls, and other SNMP-managed assets.

Add OS Monitoring

Read references/add-os-monitor.md. Required user inputs are target IP, port, username, password, and monitor name. Login first, resolve the operating-system model/items dynamically, test connectivity, then create the asset.

Current Limitations

This first ClawHub package is documentation-first and registration-ready. It does not yet include a production CLI wrapper. When deterministic execution is required, implement scripts in scripts/ in the next phase, for example:

python3 scripts/zhihu_cli.py login
python3 scripts/zhihu_cli.py asset-page --model-code networkdevice
python3 scripts/zhihu_cli.py inspect-managed-assets --scope all
python3 scripts/zhihu_cli.py snmp-discover
python3 scripts/zhihu_cli.py vm-query --query 'up'
安全使用建议
Install only if you trust the Zhihu AIOps platform endpoint you configure. Prefer HTTPS or a protected internal network, use scoped service accounts or keys where the platform supports them, avoid broad root credentials, and confirm how the backend stores SSH passwords before using the OS monitoring workflow.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill is coherent with its stated purpose: it provides reference workflows for Zhihu AIOps asset management, CMDB discovery, monitoring, dashboards, VictoriaMetrics/SNMP metrics, and OS monitor creation.
Instruction Scope
The OS monitor workflow asks for SSH username and password and sends them to platform APIs for connectivity testing and asset creation; this is expected for the workflow, but the artifacts could more clearly require explicit confirmation and safer credential practices.
Install Mechanism
The package contains Markdown and JSON reference files only, with no executable scripts, dependency installs, background workers, or installer behavior.
Credentials
The declared need for curl, python3, platform credentials, and VictoriaMetrics/API URLs is proportionate for an AIOps integration, though examples use HTTP defaults that users should replace with trusted HTTPS/internal endpoints where possible.
Persistence & Privilege
The skill itself creates no local persistence or privilege escalation, but the documented platform workflow may persist monitoring assets and associated SSH credentials in the backend as part of normal monitor setup.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install zhihu-aiops
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /zhihu-aiops 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release providing workflows and API references for Zhihu AIOps. - Supports asset queries, monitoring asset creation, dashboard/alarm summaries, CMDB discovery, VictoriaMetrics/Categraf SNMP metrics, and inspection reports. - Reference-guided usage with detailed workflow steps and API endpoints. - Requires environment variable configuration for secure, flexible API access. - No executable CLI helpers included yet—future versions will add production-ready scripts.
元数据
Slug zhihu-aiops
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Zhihu Aiops 是什么?

Use this skill when working with the Zhihu AIOps / 智护运维平台, including asset management, CMDB discovery, monitoring, alarm dashboards, Categraf SNMP metrics in... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。

如何安装 Zhihu Aiops?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install zhihu-aiops」即可一键安装,无需额外配置。

Zhihu Aiops 是免费的吗?

是的,Zhihu Aiops 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Zhihu Aiops 支持哪些平台?

Zhihu Aiops 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Zhihu Aiops?

由 luckypig1209(@luckypig1209)开发并维护,当前版本 v1.0.0。

💬 留言讨论