The example above is the full, commented sample zabbix_proxy.conf shipped with Zabbix 7.0. It includes 7.0-only options such as ProxyBufferMode, ProxyMemoryBufferSize and the asynchronous agent, HTTP and SNMP pollers. This guide covers which settings you must change, gives working minimal configs for active and passive proxies, and shows how to set up PSK encryption, validate the file and fix the most common startup and connection errors.
What zabbix_proxy.conf controls
A Zabbix proxy collects monitoring data for the Zabbix server, buffers it and forwards it. Proxies are used for remote sites, segmented networks, or to spread polling load away from the server. zabbix_proxy.conf sets how the proxy finds the server, which local database it uses, how much data it can buffer and how many collector processes it starts.
Package installs keep the file at /etc/zabbix/zabbix_proxy.conf. Source builds keep it at /usr/local/etc/zabbix_proxy.conf. Every parameter is a single Name=value line. Lines starting with # are comments, and any parameter left commented out uses the default shown in its description.
Note: The sample above contains parameters that older proxies do not recognise, including ProxyBufferMode, ProxyMemoryBufferSize, StartAgentPollers and StartHTTPAgentPollers. The Zabbix daemon refuses to start if it finds an unknown parameter. Use this file only with a Zabbix 7.x proxy, and keep the proxy on the same major version as the server.
Settings in the example you must change
The example has only a few active (uncommented) lines, and several of them are placeholders from the source tree. Check each one before you start the proxy.
| Parameter | Value in example | What to set |
|---|---|---|
Server | 127.0.0.1 | Active proxy: the address of the Zabbix server, or HA cluster nodes separated by ;. Passive proxy: a comma-separated list of the server IPs allowed to connect. |
Hostname | Zabbix proxy | A unique, case-sensitive name. It must exactly match the proxy name in the frontend. |
LogFile | /tmp/zabbix_proxy.log | /var/log/zabbix/zabbix_proxy.log (the path packages use). Files under /tmp can be cleaned up by the system. |
DBName | zabbix_proxy | A separate database from the server's. For SQLite, give the full file path. |
DBUser / DBPassword | zabbix / not set | Proxy database credentials, or use VaultDBPath instead. |
ProxyBufferMode | hybrid | Keep hybrid for most proxies. Use disk if you also need ProxyLocalBuffer. |
ProxyMemoryBufferSize | 16M | Raise it for busy proxies. It only works when ProxyLocalBuffer=0. |
StatsAllowedIP | 127.0.0.1 | Add the server IP if the server collects internal stats from this proxy. |
Minimal active proxy configuration
In active mode (ProxyMode=0) the proxy opens the connection to the server on TCP 10051. It downloads its configuration every ProxyConfigFrequency seconds and sends collected data every DataSenderFrequency seconds. Use active mode when the proxy sits behind NAT or a firewall that blocks inbound connections. The config below uses MySQL or PostgreSQL on the proxy host.
ProxyMode=0
Server=zabbix.example.com
Hostname=proxy-dc1
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/run/zabbix/zabbix_proxy.pid
SocketDir=/run/zabbix
DBHost=localhost
DBName=zabbix_proxy
DBUser=zabbix
DBPassword=ChangeMe
ProxyBufferMode=hybrid
ProxyMemoryBufferSize=64M
ProxyOfflineBuffer=24
ProxyConfigFrequency=10
DataSenderFrequency=1
Timeout=4
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1Code language: JavaScript (javascript)
LogFileSize=0turns off built-in log rotation so that logrotate, which distribution packages configure, can handle it.ProxyOfflineBuffer=24keeps up to 24 hours of data if the server is unreachable. The default of 1 hour is short for remote sites. The unit is hours.ProxyMemoryBufferSize=64Mlets the hybrid buffer hold more data in RAM before falling back to the database. Size it according to the proxy's new values per second (NVPS).
In the frontend, go to Administration โ Proxies โ Create proxy. Set the name to proxy-dc1 and the mode to Active.
Minimal passive proxy configuration
In passive mode (ProxyMode=1) the server connects to the proxy. Server then becomes an allow-list of addresses, and ProxyConfigFrequency and DataSenderFrequency are ignored. On the server side, ProxyConfigFrequency and ProxyDataFrequency in zabbix_server.conf control how often the server pushes configuration and requests data.
ProxyMode=1
Server=192.0.2.10
Hostname=proxy-dmz
ListenPort=10051
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/run/zabbix/zabbix_proxy.pid
SocketDir=/run/zabbix
DBName=/var/lib/zabbix/zabbix_proxy.dbCode language: JavaScript (javascript)
This example uses SQLite, which suits small proxies. The proxy creates the database file itself if it does not exist, so the zabbix user only needs write access to /var/lib/zabbix. In the frontend, create the proxy with mode Passive, and enter the proxy's address and port 10051.
Preparing the database and starting the proxy
For MySQL or MariaDB, create a dedicated database. The DBName comment in the example warns against reusing the server database, and doing so will damage it.
mysql -uroot -p <<'SQL'
CREATE DATABASE zabbix_proxy CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'ChangeMe';
GRANT ALL PRIVILEGES ON zabbix_proxy.* TO 'zabbix'@'localhost';
SQL
# Find the proxy schema shipped by the zabbix-sql-scripts package
dpkg -L zabbix-sql-scripts | grep proxy.sql # Debian/Ubuntu
rpm -ql zabbix-sql-scripts | grep proxy.sql # RHEL family
cat /path/from/above/mysql/proxy.sql | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix_proxyCode language: PHP (php)
Validate the configuration, then start the service and check the log:
sudo zabbix_proxy -T -c /etc/zabbix/zabbix_proxy.conf # parse and test config, then exit
sudo systemctl enable --now zabbix-proxy
sudo tail -f /var/log/zabbix/zabbix_proxy.logCode language: PHP (php)
Once the proxy connects, the Last seen (age) column in Administration โ Proxies updates every few seconds, and the proxy's version is shown. You can then assign hosts to the proxy in each host's Monitored by field.
Encrypting proxy-server traffic with PSK
By default, proxy traffic is unencrypted. A pre-shared key (PSK) is the quickest way to secure it.
sudo sh -c 'openssl rand -hex 32 > /etc/zabbix/zabbix_proxy.psk'
sudo chown zabbix:zabbix /etc/zabbix/zabbix_proxy.psk
sudo chmod 600 /etc/zabbix/zabbix_proxy.pskCode language: JavaScript (javascript)
# Active proxy
TLSConnect=psk
# Passive proxy: use TLSAccept=psk instead of TLSConnect
TLSPSKIdentity=PSK-proxy-dc1
TLSPSKFile=/etc/zabbix/zabbix_proxy.pskCode language: PHP (php)
In the frontend, open the proxy's Encryption tab. Select PSK for connections from the proxy (active mode) or connections to the proxy (passive mode). Enter the same identity, and paste the hex key from the file. Restart the proxy afterwards.
Note: Leave EnableRemoteCommands=0 unless you need remote commands to run on hosts monitored through the proxy. If you do enable it, also set LogRemoteCommands=1 so that every command is logged.
Common errors and fixes
| Symptom | Cause | Fix |
|---|---|---|
Proxy will not start: unknown parameter | The config file comes from a newer Zabbix version than the proxy binary | Use the sample file that matches your installed version, or remove the parameter |
| Server log says the proxy is not found, or the proxy is never seen | Hostname does not match the frontend proxy name. Matching is case-sensitive. | Make both names identical and restart the proxy |
Startup error about ProxyMemoryBufferSize | It is set together with ProxyLocalBuffer, or ProxyMemoryBufferAge is longer than ProxyOfflineBuffer | Set ProxyLocalBuffer=0, or keep the age (seconds) at or below the offline buffer (hours ร 3600) |
connection refused or timeouts on port 10051 | A firewall blocks the traffic, or Server lists the wrong address | Open TCP 10051 (proxy โ server for active, server โ proxy for passive). Check Server. |
| TLS handshake failures in the logs | The PSK identity or key differs between the proxy and the frontend, or the mode is set on the wrong side | Compare the identity and key byte for byte. Use TLSConnect for active proxies and TLSAccept for passive ones. |
| Data arrives in bursts or late | The buffer is spilling to disk, or there are too few pollers | Raise ProxyMemoryBufferSize and the relevant Start*Pollers. Watch the proxy's internal items. |
To troubleshoot without restarting, change the log level at runtime with zabbix_proxy -R log_level_increase. On an active proxy, zabbix_proxy -R config_cache_reload makes it fetch its configuration from the server straight away.
Frequently asked questions
What is the difference between an active and a passive Zabbix proxy?
An active proxy (ProxyMode=0) connects to the server to fetch configuration and send data. A passive proxy (ProxyMode=1) waits for the server to connect to it. Active mode is usually easier when the proxy is behind NAT or a firewall.
Can the Zabbix proxy use the same database as the Zabbix server?
No. The proxy needs its own database, because sharing one corrupts the server's data. SQLite is fine for small proxies, while MySQL or PostgreSQL suit busy ones.
Which ProxyBufferMode should I use?
hybrid is the recommended choice in most cases. It buffers data in memory and only falls back to the database when memory fills up or data gets too old, and it flushes the memory buffer to disk on shutdown. Use disk if you need ProxyLocalBuffer, which cannot be combined with the memory buffer.
How long does a Zabbix proxy keep data if the server is down?
ProxyOfflineBuffer decides this. It is set in hours, the default is 1, and the maximum is 720. Data older than this limit is discarded, so raise the value for remote sites with unreliable links.
How do I check zabbix_proxy.conf for errors before restarting?
Run zabbix_proxy -T -c /etc/zabbix/zabbix_proxy.conf. It parses the file, reports invalid or unknown parameters, and exits without starting the daemon.
Related tutorials
- Zabbix Tutorials: Install and Configure Zabbix Proxy on Ubuntu 20.x
- What is Zabbix and How it works? An Overview and Its Use Cases
- Top 50 Zabbix interview questions and answers
- More Zabbix tutorials
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals