360 Secure SkillHub
360 安全技能中心

Zabbix Connector

该 Skill 通过捆绑的 Python 脚本调用 Zabbix API,用于查询主机活跃告警与问题、列出主机/监控项/分组、获取历史指标与图表,并确认事件。凭据由 .env 文件提供,SKILL.md 要求优先使用只读操作,且发布包中不得包含真实凭据。

rickkbarbosa
rickkbarbosa
热度 32.60
最近更新 2026-05-11 17:47:22
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:工作流 / 报告撰写 / 数据处理 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add zabbix-connector
Metadata
name
zabbix
description
Skill for Zabbix API monitoring and interaction. Use it to check active alerts, list problems, manage hosts, and query monitoring data.
metadata
{"openclaw":{"os":["linux","darwin"],"requires":{"bins":["python3"]}}}

Zabbix Skill

Use this skill to monitor systems, query alerts, and access historical metrics through the Zabbix API.

Scope

This skill is meant for:

  • Querying active alerts and problems from hosts.
  • Listing hosts, items, and groups.
  • Accessing historical metrics and graphs.
  • Acknowledging events and problems.

Do not use this skill for:

  • Modifying critical Zabbix server settings without authorization.
  • Exposing credentials or authentication tokens.

Recommended Flow

  1. Identify the target (host or item) of the request.
  2. Use the bundled scripts to query the API.
  3. Format the problem report as requested.
  4. Provide reference links for events.

Security Rules

  • Never share the .env file containing ZABBIX_URL and ZABBIX_TOKEN.
  • To configure the skill, copy .env.template to .env and fill in the credentials.
  • Prefer read (GET) operations over mutations (POST/PUT).
  • Confirm the target host before acknowledging events.
  • The .env file with real credentials must not be included in the release package.

Bundled Resources

scripts/zabbix_api.py

Central script for Zabbix API communication. It provides methods for host_get, problem_get, history_get, among others.

Internal usage example:

zb = ZabbixDirect(ZABBIX_URL, ZABBIX_TOKEN)
problems = zb.get_active_problems_report()

Example Requests That Should Trigger This Skill

  • "What are the active alerts on Zabbix?"
  • "Show me the last 7 days' graph for PETR4 on the Tracker server."
  • "Acknowledge event X on Zabbix."