Published

How to Validate Zabbix Proxy Buffering During WAN Outages

Test Zabbix proxy offline buffering with sequence-based fixtures, disk and memory state metrics, controlled WAN isolation, and recovery validation.

Black-and-white photograph of a tall industrial turbine housing surrounded by steel pipes, platforms and overhead beams

A Zabbix proxy can continue collecting at a remote site when the connection to the central server fails. That is not the same as proving that collected values survive the outage. After connectivity returns, a green availability indicator may coexist with missing history, discarded memory-buffer entries, or a backlog that is taking longer to drain than the next outage window. The correct question is measurable: for a known proxy configuration, workload and interruption, which locally accepted samples eventually reach the server, and how long does recovery take?

This runbook targets Zabbix 7.4 and a remote branch, plant or segmented network that uses a dedicated proxy database. Product semantics below follow official documentation. The outage duration, data-completeness target, collection cadence and rollback thresholds are design choices to be agreed by operators, not universal Zabbix defaults.

Separate site collection from upstream delivery

A proxy collects monitoring data on behalf of the server, buffers it locally, and sends it upstream. Draw the actual path as device or test sender -> proxy collectors and trapper -> proxy memory/database -> site WAN -> Zabbix server ingestion -> stored history. A broken device-to-proxy path and a broken proxy-to-server path have different outcomes. If the WAN test also disables polling to site devices, lost samples are not evidence about offline buffering at all.

Zabbix proxies can be active or passive. An active proxy initiates connections to the server; the server initiates the connection for a passive proxy. The direction determines which firewall rule is safe to interrupt. Keep local monitoring, administrative access, DNS prerequisites and the proxy database operational while isolating only the selected upstream transport. For production-like tests, preserve the existing TLS certificate or PSK policy.

Record the test population and current state

Before changing anything, inventory the proxy hostname, software version, operating mode, assigned hosts, active-agent and trapper dependencies, database engine, filesystem free space, server endpoint and network route. Verify the proxy has a separate database rather than pointing it at the server database, as required by Zabbix. Record the existing proxy configuration and a reversible network change with a named owner. Include the timestamp in UTC and the specific communication path in the change record.

  • Collection contract: which test items are expected to generate values during the outage, their cadence, and who owns the sender.
  • Retention contract: maximum intended interruption, additional reconnection margin, and local database/disk capacity measured from actual traffic.
  • Delivery contract: deadline for accepted samples to appear in central history after the link returns.
  • Stop conditions: low storage headroom, a failing proxy database, an unexpected effect on non-test hosts, or loss of local collection.
  • Evidence owner: person responsible for logs, sequence reconciliation and the final PASS, FAIL or INCOMPLETE decision.

Choose a buffer mode with the right failure semantics

Zabbix 7.4 documents ProxyBufferMode=disk, memory, and hybrid. In disk mode, the proxy keeps collected history and associated data in its database until delivery. In memory mode, records can be discarded when the memory buffer fills, and the buffer is discarded on shutdown. In hybrid mode, records normally use memory, then switch to database-backed operation when memory capacity or the configured age condition is exceeded; Zabbix documents that memory is flushed to the database on shutdown. The difference matters more than a nominal buffer-size number.

ProxyOfflineBuffer specifies the hours for which disconnected data is retained; older data can be lost. Its documented default is one hour. ProxyLocalBuffer is a different feature: it retains data locally even after synchronization for use by third-party applications. ProxyMemoryBufferSize and ProxyMemoryBufferAge control memory buffering, with documented compatibility and age constraints. Do not treat ProxyLocalBuffer as extra WAN-outage protection or assume that a memory-only configuration is restart-durable.

Select the mode from the operational requirement. An edge site that must retain values across a proxy restart should not rely on memory-only persistence. Hybrid needs working database capacity even if normal operations mostly use memory. Disk mode needs a healthy database, write I/O and free filesystem space. Raising ProxyOfflineBuffer changes the retention horizon, but it does not manufacture local storage or increase server-side ingestion capacity.

Calculate the outage budget from observed volume

Measure the representative new-value rate and proxy database growth during normal traffic. Include frequent polls, trapper inputs, discovery bursts, and items added by low-level discovery. Estimate the sample count as measured values per second multiplied by the intended isolation seconds; use actual growth over the baseline period to estimate bytes rather than asserting a fixed value size. Value types, preprocessing, backend and database maintenance alter storage consumption.

For an eight-hour interruption, an eight-hour retention value alone leaves no margin for delayed restoration or catch-up. Choose a documented retention horizon that covers the recovery requirement, then verify that the local database and disk remain within the agreed headroom. These numbers belong in the test record alongside observed data growth. They are not capacity guarantees supplied by Zabbix.

Build a fixture that can prove missing samples

Create a dedicated Zabbix trapper item under a test host monitored by the chosen proxy. Give it a stable key and numeric type, restrict its Allowed hosts list, and use zabbix_sender from within the site network to submit an increasing integer sequence. The sender supports specifying the target proxy with -z, the exact Zabbix host name with -s, the item key with -k, and the value with -o. Match the deployed encryption configuration. Keep the sender at a modest, predictable cadence so the fixture does not itself create an artificial capacity incident.

Store a separate timestamped sender log containing test-run ID, attempted sequence, send time and returned status. A sender acknowledgement demonstrates local acceptance by the proxy endpoint, not permanent delivery to the server. Zabbix sender also supports timestamped input files; if using them, record that choice so observation timestamps are not confused with server ingestion time. Include a standard locally polled agent or SNMP item as a second signal that demonstrates site polling continued during isolation.

Watch the right metrics before disconnecting

Obtain a baseline for central history latency, proxy process uptime, database size, filesystem space, and server ingest conditions. The Zabbix internal item zabbix[proxy_history] counts values waiting in the proxy history table for transfer. Its value is useful in database-backed operation but should not be interpreted as a complete view of every pending value in memory-only buffering.

For memory and hybrid modes, Zabbix documents zabbix[proxy_buffer,buffer,pused] for utilization, zabbix[proxy_buffer,state,current] for the active storage state, and zabbix[proxy_buffer,state,changes] for mode transitions. The current state distinguishes disk from memory, while the transition counter exposes switches that a low-frequency graph may miss. A disabled-memory-buffer error is not evidence of free capacity. Monitor disk pressure and error logs independently.

Isolate only the WAN leg

Apply the approved temporary rule against the active-proxy upstream connection or the passive-proxy server-initiated connection. Write down the rule ID and restoration command before the change. Do not stop the proxy process in the basic test; process restart is a separate scenario whose result depends strongly on buffer mode. Start an outage clock only after proving that upstream delivery is interrupted while the local test sender and other site monitoring continue.

At fixed checkpoints, capture the highest accepted sequence, proxy buffer state, database growth, available disk space, proxy logs and local polling health. An accepted sequence increase proves the test input is reaching the local endpoint. If local acceptance stops, classify the run as a collection failure rather than a buffering failure. If storage drops below the predefined threshold, end the exercise through its rollback step and preserve the evidence.

Restore connectivity and reconcile history

Remove the exact temporary network rule, record restoration time, and observe reconnection without changing unrelated poller counts or database tuning. Query the server-side history of the trapper item until the agreed catch-up deadline. Build a set of distinct sequence values accepted locally during the test and compare it with values actually present in the server history for the same run. Do not assume consecutive sample arrival order, and do not turn duplicated or late data into silent successes.

  • Completeness: distinct accepted fixture sequences observed centrally divided by distinct locally accepted sequences; retain explicit missing and duplicate IDs.
  • Recovery latency: time from restoring the WAN to visibility of the final accepted outage sample in central history.
  • Maximum undelivered age: age of the oldest still-missing accepted sample at each recovery checkpoint.
  • Collection continuity: separately compare expected local polling observations during isolation with actual locally available values.
  • Failure classification: distinguish sender rejection, local collection interruption, storage expiry, buffer overflow, upstream transport error, and delayed central ingestion.

A chosen acceptance rule may require every accepted fixture sequence to arrive within a bounded catch-up interval. That is a test criterion, not an automatic service guarantee. A proxy becoming available again does not by itself prove history completeness; a falling zabbix[proxy_history] count alone does not prove it either. Verify original timestamps separately from receipt latency and treat unsupported or ambiguous evidence as INCOMPLETE rather than PASS.

Exercise distinct failure modes in a disposable environment

A WAN isolation test measures connectivity loss, not every failure a remote location may suffer. Test a proxy process restart in a disposable environment when evaluating memory-only and hybrid behavior. For hybrid, confirm a controlled memory-to-database transition and the counter indicating that switch. For a storage-capacity failure, use a bounded lab fixture to establish whether the monitoring detects impending exhaustion. For retention expiry, intentionally choose a short offline window only in a lab and confirm the reconciliation reports lost fixture IDs.

Also test an incorrect test-host assignment or Allowed hosts restriction. The expected result is a local input failure, not a mysterious central backlog. Keep these cases separate in the evidence register; combining them into a single dashboard score hides the mechanism that failed and prevents targeted remediation.

Preserve rollback and a reviewable record

The primary rollback is removal of the scoped network rule, verification of original site-to-server connectivity, and confirmation that production monitored hosts have returned to their established data-freshness baseline. Restore any temporary configuration change through normal change control. Do not truncate a proxy database or clear buffered history merely to make a queue metric reach zero. If ingestion cannot recover by the agreed deadline, retain logs, counter states, relevant timestamps and an assigned remediation item.

  • Scope: proxy build, operating mode, assigned site, item fixture, network rule, UTC start/stop, configuration digest and owners.
  • Storage: configured buffer mode and retention, actual local database/memory headroom, mode transitions and storage errors.
  • Results: accepted fixture set, received set, missing/duplicate IDs, delay distribution, catch-up deadline and observed outcome.
  • Review: validation script or workbook version, evidence location, exception owner and approval to reuse this design at other sites.

A successful result demonstrates that one configured proxy, at a measured workload, retained and delivered a known set of accepted samples through a particular failure window. It supports resilient monitoring design and reproducible operational evidence. It does not prove complete coverage of all devices during an uncontrolled incident, and it does not establish a compliance status or independent assessment. The useful deliverable is the ability to identify precisely where collection, buffering, transport or history ingestion stopped working.

Sources

Browse all writing · RSS feed

Tymur Chmeruk

Written by

Tymur Chmeruk

Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]