Understanding Zabbix Internal Processes and Health Monitoring
Introduction
While Zabbix is known for monitoring infrastructure, it can also monitor itself. Through internal checks, Zabbix continuously measures its own operational state, from poller load and queue length to cache usage and data throughput. Monitoring these internal metrics allows administrators to detect overload conditions, database bottlenecks, and sizing issues early, ensuring the monitoring system remains reliable and performant.
Zabbix is not a single process. It is a collection of specialised worker processes, each responsible for a specific stage of the monitoring pipeline. At scale, performance is rarely limited by a single factor — it depends on how well these processes keep up with the flow of incoming data. When one part of the pipeline becomes overloaded, visible symptoms emerge: queue growth, delayed metrics, or slow alerting.
The Zabbix Internal Host
Each Zabbix installation automatically creates a virtual internal host:
- Zabbix server — represents the server process itself
- Zabbix proxy — represents each proxy instance
These hosts are not linked to any physical device or network interface. They exist
entirely within the Zabbix backend and collect self-monitoring data through internal
items with keys beginning with zabbix[...].
Examples:
These items require no agent or SNMP interface — they are gathered internally by Zabbix itself.
The Processing Pipeline
At a high level, Zabbix operates as a sequential pipeline:
Each stage is handled by a different group of specialised processes. Understanding how these processes relate to each other is the key to diagnosing performance problems. Monitoring their utilisation allows you to quickly identify where bottlenecks occur.
Tip
Each stage in this pipeline introduces its own scaling limits. When troubleshooting, the goal is not to optimise everything at once, but to identify which stage is currently the bottleneck.
Internal Processes
Pollers — Data Collection
Pollers are responsible for actively collecting data from monitored targets, including agent checks, SNMP polling, and simple checks. They form the entry point of the pipeline.
When pollers are overloaded:
- Item checks are delayed
- The queue starts growing
- Collected data becomes stale
Relevant metric: zabbix[process,poller,avg,busy]
Tip
Sustained poller utilisation above 75–80% usually indicates that more pollers are
required (StartPollers), or that item design needs to be optimised.
Preprocessing — The Hidden Bottleneck
Preprocessing is one of the most critical and often underestimated parts of the Zabbix pipeline. Whenever an item uses JSONPath, XPath, regular expressions, value mapping, or dependent items, its data is handled by preprocessing workers before being written to the database.
In modern Zabbix environments — especially with HTTP checks, API monitoring, LLD, or bulk SNMP/JSON collection — preprocessing becomes a central component of the system. It is easy to overlook because the bottleneck is invisible until the queue starts growing or trigger evaluation begins to lag.
When preprocessing is overloaded:
- Dependent items fall behind their master items
- Data appears delayed or out of order
- Trigger evaluation is postponed
- Queue growth may occur even if pollers are not overloaded
Relevant metric: zabbix[process,preprocessor,avg,busy]
Tip
If preprocessing load is high, increasing StartPreprocessors is often required.
However, reducing unnecessary preprocessing steps or simplifying expressions
can have a larger impact than simply adding more workers.
Tip
Delayed proxy synchronisation introduces latency into the entire monitoring pipeline, even if collection on the proxy itself is functioning correctly.
Trappers — Incoming Data
Trappers process incoming data pushed to Zabbix, such as active agent data, zabbix_sender
values, and proxy-forwarded data.
When overloaded:
- Incoming data is delayed
- Push-based monitoring becomes unreliable
- Proxy synchronisation may lag
Relevant metric: zabbix[process,trapper,avg,busy]
Alerters — Notifications
Alerters execute media types and send notifications. They are the final stage of the pipeline after a trigger fires.
When overloaded:
- Alerts are delayed
- Escalations fail or are dropped
- Notifications may never be delivered
Relevant metric: zabbix[process,alerter,avg,busy]
Note
Alerting delays are often mistaken for configuration problems, while the root cause is actually alerter saturation.
Housekeeper — Data Cleanup
The housekeeper is responsible for removing outdated data from the database, including item history and trends, events and problems, user sessions, and data left behind by deleted objects.
When overloaded:
- Database size grows uncontrollably
- Queries become slower
- Overall system performance degrades
Relevant metric: zabbix[process,housekeeper,avg,busy]
How housekeeping works internally: The housekeeper runs in cycles. How often
it runs is set by HousekeepingFrequency, and how much it deletes per cycle
by MaxHousekeeperDelete. Any data that is not removed in one cycle is carried
over to the next. Automatic housekeeping can be enabled and configured
in Administration | Housekeeping.
The housekeeper does not immediately delete data when objects are removed.
Deleting a host, for example, deletes its items, but not their history, trends,
or problems. Instead, cleanup tasks are stored in the housekeeper table, and
the housekeeper processes them in later cycles. When items (including low-level
discovery rules), triggers, services, or network discovery rules are deleted,
database triggers populate this table. Each task consists of three fields:
| Field | Description |
|---|---|
housekeeperid |
Task ID |
object |
Object type: 0 item, 1 trigger, 2 service, 3 discovered host, 4 discovered service |
objectid |
Object ID, which helps the housekeeper find the data related to the object |
For example, deleting a host with two items and one trigger populates the table like this:
| housekeeperid | object | objectid |
|---|---|---|
| 1 | 1 | 28724 |
| 2 | 0 | 59396 |
| 3 | 0 | 59397 |
The database triggers only record the task. They do not check whether any related data exists. That check is done by the housekeeper process when it removes the data. What it removes depends on the type of the deleted object:
- Items (including LLD rules): their data from all history and trends tables
(
history,history_str,history_log,history_uint,history_text,history_bin,history_json,trends,trends_uint), and their internal events from theproblemtable. - Triggers: their events from the event-related tables (
problem,event_symptom,events; the database itself removes events fromevent_recovery). The housekeeper also notifies the service manager process about the removed events. - Services: their problems from the
problemtable. Their events in theeventstable are removed only after the configured data storage period. - Discovered hosts and services (network discovery): their events from the
eventstable.
The housekeeper removes only events that are not associated with problems. An
outdated problem or recovery event, for example, is not removed while it is associated
with an open problem. When removing outdated entities, the housekeeper first removes
problems, then events. Tables in partition mode (TimescaleDB partitioned tables)
are skipped. Only tables in regular mode are processed.
This design prevents large blocking database operations, but introduces a delay between object deletion and actual data cleanup. In large environments, deleting many hosts or items can create a backlog of housekeeping tasks that may take multiple cycles to complete.
Tip
A separate trigger housekeeper process removes problems and events that have
no known source trigger. Its frequency is controlled by ProblemHousekeepingFrequency,
and you can start it manually with the trigger_housekeeper_execute runtime
control option. Until it runs, problems created by triggers that have since
been deleted can still generate service problems and assign them to services.
If your services use status calculation rules based on triggers that are
frequently discovered and undiscovered, consider increasing this frequency.
New in Zabbix 8.0
- Cleanup tasks are now created by database triggers instead of explicit calls in the application code.
- The housekeeper now also removes network discovery events of discovered hosts or services that have since been deleted, and all events associated with problems of triggers that have since been deleted. In earlier versions, only the problems themselves were removed, and the associated events remained until the Trigger data storage period expired.
Warning
Setting MaxHousekeeperDelete too low, or running large cleanup operations without
tuning, can lead to prolonged database growth and degraded performance.
Other Important Processes
While the processes above are the most commonly observed bottlenecks, Zabbix includes several other internal workers that play important roles:
- History syncers: Write collected values to the database
- Trend syncers: Aggregate historical data into trends
- Escalators: Manage multi-step alert escalations
- Configuration syncers: Distribute configuration changes across the system
- Availability managers: Track host and service availability
These processes are usually less visible during normal operation but can become critical in large or complex environments.
Queue Metrics
The internal queue is the most immediate indicator of the health of the entire monitoring pipeline. Every item check, regardless of how it is collected, enters this queue before being processed, preprocessed, and written to the database.
If the server is functioning correctly, the total queue length should remain low and stable. Zabbix categorises queued items by their delay, providing buckets for items waiting more than 1 minute, 5 minutes, or 10 minutes (visible in the Queue overview page). Items in these high-delay buckets are a direct sign of trouble: the monitoring system is collecting stale data.
| Example Key | Description |
|---|---|
zabbix[queue,0,1s] |
Items waiting less than 1 second — the normal, immediate flow of the system |
zabbix[queue,10m] |
Items delayed by at least 10 minutes — the primary indicator of a severe backlog |
If the queue grows consistently, Zabbix is falling behind. The root cause is usually one of three things: data collection processes are undersized, the database cannot accept data quickly enough, or the network between Zabbix and the database is saturated. A rapidly growing queue should trigger an immediate investigation.
Cache and Database Performance
Zabbix relies on multiple in-memory caches to operate efficiently. Their primary goal is to minimise load on the backend database by storing frequently accessed data, such as host inventory, item configurations, and recent history values. If processes need data that is not in memory, they must perform expensive, synchronous database queries, which severely impacts throughput.
The most critical cache is the Configuration Cache, which holds the entire
monitoring setup (hosts, items, triggers, etc.). Zabbix does not expose a
direct internal item for its utilisation — its health is inferred from general
performance issues and log file warnings. Its size is controlled by the CacheSize
parameter in the Zabbix Server configuration.
Other caches, such as the History Cache and Trend Cache, do report their status directly:
| Example Key | Description |
|---|---|
zabbix[wcache,values] |
History values currently stored in write cache |
zabbix[wcache,values,free] |
Free space in the write cache |
zabbix[rcache,buffer,free] |
Free read-cache buffer |
zabbix[values_processed] |
Values processed per second |
If free space in the History Cache (wcache,values,free) approaches zero while the
queue is growing, the server is under memory pressure. Increase the relevant cache
size parameters: CacheSize for Configuration Cache issues, and HistoryCacheSize
or TrendCacheSize for data processing bottlenecks.
General Statistics
Zabbix's internal host also provides overall system information:
- Total number of hosts, items, and triggers
- Number of unsupported items
- Average values processed per second (NVPS)
- Event processing rate
These metrics are invaluable for capacity planning and performance validation over time.
Viewing Internal Metrics
Zabbix provides several ways to inspect internal checks, each serving a different purpose:
-
Monitoring|Latest data|Host: Zabbix server: is the quickest way to view live current values of every internal item. It is ideal for immediate troubleshooting, checking recent busy percentages or confirming the current queue size. Filters can be applied to focus on specific groups (like "Queue" or "Cache"). -
Configuration|Hosts|Zabbix server|Items: allows you to inspect the item configuration itself. You can verify the exact syntax of an internal key (e.g.,zabbix[queue,10m]), check the collection interval, and view the full history over long time periods — essential for diagnosing recurring or historical issues. -
Official Zabbix health templates: (explained below) offer the most complete experience: data pre-organised into graphs, dashboards, and pre-configured alerts. This is the standard method for proactive monitoring.
Built-in Health Templates
Template Zabbix Server Health
This template is the cornerstone of Zabbix self-monitoring. It is pre-configured to monitor the operational health of the Zabbix server process and automatically links to the internal Zabbix server host upon installation, providing immediate visibility without any manual item creation.
It collects metrics across several critical areas:
- Process utilisation: Tracks busy percentage for pollers, trappers, alerters, history writers, and other components
- Queue health: Monitors delay windows to instantly identify whether Zabbix is falling behind
- Cache usage: Provides free-space metrics for in-memory stores like the History and Trend caches
- Data throughput: Tracks the rate of processed values (NVPS) for capacity planning
The template provides ready-to-use graphs, triggers, and dashboard widgets to visualise performance over time. If missing, it can be imported from:
https://github.com/zabbix/zabbix/tree/master/templates/app/zabbix_server
Zabbix proxy health
This template monitors the internal state of a Zabbix proxy, including:
- Proxy pollers and data senders
- Proxy queue and cache utilisation
- Items and hosts processed by the proxy
Note
Since Zabbix 7.0, proxies are automatically monitored for availability (online /offline) out of the box. However, these basic checks do not include internal performance statistics. To collect proxy internal metrics, you still need to:
- Install a Zabbix agent on each proxy host.
- Configure that agent to be monitored by the proxy itself (not by the server).
Only then can the Zabbix proxy health template correctly collect proxy performance data.
Template Remote Zabbix Server/Proxy Health
The Remote Zabbix server health and Remote Zabbix proxy health templates allow internal metrics to be collected by another Zabbix instance or a third-party system. These templates expose internal statistics via the Zabbix protocol, enabling remote supervision in distributed or multi-tenant environments.
Typical use cases:
- A service provider monitoring client Zabbix instances remotely
- A centralised monitoring system aggregating health data from multiple independent Zabbix installations
- Integration with an umbrella monitoring solution where Zabbix is not the primary system
Dashboards and Visualisation
Starting from Zabbix 6.0, the Zabbix Server Health dashboard provides a preconfigured visual overview of poller busy percentage, queue size, cache usage, values processed per second, and event processing rate. You can clone or extend this dashboard to track both server and proxy performance side by side.
Tuning Based on Internal Metrics
| Problem | Indicator | Recommended Action |
|---|---|---|
| Pollers >80% busy | zabbix[process,poller,avg,busy] |
Increase StartPollers |
| Preprocessing high | zabbix[process,preprocessor,avg,busy] |
Increase StartPreprocessors, simplify expressions |
| Long queue | zabbix[queue,10m] |
Add more pollers, tune database |
| Cache nearly full | zabbix[wcache,values,free] |
Increase HistoryCacheSize or TrendCacheSize |
| Unsupported items | zabbix[items_unsupported] |
Fix item keys or credentials |
| Proxy delay | Proxy internal metrics | Tune ProxyOfflineBuffer or increase sender count |
| Database growth | Housekeeper busy | Tune housekeeping limits, investigate DB performance |
The big picture: Zabbix performance issues are rarely caused by a single component. They emerge when one or more processes cannot keep up with the monitoring load.
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Queue growing | Pollers or DB bottleneck | poller busy %, DB performance |
| Data delayed | Preprocessing overloaded | preprocessor busy %, dependent items |
| Alerts delayed | Alerters overloaded | alerter busy % |
| Gaps in graphs | Proxy delay | proxy queue / delay |
| DB growing fast | Housekeeper / retention | housekeeper busy %, retention settings |
Alerting on Internal Health
Triggers can automatically warn about performance degradation before it becomes critical. Example:
Example
Similar triggers can be created for queues, caches, preprocessing workers, or proxy synchronisation delays. The ultimate goal is to ensure the monitoring system never fails silently.
Conclusion
Zabbix's internal health checks provide full insight into how the monitoring platform itself performs. Combined with the built-in health templates and dashboards, these metrics help administrators detect overload and capacity issues, verify proxy performance, tune process and cache parameters, and integrate Zabbix self-monitoring into broader enterprise systems.
By keeping the Zabbix server and proxies healthy, you ensure the reliability of every other monitored component.
Questions
- What is the purpose of the "Zabbix server" internal host, and why does it require no agent or SNMP interface?
- Why does Zabbix 7.0+ still require a special setup to collect proxy performance statistics, even though proxy availability is monitored out of the box?
- Why must a Zabbix proxy's agent be monitored by the proxy itself rather than by the server?
- What are the key differences between the Zabbix proxy health and the Remote Zabbix Server/Proxy Health templates?
- Which internal metric indicates poller utilisation, and at what threshold should you act?
- What are the three most common root causes of a growing item queue?
- Why is preprocessing often called a "hidden bottleneck," and what symptoms does it cause when overloaded?
- In what scenario would you use the Remote Zabbix Server Health template?
- Why does the Configuration Cache have no direct utilisation metric, and how do you infer its health?
- How can triggers help you detect Zabbix server performance problems automatically?