Zabbix high availability

Learn how to design a native Zabbix server HA cluster, set failover delay, protect the shared database and use proxy groups, and how to verify that monitoring survives a node failure.

On this page

Why Zabbix high availability is harder than it looks

Monitoring that goes dark during a node failure is often discovered only when an incident is already under way. Zabbix has a native server high availability cluster, but it depends on a shared database and correct failover settings. Several server nodes point at one database, one node is active, and the others stand by until the active node stops working. Getting that arrangement to survive a real failure is a design task, not a single setting you switch on.

The server is only one of the components that can fail. The database is usually the hardest part, because every server node depends on it and a database outage stops monitoring no matter how many server nodes are healthy. The web frontend is a separate service that operators use to view problems and acknowledge alerts, so it needs its own load balancing and recovery plan. Proxies collect data from remote sites and segmented networks, and proxy groups can move hosts to another proxy when one goes offline, but only if the proxies and the network paths between them are designed for it. Agents run on monitored hosts and need their server or proxy addresses to remain reachable after a failover. Each of these fails in a different way, and a test that stops only the active server node will miss most of them.

The failover delay is the setting that most often needs a deliberate decision. Zabbix lets you configure a delay anywhere from 10 seconds to 15 minutes before a standby node takes over from an active node that has stopped responding. A short delay shortens the gap in data collection but raises the risk of a false failover during a brief network stall or a busy database. A long delay avoids unnecessary switches but leaves monitoring blind for longer. Before you choose a value, confirm the behavior of your database cluster, network links and virtual IP or load balancer in the Zabbix high availability documentation, and test the chosen delay under load.

Which Zabbix components need redundancy

A Zabbix monitoring setup has five parts that can fail independently: server nodes, the shared database, the web frontend, proxies and agents. Each one has a different role when it is lost, so redundancy effort should follow what would stop data collection, alerting or operator access.

Zabbix server nodes

Several server nodes share one database, but only one node is active at a time while the others stand by. If the active node fails or stops responding for longer than the configured failover delay, a standby node takes over. Check that every node points at the same database, that the failover delay suits your alerting tolerance, and that you can see which node is active in the server status before you test a failover.

Failover delay range
10 seconds to 15 minutes
Zabbix HA docs

Shared database

The database holds configuration, history and events, so it is the component every server node depends on. Losing it stops the server cluster regardless of how many nodes are running. Redundancy here is a separate design decision, usually replication with a tested promotion procedure, and it should be planned with the server nodes rather than added afterward.

Web frontend

The frontend is the operator interface for dashboards, configuration and acknowledging problems. Losing one frontend instance does not stop data collection or alerting, because those run in the server. Plan a second frontend node behind your load balancer if operators depend on the UI during an incident, and confirm that session and login handling works when requests move between instances.

Proxies and proxy groups

Proxies collect data for remote sites and segmented networks. Without redundancy, a failed proxy leaves its hosts unmonitored. From Zabbix 7.0, proxy groups redistribute monitored hosts to the remaining proxies when one goes offline. Confirm that each group has enough spare capacity to absorb the hosts of one failed member, and test the redistribution rather than assuming it.

Proxy HA docs

Agents

Agents run on monitored hosts and each one reports only for its own host. Losing an agent affects one host, and proxy groups do not move an agent. Agent redundancy therefore means keeping the agent configuration managed and restartable on each host, with alerts for hosts that stop reporting, rather than duplicating agents.

Which HA design fits your monitoring estate

This table compares four ways to protect Zabbix monitoring, from a single server with backups to a native server cluster, proxy groups and database replication. Read each row for the situation it fits and the operational work it adds. The main takeaway is that the server cluster and the database must be designed together, because the cluster only removes a single point of failure if the shared database is itself protected.

DesignWhen it fitsOperational cost
Single server with tested backupsSmall estates where a few hours of monitoring gap is acceptable and a restore can be rehearsedLow build effort, but recovery is manual and depends on how quickly someone restores the database and configuration
Native server HA cluster with shared databaseCentral monitoring that must keep running when one Zabbix server node fails, with one shared database behind itSeveral server nodes to deploy and patch, failover delay to tune, and failover tests to run; the database remains a single point unless it is also made resilient
Proxy groups for remote sitesMany remote or segmented networks where a proxy outage should not leave hosts unmonitored (Zabbix 7.0 and later)Proxy count and host distribution to plan, plus monitoring of proxy state; proxies still depend on the central server for configuration and data
Database replication under the shared databaseEstates with a strict recovery objective for monitoring history, where the database itself must survive a node lossReplication administration, failover procedures for the database, and checking that every node runs a supported database version from the requirements page

How to build the Zabbix HA cluster step by step

This sequence takes a team from a supported database and Zabbix version choice to a server cluster where one node is active, standbys can take over, and proxies keep remote hosts monitored. Each step ends with a check so failures are caught before go-live.

  1. Confirm the Zabbix version and database pairing

    Choose the Zabbix line first, then confirm the database engine and version against the supported matrix for that release. For Zabbix 7.4, the supported options are MySQL or Percona 8.0.30 to 9.7, MariaDB 10.5 to 12.3, and PostgreSQL 13 to 18, with TimescaleDB 2.13 to 2.29 as an optional extension. Check the life cycle dates for the line you pick, since LTS releases carry longer support. Done when your team has a written version and database pair, signed off by the platform owner, and checked against the current requirements page for the exact minor release you will install.

  2. Build the shared database with replication

    Provision one database endpoint that all server nodes will use, sized for your item count and history retention. Set up replication or a clustered deployment according to your database team's standard, so a database node can fail without losing monitoring data. Create a dedicated Zabbix database user with only the privileges the server needs. Done when a test connection from each planned server host succeeds, a failover test on the database tier completes in your environment, and the database team confirms backups and restores work for this instance.

  3. Install the server nodes against the same database

    Install the same Zabbix server version on each planned node, using identical package versions and the same configuration pointing to the shared database. Keep the frontend and server versions aligned across nodes. Confirm that every node reads the same DBHost, DBName and credentials, and that time synchronization is correct on all hosts. Done when each node starts, registers in the cluster view of the frontend, and appears with its status, with no version mismatch warnings.

  4. Set the failover delay within the supported range

    Configure the failover delay in the server high availability settings. Zabbix allows values from 10 seconds to 15 minutes. A short delay speeds takeover but can trigger failover during brief load spikes or network blips, while a long delay keeps monitoring offline longer after a real failure. Choose a value that matches your tolerance for monitoring gaps and test it. Done when the chosen delay is recorded in your runbook with the reasoning, and the frontend shows it applied to the cluster.

  5. Verify which node is active and standbys are reachable

    Open the high availability cluster view in the frontend and confirm exactly one node is active and the others are standby. Check that each standby is reachable over the network from the active node and from the frontend host. Stop the active node in a controlled window, watch a standby take over within the configured delay, then restart the original node and confirm it rejoins as standby. Done when the takeover and rejoin are logged, and monitoring data continues to arrive after the switch.

  6. Deploy proxies and proxy groups for remote sites

    For remote or segmented networks, deploy Zabbix proxies close to the monitored hosts and configure proxy groups from Zabbix 7.0 onward. Proxy groups redistribute monitored hosts when a proxy goes offline, so assign hosts to the group rather than to a single proxy where redundancy matters. Confirm each proxy can reach the server cluster and its monitored hosts through the required ports. Done when each proxy reports as online, hosts are distributed across the group, and taking one proxy offline moves its hosts to another proxy in the group.

  7. Test the frontend and alerting under failover

    Put a load balancer or a stable frontend address in front of the web tier if you use more than one frontend node, and confirm login, dashboards and problem views load from each. Run an alert test during a controlled failover so you know notifications still fire from the new active node. Review the authentication configuration, since LDAP, SAML and MFA settings must work on each frontend. Done when a user can log in through the stable address during a failover, a test alert is delivered during the switch, and the results are recorded for the runbook.

How the HA server, database and proxies fit together

The diagram starts at the monitored hosts, where agents and proxies in the monitored network send data toward the Zabbix server cluster. The active server node writes to one shared database, while standby nodes wait and take over if the active node exceeds the failover delay. The frontend in the management network reads from that same shared database. The proxy group sits at the edge: when one proxy goes offline, its monitored hosts are redistributed to the remaining proxies in the group. Check that the trust boundary between the monitored network and the management network is crossed only by the traffic you have approved, and that each crossing is encrypted and firewalled.

Agents, proxies, server nodes, shared database and frontend across the trust boundary.

What drives the effort of a Zabbix HA build

This table compares the factors that change how much design, build and testing a Zabbix high availability deployment needs. Read each row as a lever: the first column names the driver, the middle column explains why it moves effort, and the last column shows how to keep it contained. The main takeaway is that standardizing early on one database platform and one proxy pattern usually removes more work than any single technical choice.

DriverWhy it changes effortHow to keep it down
Host countMore monitored hosts raise item volume, history write load and the number of nodes needed to keep the server cluster within capacity, which affects sizing and load testing.Size the server nodes and database from a measured item count, and confirm capacity with the team before adding hosts in bulk.
Number of remote sitesEach remote site may need its own proxy, and proxies that are not in a group need manual reassignment when they fail, adding design and runbook work.Reuse one proxy design across sites and place proxies in proxy groups so hosts redistribute automatically when a proxy goes offline.
Database platform and replication complexityServer nodes share one database, so the database high availability design (replication, failover and backups) often takes more effort than the Zabbix settings themselves.Standardize on one supported database platform and version, and confirm the replication approach with the database owners before the build starts.
Number of environmentsProduction, staging and disaster recovery each need matching cluster layouts, configuration and failover tests, so effort multiplies with every environment.Keep configuration in version control, script the cluster build, and use the same templates and settings in every environment.
Integration with existing alertingRouting alerts through existing ticketing, paging or chat tools requires media types and tests on each node, and failover can change which node sends notifications.Agree the alert routes early, test notifications after a forced failover, and keep media type definitions identical across server nodes.
Compliance evidence needsAssessors may ask for failover test records, access control settings, backup restore proof and change history, which must be collected during the build rather than reconstructed later.Define the evidence list at scoping, capture failover tests and restores as they happen, and confirm the required format with the compliance or audit team.

How HA differs across deployment models

In a single data center or office, the native Zabbix server HA cluster is the most direct model. Several server nodes point at one shared database, one node is active and the others stand by, and failover occurs when the active node exceeds the configured failover delay, which can be set from 10 seconds to 15 minutes. The database is the component that most often decides whether the cluster survives, so its availability matters as much as the server nodes.

  • Shared database availability: The cluster has no HA value if the single database instance is the weak point. Plan database replication or clustering in the same design and confirm the supported options for your chosen engine.
  • Failover delay tuning: A short delay reacts faster but can trigger failover on a busy node. A long delay keeps gaps in monitoring longer. Test the value against your real load.
  • Node placement: Put server nodes on separate hosts or hypervisors so one hardware fault does not remove all of them.
  • Frontend and web tier: The HA cluster covers the server, not automatically the web frontend. Plan redundancy for that layer separately.
  • Supported database versions: Confirm the MySQL, MariaDB, PostgreSQL or TimescaleDB versions against the requirements for the Zabbix release you run.

Confirm the exact cluster configuration steps, node limits and database replication options against the Zabbix high availability documentation for your release before finalizing the design.

How to secure the HA cluster and its database

A high availability cluster multiplies the places where Zabbix holds access: every server node, the shared database, the frontend and every proxy and agent. The cards below cover the controls to set and verify across those points, and the hardening sibling covers the full configuration detail.

Database accounts and replication users

Each Zabbix server node connects to the same database, so give the cluster its own database account rather than reusing an administrator login. Keep the replication account separate from the application account, and restrict it to the replication source and replica hosts. Confirm which accounts can drop or alter the schema, since upgrades need that right only during a planned change window.

Zabbix requirements

Least-privilege database users

The server account needs read and write access to the Zabbix schema, not superuser rights on the database engine. Review grants after every upgrade, because schema changes can alter what a role needs. Ask your database team to confirm that backup, monitoring and DBA accounts are separate from the Zabbix server account so one leaked credential does not expose every database.

Traffic between server nodes and the database

Server nodes and the database exchange monitoring data continuously, so the link needs encryption in transit and network restriction. Use the database engine's TLS option, allow only the server node addresses through firewall rules, and keep the database off any network segment that users or monitored hosts can reach directly. Verify the certificate chain on each node, not only on the first one you configure.

Frontend access through supported authentication

Zabbix supports internal, HTTP, LDAP, SAML and MFA authentication for the frontend. In a cluster, pick one method and apply it to every frontend instance behind the load balancer so a user cannot reach a weaker login path. Enable just-in-time provisioning only if your identity provider controls group membership, and confirm that disabled directory accounts lose Zabbix access.

Zabbix authentication

Credentials for proxies and agents

Proxies and agents hold their own identities and must not share a single credential across sites. Give each proxy a unique name and its own pre-shared key or certificate, and record which proxy belongs to which group. When a node is decommissioned or a proxy is rebuilt, revoke or rotate its credential, because a proxy group that fails over can still carry a stale identity if one entry is missed.

Proxy HA docs

Hardening detail and ownership

This section covers only what makes the HA layer safe to run. Encryption settings for server, proxy and agent traffic, frontend and API restrictions, role design and database hardening steps are in the Zabbix security hardening guide. Assign one owner for each credential and review the list quarterly, so access changes made during a failover event are reversed after the incident.

How to test that monitoring survives a node failure

The point of this test plan is to prove, before go-live, that losing any single component does not silently stop monitoring. Start with the Zabbix server cluster: in a test window, stop the active server node (for example, by stopping the zabbix-server service or powering the node off) and record the exact time. A standby node should take over once the active node exceeds the failover delay you configured, which can be anywhere from 10 seconds to 15 minutes. Compare the observed takeover time against that setting, and check the server log and the frontend's high availability nodes view to confirm which node is now active. Then verify that data collection resumes: check the latest item values, trigger evaluation and problem events for hosts that were polled during the gap. Expect a small window of missing values equal to the failover delay plus the takeover time. Confirm that this gap is the only one, and that no duplicate or stale problems remain open.

Test the proxy layer next, because it is where most remote-site outages happen. With proxy groups (Zabbix 7.0 and later), stop one proxy in a group that monitors a segmented network and confirm that its hosts are redistributed to the remaining proxies. Measure how long redistribution takes, and confirm that the proxy's buffered data is delivered once it returns, and that the host assignments rebalance when it comes back. Repeat the test at a realistic peak load for your environment, since a proxy group that works at idle may not have headroom at peak. Also test the fail-safe behavior: the database is the component that cannot be replaced by the cluster, so simulate its loss by stopping the active database node or the connection path from the server nodes. Confirm which operations halt, what the server logs say, and whether alerting resumes after your database failover completes. Confirm with your database vendor and your DBA how replication lag, promotion and reconnection are handled for the database you chose, and document the recovery steps, including who runs them and how long you expect them to take.

What to monitor, back up and document after go-live

This table lists the recurring operational tasks that keep a Zabbix high availability setup working after go-live, with the team that should own each one. Read it as a handover checklist: each row names what to watch or test, and the owner who should sign it off. The main takeaway is that the HA cluster only protects monitoring if the team checks the standby nodes, the database and the restore path on a schedule.

TaskWhat to doOwner
Monitor the HA nodesWatch each server node's status, load and database connection, and alert when a standby stops being ready to take overPlatform engineering
Monitor database replication lagTrack replica lag and replication errors on the shared database platform, and alert before lag affects history recencyDatabase administration
Verify backup restoresRestore the Zabbix database to a separate host on a schedule and confirm the server starts and history is readableDatabase administration
Run scheduled failover drillsStop the active node in a test window, confirm failover within the configured delay, then record the time and any gaps in dataPlatform engineering with monitoring owners
Plan upgrade orderUpgrade standby server nodes first, then the active node, then proxies and agents, following the vendor's documented order for the target versionPlatform engineering
Track proxy group healthConfirm hosts redistribute when a proxy goes offline, and check that proxy queues and data arrive after recoveryMonitoring operations
Review failover settingsCheck the failover delay and node configuration after each change, and confirm the values match the runbookPlatform engineering
Maintain the runbookDocument node names, failover delay, database endpoints, restore steps, drill results and contacts, and update them after every changeService owner with platform engineering

Questions teams ask before building Zabbix HA

How much effort does a Zabbix server HA build take?

Effort depends mainly on how many server nodes you run, how the shared database is built and made resilient, how many hosts and items you monitor, and how much of the surrounding platform (proxies, agents, alerting and monitoring of the HA setup itself) you bring into scope. Zabbix native HA is one feature of the server, so the core configuration is modest, but the database layer, network design, testing of failover and documented runbooks usually take the most time. Ask any partner for a fixed-scope quote built from a written list of nodes, database topology, sites and test cases. The Zabbix high availability documentation describes the server-side settings, which you can use to size the work yourself.

Can our team build Zabbix HA without a partner?

Yes, a team with Linux, database and Zabbix administration skills can build native server HA without an external partner. The official documentation covers the cluster model: several server nodes share one database, one node is active, and the others stand by. Teams usually need outside help when they lack database replication experience, need a formal test plan, or must produce evidence for an assessment. Zabbix open source has no license fee, so the cost of building it yourself is staff time, infrastructure and testing. Paid Zabbix technical support subscriptions are a separate decision that you can review against your own risk tolerance.

What does the work need from our staff and infrastructure?

Plan for staff who can run the operating systems, the database cluster, load balancers or virtual IPs, DNS, time synchronization and backups, plus someone who owns Zabbix configuration. Infrastructure needs include at least two server nodes, a database deployment that survives a node loss, and enough network separation to keep the agents and proxies reaching the active node. Confirm the supported database engines and versions against the Zabbix requirements before you order hardware or licenses for the database. Also confirm who approves changes during a failover test, since the test will interrupt monitoring.

How long does a Zabbix HA build usually take?

Duration depends on the number of environments (lab, pre-production, production), whether the database layer is new or existing, how many change approvals your organization requires, and how many failover and recovery tests you run before go-live. Build work is often short compared with design review, change windows and evidence gathering. Ask for a timeline with milestones for design sign-off, build, failover testing and handover, and check whether it includes time for a documented rollback. No general duration is stated by Zabbix for this work, so treat any figure you are given as an estimate tied to the scope.

Do proxy groups replace Zabbix server high availability?

No. Proxy groups and server HA solve different problems. Proxy groups, available from Zabbix 7.0, redistribute monitored hosts between proxies for load balancing and automatically move hosts when a proxy goes offline. Server HA lets several server nodes share one database, with one node active and the others on standby, and fails over when the active node exceeds the configured failover delay. A resilient design usually uses both: server HA protects the central processing and frontend, while proxy groups protect data collection at remote sites. Review the proxy load balancing and high availability documentation before deciding how to combine them.

Which database versions does Zabbix support for HA?

For Zabbix 7.4, the official requirements list MySQL or Percona 8.0.30 to 9.7, MariaDB 10.5 to 12.3, and PostgreSQL 13 to 18, with the TimescaleDB extension 2.13 to 2.29 available for PostgreSQL. SQLite is supported for proxies only, so it does not apply to a server HA cluster. Check the requirements page for the version of Zabbix you plan to run, since supported ranges change between releases. Also confirm that your chosen database replication or clustering product is compatible with the exact engine version you deploy, because Zabbix documentation does not cover every third-party replication setup.

Which Zabbix release line should an HA build target?

Plan the build on a Long Term Support (LTS) line where possible, because LTS releases are supported for five years, with three years of full support and two years of limited support. Zabbix 7.0 LTS was released on 4 June 2024, with full support until 30 June 2027 and limited support until 30 June 2029, according to the Zabbix life cycle and release policy. Zabbix 8.0 LTS is planned for Q4 2026. Confirm the current support dates on that page before you choose a version, and schedule any upgrade path into your HA plan from the start.

How DeployOpen scopes, builds and hands over Zabbix HA

DeployOpen plans and builds Zabbix high availability inside your own infrastructure, from the shared database and server nodes through to proxy groups. Each engagement starts with a written scope, then moves through build, testing, documentation and handover, with ongoing support available as a retainer.

How we scope

  • Confirm the Zabbix version and support line, such as an LTS release, before any build starts.
  • Agree in writing which server nodes, shared database engine and failover delay settings are in scope.
  • Map which remote sites and proxies need grouping so host redistribution is designed in advance.

How we build

  • Deploy two or more Zabbix server nodes against one shared database, with one active node and standbys.
  • Set up database replication and backups so the shared database itself does not become the single point of failure.
  • Configure proxy groups and test that hosts move to remaining proxies when a proxy goes offline.

How we hand over

  • Test failover by stopping the active node and confirming standby takeover within the agreed delay.
  • Document the cluster layout, failover delay settings, replication topology and recovery steps for your team.
  • Deliver a runbook covering node replacement, database failover and proxy group changes after go-live.

How we support

  • Offer ongoing support, upgrades and retesting of failover as a retainer after handover.
  • Review cluster health, database capacity and proxy group balance on a schedule you agree.
  • Retest the cluster after Zabbix upgrades or database changes to confirm failover still works.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.