360 Secure SkillHub
360 安全技能中心

VCF Log Insight Health Check

该 Skill 依据环境变量中的主机与令牌,调用 Aria Operations for Logs(Log Insight)API 获取集群健康状态及节点 id、IP、status、uptime,用 jq 解析后汇总为可读表格,并显式指出错误或断连节点。

kasture-rohit
kasture-rohit
热度 39.58
最近更新 2026-05-11 17:40:25
分类:自动化依赖:代码执行 / 第三方 API应用场景:DevOps / 报告撰写 / 工作流 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add vcf-loginsight-health
Metadata
name
vcf-loginsight-health
description
Check the health, uptime, and node status of Aria Operations for Logs (Log Insight) in a VCF environment.
version
1.0.1
homepage
https://github.com/kasture-rohit/vcf-openclaw-skills
metadata
{"openclaw":{"requires":{"env":["LOGINSIGHT_HOST","LOGINSIGHT_API_TOKEN"],"bins":["curl","jq"]},"primaryEnv":"LOGINSIGHT_API_TOKEN","emoji":""}}

VCF Log Insight Health Check

When the user asks to check the health of the Log Insight or Aria Operations for Logs cluster, follow these steps:

  1. Verify Credentials: Ensure LOGINSIGHT_HOST and LOGINSIGHT_API_TOKEN are available in the environment.
  2. Fetch Cluster Health: Use the exec tool to run the following command to check the cluster status:
    curl -s -k -X GET "https://$LOGINSIGHT_HOST/api/v1/health" \
      -H "Authorization: Bearer $LOGINSIGHT_API_TOKEN" \
      -H "Accept: application/json" | jq '.'
    
  3. Fetch Node Status: Use the exec tool to run the following command to check individual node uptime and status:
    curl -s -k -X GET "https://$LOGINSIGHT_HOST/api/v1/cluster/nodes" \
      -H "Authorization: Bearer $LOGINSIGHT_API_TOKEN" \
      -H "Accept: application/json" | jq '.nodes[] | {id, ip, status, uptime}'
    
  4. Report to User: Summarize the JSON output into a clean, readable table detailing the overall health and the status of each node. Point out any errors or disconnected nodes explicitly.