Zabbix Integration
Enrich your asset inventory with monitoring data from Zabbix, including host status, triggers, and active problems.
Overview
A Zabbix zone connects to a Zabbix server through its JSON-RPC API. Each run records the monitored hosts as zabbix_host assets and the enabled triggers as zabbix_trigger assets, matches every host to the infrastructure assets discovered by other zones, enriches them with monitoring data and links them with monitored_by dependencies. At the end of the run the active problems and the host availability become health checks on the matched assets (zabbix_problem and availability, see Health Sources).
Note: Zabbix complements the other zone types (network, SNMP, vSphere, agents…): run them first so the Zabbix hosts have assets to match.
Connection Configuration
To configure a Zabbix discovery zone, provide the Zabbix API URL and authentication credentials.
- url (required): The Zabbix JSON-RPC API URL (e.g., "http://zabbix.example.com/api_jsonrpc.php" or "http://zabbix.example.com/api" for Zabbix 7+).
- auth_type (optional): The authentication method. Options are "password" (default) for username/password login, or "token" for API token authentication (Zabbix 5.4+).
- username (required if auth_type is "password"): The Zabbix user account.
- password (required if auth_type is "password"): The Zabbix user password.
- api_token (required if auth_type is "token"): A Zabbix API token. Recommended for automated integrations as tokens can be scoped and rotated independently.
- tls_skip_verify (API only, default false): skip TLS certificate verification. Use only in development environments.
What Gets Imported
Each run reads, from the monitored hosts only:
- Hosts (host.get): every host becomes a zabbix_host asset with its interfaces, host groups, templates, tags, availability and maintenance state. Hosts matched to infrastructure assets enrich them under attributes.monitoring.zabbix, with a monitored_by dependency from the asset to the zabbix_host
- Triggers (trigger.get, enabled triggers of monitored hosts): every trigger becomes a zabbix_trigger asset with its expression, priority and state, linked to its hosts (depends_on); the matched assets receive the count of their triggers in problem state
- Problems (problem.get, not suppressed): the active problems are attached to the matched assets and turned into zabbix_problem health checks
Asset Matching
Zabbix hosts are matched with the same AssetMatcher as Prometheus, using the addresses and DNS names of their interfaces and their host names: IP address (confidence 0.95), FQDN (0.93), hostname (0.80). A host can match several assets; each one is enriched.
Trigger Severities
Zabbix trigger and problem severities, and the health state each problem produces:
- 0 - Not classified → healthy
- 1 - Information → healthy
- 2 - Warning → degraded
- 3 - Average → degraded
- 4 - High → critical
- 5 - Disaster → critical
Configuration Options
Additional connection_config keys, settable through the API, control the scope of the import.
- discover_triggers (default true): import triggers.
- discover_problems (default true): import active problems (and the zabbix_problem health checks).
- host_group_filter (optional): limit the import to the hosts of the listed host groups. When empty, all host groups are included.
- connect_timeout (default 10s): Connection timeout for the Zabbix API.
- read_timeout (default 30s): Read timeout for API responses.
Tips and Best Practices
Consider the following when setting up the Zabbix integration.
- Run Zabbix enrichment after your primary discovery zones so that assets are already in the inventory when matching occurs
- Use API token authentication (Zabbix 5.4+) instead of username/password for better security and easier rotation
- A discovery interval of 15-30 minutes works well since Zabbix host configurations change infrequently
- Use host_group_filter to limit scope if you have a large Zabbix installation and only need monitoring data for specific groups
- Create a dedicated Zabbix user or API token with read-only permissions for AsPeekIt
- If you run multiple Zabbix servers (e.g., per datacenter), create a separate zone for each