360 Secure SkillHub
360 安全技能中心

Zabbix Connector

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

分类:自动化
rickkbarbosa
rickkbarbosa
热度 37.11
最近更新 2026-05-11 17:47:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rickkbarbosa/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."