Published · 5 min read
Tutorial: AI triage for Zabbix alerts, on your own infra
Claude: We shouldn't do the integration yet, as Zabbix is not as widely used as Prometheus/Alertmanager...#
Me:#

Yet I built the integration anyway, as in reality people are asking for it.
Here's the setup: wire Zabbix into AlertINT with one command and three values pasted into Zabbix. Problems become correlated, LLM-triaged Situations you can read in the Zabbix menu and in your AI coding agent over MCP. Read-only and self-hosted.
Updated 2026-11-03: setup now uses the one-line installer and the AlertINT Zabbix module. The manual media type and trigger action steps live in the docs.
Pre-flight checklist#
Have these ready before you start:
- Zabbix 7.0 LTS or later (tested on 7.0 and 7.4) and a Super admin account.
- A Linux host with systemd for the agent. Easiest is the Zabbix frontend host itself: then the installer adds the module too.
- Network: the Zabbix server reaches the agent on port
9911(webhook); the Zabbix frontend and your workstation reach it on port9912(MCP). - An Anthropic API key.
- Optional: an MCP client (Claude Code, Cursor, or Windsurf).
Part 1: Install the agent and the module#
On the Zabbix frontend host:
curl -fsSL https://alertint.com/zabbix/install.sh | ALERTINT_TRIAL_KEY=YOUR_KEY sh
What it does:
- Installs and starts the AlertINT agent as a systemd service, with the Zabbix webhook on.
- Finds the Zabbix frontend and installs the
AlertINT module into its
modulesfolder (checksum-verified). - Prints three values for Zabbix: the agent's MCP address, the MCP token and
the webhook token. They are also in
/etc/alertint/alertint.env. - Never changes your Zabbix configuration. That happens in Part 2, where you can see it.
Leave out ALERTINT_TRIAL_KEY and the script asks for the key without
echoing it. Agent on a different host than the frontend? Run the installer
there, then
install the module by hand.
Part 2: Connect Zabbix#
-
Enable the module. Administration → General → Modules → Scan directory → enable AlertINT. An AlertINT section appears in the main menu.
-
Agent. AlertINT → Settings, section Agent: paste the MCP address and MCP token, press Test connection, then Save.
-
Connect. Section Connect Zabbix: paste the webhook token and press Connect. It creates everything the manual setup used to:
Object Name Media type AlertINTUser group AlertINT service(read on every host group, no login)User alertint-svcTrigger action Send to AlertINT, with recoveryGlobal macro {$ZABBIX_URL}, only if missingTest host AlertINT testConnect ends with a webhook check run by the Zabbix server, so a wrong token or a blocked port shows up right there.
-
Test. Section Send a test problem: press Send test problem. The page follows it through five stages: Problem in Zabbix → Sent by Zabbix → Received by AlertINT → Situation → Finding. The first analysis usually takes about a minute. Then it resolves the problem and follows the recovery.
That's the push side done. New problems now show up under AlertINT → Situations.
Part 3: Context pull (optional, recommended)#
This is the half that makes findings noticeably better on Zabbix infra: the LLM (and your MCP client) get the trigger's runbook, dependencies, flap count, host inventory/topology, maintenance state, other open problems on the host, and ack history. Read-only by construction.
-
Create read access. AlertINT → Settings, section Let AlertINT read Zabbix: check the Zabbix address (the one the agent host can open) and press Create read access. It sets up:
Object Name User role AlertINT read-only API: API only, read methods onlyUser alertint-svc(from Connect) gets that roleAPI token AlertINT read-only API -
Run the command it prints on the agent host:
curl -fsSL https://alertint.com/zabbix/install.sh | ZABBIX_URL='https://your-zabbix.example.com' ZABBIX_API_TOKEN='...' shThe installer keeps your agent, tokens and settings, turns on the Zabbix API, and checks that the token can read hosts:
✔ Zabbix API turned on (old config.yaml kept as config.yaml.bak): https://your-zabbix.example.com, the token can read 42 hosts -
Check. Back in Settings, press Check: the agent reads Zabbix with the token, the same way an investigation does.
No module? Create the role, user and token by hand (read-only API identity), then run the same command with your token.
Apache-only gotcha: if the Zabbix frontend runs under Apache, add
CGIPassAuth Onto its Apache config. Otherwise theAuthorizationheader is silently stripped and every context fetch comes back empty/unauthorized while the health check stays green (nginx setups are unaffected). If context is mysteriously missing, check this first.
Part 4: Use it from your editor#
-
Connect your MCP client: copy-paste configs for Claude Code, Cursor and Windsurf. The server is
http://<agent-host>:9912/mcp, the token isALERTINT_MCP_TOKENfrom/etc/alertint/alertint.env. Then ask:List recent AlertINT Situations and summarize the most critical one.
-
Try the Zabbix MCP tools (if Part 3 is on):
Show CPU history for
<host>over the last 2 hours. List open problems on<host>with severity at least high. -
Trip a real trigger (or temporarily lower a threshold on a test host), and watch it land under AlertINT → Situations.
What "working" looks like#
- Zabbix problems are grouped per host with zero grouping config; severities rank correctly even if your install renamed severity display names.
- Findings on Zabbix Situations include the operator context sections (runbook, dependencies, host topology, ack history) when Part 3 is on.
- To correlate one condition across hosts (shared dependency down on
many hosts), tag the trigger with a
servicetag: tags become labels and join grouping automatically.
Troubleshooting quick hits#
| Symptom | Likely cause |
|---|---|
| Module missing after Scan directory | On 7.2+ packages the modules folder is /usr/share/zabbix/ui/modules, not /usr/share/zabbix/modules |
| Settings: agent unreachable | The frontend can't reach port 9912: address, agent service or firewall |
| Connect: Zabbix server could not reach… | The server (not the frontend) can't reach port 9911. In split setups, set Webhook address in the Agent section |
| Problems on some hosts never arrive | Their host group was added after Connect. Press Connect again |
| Health green, but context sections empty | Press Check in Settings. Then: Apache stripping the auth header (CGIPassAuth On), the token's user lacks Read on the host group (Connect again), or a wrong ZABBIX_URL |
| Situation exists but no finding | Check journalctl -u alertint for the LLM call: usually a missing or invalid API key |
More in the module README.
That's the loop#
Zabbix keeps doing what it does; AlertINT sits beside it, read-only, and turns problem storms into investigated Situations, waiting in Zabbix and in your editor. The full docs cover everything above in more depth.
Questions, rough edges, or a setup that didn't match this post? Open an issue on GitHub or mail me — early-tester feedback is exactly what this phase is for.