This skill provides workflows and API references for the 智护运维平台 / Zhihu AIOps platform.
Use it for:
snmp_* metrics.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.
references/ based on the user's goal.Authorization: Bearer with platform requests unless the target environment expects the raw token format./cqt/asset-info/page with the correct modelId and modelCode.snmp_* metrics collected by Categraf, not Zabbix.references/api_asset.mdreferences/api_cmdb.mdreferences/api_dashboard.mdreferences/api_monitor.mdreferences/api_victoriametrics.mdreferences/api_snmp_metrics.mdreferences/add-os-monitor.mdreferences/inspection-run.mdRead 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.
Read references/inspection-run.md, then query these categories as needed:
modelId=254, modelCode=securitydevicemodelId=185, modelCode=networkdevicemodelId=260, modelCode=terminaldevicemodelId=261, modelCode=storagedevicemodelId=183, modelCode=storagebasemodelId=195, modelCode=operatesystemRead 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.
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.
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 个版本