Proxy basics
In this chapter we will explain what a proxy is, why you may need or consider it, what the basic requirements are and what the difference is between Active proxies and Passive proxies.
What is a Zabbix Proxy
A Zabbix proxy is actually a kind of lightweight Zabbix server process that collects monitoring data from devices on behalf of the real Zabbix server. It's designed to offload the server by handling data collection tasks, which is particularly useful in distributed environments or when monitoring remote locations with limited connectivity.
The proxy gathers the requested performance and availability data from monitored devices, applications, and services, then forwards this information to the Zabbix server for processing and storage. This architecture helps reduce network traffic, simplifies network firewall configurations and improves the overall efficiency of your monitoring system.
So in short a Zabbix proxy can be used to:
- Monitor remote locations
- Monitor devices on separate network segments
- Monitor locations that have unreliable connections
- Offload the Zabbix server when monitoring thousands of devices
- Simplify the maintenance and management
Proxy requirements
If you'd like to set up a few proxies for testing or in your production environment, you'll need some Linux hosts for installation. While proxies are also available as containers (so you don't necessarily need full VMs), we'll use a VM in this demonstration to show the installation process. Don't worry, we'll cover container deployments as well.
Although proxies are generally lightweight, since Zabbix 4.2 they can perform item value preprocessing which can be CPU-intensive. Therefore, the number of CPUs and memory you'll need depends on:
- How many hosts you'll be monitoring
- How many preprocessing rules you'll implement on the items on those hosts
Proxy configuration updates
For a proxy to know what devices it has to monitor, it will receive configuration updates from the Zabbix server. These include:
- New or modified monitoring items, triggers, or templates assigned to the proxy.
- Changes to host configurations or data collection rules.
Before Zabbix 7.0, a full configuration synchronisation was performed by proxies every 3600 seconds (1 hour) by default. With the introduction of Zabbix 7.0, this behaviour changed significantly. Now, configuration synchronisation occurs much more frequently, every 10 seconds by default. With this change, incremental configuration updates were introduced, meaning that instead of transferring the entire configuration, only the modified entities are synchronised, greatly improving efficiency and reducing network overhead.
Upon initial proxy startup, a full configuration synchronisation is always performed. Subsequently, both the server and the proxy maintain a revision of the configuration. When a change is made on the Zabbix server side, only the differences, based on these revision numbers, are applied to the proxy's configuration, rather than a complete replacement of the entire configuration as in older versions. This incremental approach allows for near real-time propagation of configuration changes while minimising resource consumption.
Note
When working with a Zabbix proxy, it’s important to distinguish between two types of "configuration":
- Proxy Configuration Settings
- These are the local settings defined in the proxy’s configuration file. They control how the proxy operates.
- Configuration Updates from the Zabbix Server
-
These are dynamic updates pushed by the Zabbix server to the proxy. They include:
- New or modified monitoring items, triggers, or templates assigned to the proxy.
- Changes to host configurations or data collection rules.
Proxy throttling
Imagine you need to restart your Zabbix server and that all proxies immediately start to push the data they gathered during the downtime of the Zabbix server.
This would create a huge amount of data being sent to the Zabbix server at once and possibly bring it to its knees in no time. Since Zabbix version 6, the developers have added protection for these kinds of situations. When the Zabbix server history cache is full, write access to the history cache is throttled, which stalls the server's data gathering processes. To avoid this, proxy throttling was added. Currently it cannot be disabled.
When history cache usage reaches 80%, the Zabbix server enters throttling mode. It stops accepting data from proxies and puts those proxies on a throttling list. When cache usage falls to 60%, the server begins processing the throttling list. This means the first proxy that attempted to upload data during the throttling period is served first, and the server will not accept data from other proxies until that upload is done. Then the server moves on to the next proxy on the list.
Zabbix 8.0 refines this recovery phase. Even while processing the throttling list, the server may still reject proxy uploads that contain very large batches (approximately 10,000 records or more) until cache pressure decreases further. This reduces the risk of repeated cache overloads while the server recovers. The same protection applies in normal mode: if history cache usage exceeds 60%, the server may throttle individual proxies that send very large packets.
Throttling mode ends when cache usage drops to 20% or when the throttling list is empty, after which the server accepts data from all proxies again. If usage reaches 80% again before that, the server stops accepting proxy data again.
| History write cache usage | Zabbix server mode | Zabbix server action |
|---|---|---|
| Reaches 80% | Wait | Stops accepting proxy data, but maintains a throttling list (prioritised list of proxies to be contacted later). |
| Falls to 60% | Throttled | Starts processing the throttling list, one proxy at a time. May still reject very large uploads (approximately 10,000+ records). |
| Above 60% (normal mode) | Normal, but prepared to be throttled | May refuse very large proxy uploads from individual proxies; continues accepting other proxy data. |
| Drops to 20% | Normal | Drops the throttling list and starts accepting proxy data normally. |
Tip
Use the internal item zabbix[wcache,history,pused] to correlate this behaviour
with a metric. The throttling decision is made at the moment the server evaluates
a proxy upload, so a short spike may not be visible in the graph, depending on
the item's update interval.
Active versus Passive proxy
Zabbix proxies have been available since Zabbix 1.6. At that time they were available only as what we know today as Active proxies. Active means that the proxy will initiate the connection by itself to the Zabbix Server. In version 1.8.3 passive proxies were introduced. This allows the server to connect to the proxy instead of the other way around.
As mentioned before Zabbix agents can simultaneously be in an active and passive mode. However, proxies cannot be in both modes at the same time, meaning we have to choose the way of the communication when we configure a proxy.
Active/Passive agent on Active/Passive proxy ?
Remember that choosing the proxy mode active or passive has no impact on how Zabbix agents can communicate with this proxy. It's perfectly fine to have an active proxy and a passive agent working together.
Active proxy
In active mode, the proxy takes full control of its operational settings. This includes managing when it checks for new configuration updates and when it sends collected data to the server.
It’s important to note that the key settings for an active proxy are defined exclusively in the Zabbix proxy configuration. Any adjustments to these parameters should be made directly within the proxy configuration files.
These are the proxy configuration settings you will need to set in active mode:
Mandatory:
ProxyMode:0- Sets the proxy in 'Active' modeServer: IP or DNS of the Zabbix serverHostname: Proxy name - this needs to be exactly the same as configured in the frontend.
Optional:
ProxyOfflineBuffer: How long we like to keep data in the DB (in hours) if we can't reach the Zabbix server.ProxyLocalBuffer: How long we like to keep data in the DB (in hours) even when it is already sent to the Zabbix server.ProxyConfigFrequency: ReplacesConfigFrequencyin earlier versions and defines how often we request configuration updates (every 10 seconds) from the Zabbix server.DataSenderFrequency: How often data is sent to Zabbix server (every second).
When configuring resources for an active proxy, it’s important to account for how it connects to the Zabbix server. Since Zabbix 6.4, an active proxy uses at most two trapper processes on the server at any one time:
- One trapper handles the exchange of collected data (and tasks, such as remote commands).
- One trapper handles configuration synchronisation.
This is the result of two changes introduced in Zabbix 6.4:
- Heartbeat sender removed. The proxy no longer has a separate heartbeat sender
process (ZBXNEXT-7931), so the dedicated heartbeat connection that earlier
versions opened to the server is gone. The internal item
zabbix[process,heartbeat sender]is no longer supported and has been removed from the templates. - Incremental configuration sync. The proxy no longer needs a full copy of the configuration on every update (ZBXNEXT-3290). Only changes are transferred, so configuration connections are generally shorter and lighter than before.
Tip
As a rule of thumb, allow for two trapper processes per active proxy on the
Zabbix server. Trappers are a shared pool that is also used by active agents
and Zabbix sender, so treat this as a minimum rather than a complete sizing.
Monitor trapper utilisation (zabbix[process,trapper,avg,busy]) and increase
StartTrappers if it stays high.

3.2 Active proxy communication
Passive proxy
In contrast to an active proxy, a proxy in passive mode will have its operational settings controlled by the Zabbix server.
Hence, configuring passive proxies requires changes in both the Zabbix server and the Zabbix proxy configuration files as it is now the server that controls when and how proxy data is requested by making use of pollers.
The most important settings we can find back in the proxy configuration file are:
Mandatory:
ProxyMode:1- Sets the proxy in 'Passive' modeServer:IP or DNS of the Zabbix server
Optional:
ProxyOfflineBuffer: How long we like to keep data in the DB (in hours) if we can't reach the Zabbix server.ProxyLocalBuffer: How long we like to keep data in the DB (in hours) even when it is already sent to the Zabbix server.
And finally the config settings we need to change on our Zabbix server:
StartProxyPollers: The number of pollers to contact proxies.ProxyConfigFrequency: ReplacesConfigFrequencyand defines how often Zabbix server will send configuration changes to all proxies.ProxyDataFrequency: How often Zabbix server will request monitored data from our proxies.
Tip
It is not required for StartProxyPollers to be equal to the number of
passive proxies you have as one poller can poll multiple proxies. The
recommended value however depends on your environment and workload. If you
have multiple passive proxies and experience delays in configuration updates
or incoming item values, you may increase this value. However, it is a good
practice to start with 1, monitor the performance and adjust in accordance.
Zabbix provides out-of-the-box templates for monitoring Zabbix server and
Zabbix proxies internal metrics. Make sure to use them and closely watch
the value of the zabbix[proxy_history] item on the proxies which represents
the number of values the proxy has received that are yet to be sent to the
Zabbix server.

3.3 Passive proxy communication
Proxy runtime control options
Just like the Zabbix server, our proxy supports runtime control options.
Always check the latest options with the --help option. But here is a short overview of
options available to use.
zabbix_proxy --runtime-control housekeeper_execute-
Triggers the immediate execution of the Zabbix housekeeper process on the proxy. The housekeeper is responsible for cleaning up outdated data (e.g., old history, trends, or events) according to the configured retention periods in Zabbix. This command forces the housekeeper to run now, instead of waiting for its scheduled interval.
zabbix_proxy --runtime-control log_level_increase=target-
Increases the log verbosity level for a specific target process (e.g., by type like
configuration syncer,housekeeper,icmp pinger, by type and number likepoller,3or by PID). This is useful for debugging or troubleshooting, as it provides more detailed log output for the specified target. For a full list of available targets, check the man-page https://www.zabbix.com/documentation/8.0/en/manpages/zabbix_proxy. Example:log_level_increase="http poller"would make http poller-related logs more verbose. zabbix_proxy --runtime-control log_level_decrease=target-
Decreases the log verbosity level for a specific target, reducing the amount of log output generated. This is helpful to lower noise in logs after debugging or to optimise performance by reducing I/O overhead. Example:
log_level_decrease=trapper,2would reduce the verbosity of trapper-related logs of the second trapper process. zabbix_proxy --runtime-control snmp_cache_reload-
Forces the proxy to reload its SNMP cache. This is useful if you've made changes to SNMP configurations (e.g., updated community strings, OIDs, or device IPs) and want the proxy to immediately pick up the new settings without restarting the entire service.
zabbix_proxy --runtime-control diaginfo=section-
Generates diagnostic information for a specific section of the proxy’s operation. This is typically used for troubleshooting or performance analysis. The section parameter can target areas like history cache, preprocessing, or locks. Example:
diaginfo=preprocessingwould provide detailed statistics about the preprocessing manager.
Proxy firewall
Since proxies work like small Zabbix servers, when it comes to port connectivity for services like Zabbix agents, SNMP, and the others nothing changes, all ports need to be configured the same as you would on a Zabbix server.
When it comes to port for the proxy it depends on our proxy being active or passive.
- Active Proxy: Zabbix server needs to accept connections on port
10051/tcp, so the proxy can connect. - Passive Proxy: Zabbix proxy needs to accept connections on port
10051/tcp, so on the proxy so that theservercan connect to the proxy.
Do note that for an active Zabbix Agent or Zabbix Sender to communicate with
your proxy, whether it is an active or a passive one, this will require port
10051/tcp to be open on your proxy server: