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
- Identify the target (host or item) of the request.
- Use the bundled scripts to query the API.
- Format the problem report as requested.
- Provide reference links for events.
Security Rules
- Never share the
.envfile containingZABBIX_URLandZABBIX_TOKEN. - To configure the skill, copy
.env.templateto.envand fill in the credentials. - Prefer read (GET) operations over mutations (POST/PUT).
- Confirm the target host before acknowledging events.
- The
.envfile 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."