agentleFS
HybridAIOneHybridAIOne/hybridclaw/skills/zabbix/SKILL.md

zabbix

Skill165 starsChanged 49 days agoMITView on GitHub

Read Zabbix monitoring state, inspect monitored hosts, summarize current or recent problems, and prepare guarded incident-response context without exposing Zabbix credentials.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for Zabbix production monitoring reads: API health checks, monitored host inventory, current or recent problems, …

    line 60
  2. Very specific:

    When a terminal-side live smoke test is needed, pass --live to the same http-request command.

    line 92
  3. Very specific:

    Do not call Zabbix with curl when the gateway http_request tool is available.

    line 98
  4. Very specific:

    If the operator has a tenant-specific frontend path, pass it with --base-url or set ZABBIX_BASE_URL in the runtime environment.

    line 102
  5. Distinctive:

    Read current or recent problems:

    line 133
  6. Distinctive:

    Read triggers in problem state:

    line 142
  7. Distinctive:

    Run one live gateway-proxied request, with no retry loop:

    line 150
  8. Very specific:

    Use IDs when filtering by host or host group because Zabbix JSON-RPC read methods filter most reliably on hostids and groupids:

    line 172
  9. Distinctive:

    When summarizing Zabbix state, preserve the event id, host, trigger/problem name, severity, acknowledged/suppressed state, age, tags, and …

    line 223

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Zabbix

Use this skill for Zabbix production monitoring reads: API health checks, monitored host inventory, current or recent problems, problem-state triggers by severity, and concise incident summaries that can feed R29 cards. Zabbix tells us what is broken; local or SSH maintenance skills investigate and remediate on the affected host.

This v1 skill is read-only. Do not acknowledge, suppress, close, update, or delete Zabbix objects through this skill. If a later task adds write operations, each write must be amber/red, require an exact operator grant through F8/F14, and include the Zabbix event id and action in the approval text.

Credential Rules

Set or update the API token in this order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set ZABBIX_API_TOKEN.
  2. Browser /chat or TUI fallback: /secret set ZABBIX_API_TOKEN "<zabbix-api-token>".
  3. Local console fallback:
hybridclaw secret set ZABBIX_API_TOKEN "<zabbix-api-token>"

For live calls, run the helper to build a gateway http_request payload and pass only the emitted httpRequest object to the built-in http_request tool. The helper sets bearerSecretName: "ZABBIX_API_TOKEN" for authenticated Zabbix methods so the gateway injects the bearer token server-side. It never prints Authorization headers, token values, usernames, passwords, or Zabbix session tokens.

When a terminal-side live smoke test is needed, pass --live to the same http-request command. It posts the same httpRequest object to the HybridClaw gateway /api/http/request route and stops after the first Zabbix 401/403 response. Set HYBRIDCLAW_GATEWAY_URL and HYBRIDCLAW_GATEWAY_TOKEN only for gateway access; do not store those as Zabbix credentials.

Do not call Zabbix with curl when the gateway http_request tool is available. Do not ask the user to paste a Zabbix API token, username/password, or session token into chat.

If the operator has a tenant-specific frontend path, pass it with --base-url or set ZABBIX_BASE_URL in the runtime environment. The helper accepts both https://zabbix.example.com/zabbix and https://zabbix.example.com/zabbix/api_jsonrpc.php and normalizes both to the JSON-RPC endpoint. HTTPS is required by default. Use --allow-http only for a trusted local or private Zabbix frontend where plaintext HTTP is an intentional operator choice.

Command Contract

Show helper usage:

node skills/zabbix/zabbix.cjs --help

Build an unauthenticated API smoke-test request:

node skills/zabbix/zabbix.cjs --format json http-request api-version \
  --base-url https://zabbix.example.com/zabbix

List monitored hosts and interfaces:

node skills/zabbix/zabbix.cjs --format json http-request hosts \
  --base-url https://zabbix.example.com/zabbix \
  --monitored-only

Read current or recent problems:

node skills/zabbix/zabbix.cjs --format json http-request problems \
  --base-url https://zabbix.example.com/zabbix \
  --recent \
  --limit 50

Read triggers in problem state:

node skills/zabbix/zabbix.cjs --format json http-request triggers-problem \
  --base-url https://zabbix.example.com/zabbix \
  --limit 50

Run one live gateway-proxied request, with no retry loop:

node skills/zabbix/zabbix.cjs --live --format json http-request problems \
  --base-url https://zabbix.example.com/zabbix \
  --recent \
  --limit 50

The helper prints a wrapper such as { "command": "http-request", "httpRequest": { ... } }. Pass only the httpRequest value to the built-in http_request tool.

Official API references: Zabbix API overview, host.get, problem.get, and trigger.get.

Filters

Use IDs when filtering by host or host group because Zabbix JSON-RPC read methods filter most reliably on hostids and groupids:

node skills/zabbix/zabbix.cjs --format json http-request problems \
  --base-url https://zabbix.example.com/zabbix \
  --host-id 10084 \
  --group-id 2 \
  --severity high \
  --unacknowledged \
  --unsuppressed \
  --tag service=postgres \
  --time-from 1767225600 \
  --limit 25

Supported read filters:

  • --host-id <id> / --host <id> and --group-id <id> / --host-group <id> can be repeated.
  • --tag <name> or --tag <name=value> can be repeated.
  • --severity <0-5|name> can be repeated or comma-separated.
  • --acknowledged or --unacknowledged for problem reads.
  • --suppressed or --unsuppressed for problem reads.
  • --time-from <unix-seconds> and --time-till <unix-seconds> for problem reads.
  • --recent includes recently resolved problems; omit it for unresolved current problems.

Severity names are not-classified, information, warning, average, high, and disaster.

Error Interpretation

  • Gateway errors saying ZABBIX_API_TOKEN is not set, unavailable, missing, or unresolved mean the active HybridClaw runtime cannot resolve the stored secret. Ask the operator to set it in the same runtime/session and retry once after the runtime can see the secret.
  • Gateway errors saying ZABBIX_API_TOKEN is blocked by secret resolution policy mean the stored secret exists but policy/runtime access blocked the injection path. Report the policy problem instead of asking for the same secret again.
  • Zabbix 401 or 403 responses mean the gateway injected a token but Zabbix rejected it or the token lacks permission. Stop after that first failed live call and report a credential/setup problem; do not retry in a loop.
  • Zabbix JSON-RPC error responses should be reported with the method, code, message, and data. Do not transform them into local remediation steps unless the user asks.
  • Network, timeout, 429, or 5xx responses are upstream or connectivity failures. Report the response and retry only when the user asks.

Incident Summary Guidance

When summarizing Zabbix state, preserve the event id, host, trigger/problem name, severity, acknowledged/suppressed state, age, tags, and any maintenance or acknowledgement context. Keep remediation separate from observation unless another approved maintenance skill has verified the host state.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.