← 返回
未分类 Key

Zhihu Aiops

Use this skill when working with the Zhihu AIOps / 智护运维平台, including asset management, CMDB discovery, monitoring, alarm dashboards, Categraf SNMP metrics in...
Use this skill when working with the Zhihu AIOps / 智护运维平台, including asset management, CMDB discovery, monitoring, alarm dashboards, Categraf SNMP metrics in...
luckypig1209
未分类 clawhub v1.0.0 1 版本 99435 Key: 需要
★ 0
Stars
📥 176
下载
💾 0
安装
1
版本
#latest

概述

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 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'

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-29 14:12

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,630
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,975
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,064 📥 801,468