Zabbix 5.x to 7.0 LTS upgrade

A planned direct upgrade from unsupported Zabbix 5.0 or 5.4 to 7.0 LTS, covering schema changes, breaking changes, backups, rollback and effort drivers.

On this page

Zabbix 5.x to 7.0 LTS upgrade: why a direct jump is possible but not simple

An estate still on Zabbix 5.0 or 5.4 can move straight to 7.0 LTS without stopping at 6.0. Zabbix supports direct upgrades to current versions from releases back to 2.0, so the jump skips 6.0 as a routing step, not as a support decision. The reason to make the jump now is the support calendar: 5.0 and 5.4 are no longer supported, while 7.0 LTS has full support until 30 June 2027 and limited support until 30 June 2029. Confirm the exact support status of your installed minor version against the Zabbix life cycle and release policy before you set a date.

The direct path is simple to state and expensive to get wrong. The database schema upgrades automatically when the new server first starts, and that step can take a long time on large databases, so the window you plan must cover it. The jump also carries every change from 6.0 and 7.0 at once, which means you cannot rely on the 6.0 upgrade notes alone. Read the upgrade notes for each release between your version and 7.0, and decide early which of those changes touch your audit records, macros, password handling and PHP runtime. Ask your team to inventory custom items, scripts and frontend integrations, because those are where version jumps usually break.

Treat the jump as a rehearsal problem before it is a production task. Take a copy of the database, run the upgrade against it with the same server and frontend versions you plan to use, and time the schema conversion so the change window reflects measured duration rather than an estimate. Record which proxies and agents will be on mixed versions during the work, and confirm that the sequence you choose keeps monitoring running. Any quote for this work should show who runs the rehearsal, who signs off the results and what happens if the copy run exposes a blocker.

Which Zabbix changes between 5.x and 7.0 LTS hit your estate

This table lists the changes from the Zabbix 6.0 and 7.0 release notes that affect an upgrade from 5.0 or 5.4 to 7.0 LTS, along with the impact of each and the action to take before cutover. Read each row against your current configuration, since most rows only matter if your installation uses the affected feature or runtime. The main takeaway is that the audit log, macro naming and PHP runtime need checks before the upgrade, while the history table conversion is a separate, manual task.

ChangeImpactAction needed
Audit tables replaced without preserving old audit records (6.0)Audit records from before the upgrade are not carried forward into the new audit tables.Export or archive the audit history you must keep before the upgrade, and confirm the retention need with your compliance owner.
Positional macros removed from item names (6.0)Items that use positional macros such as $1 in their names stop resolving as before.Search item names and templates for positional macros and rewrite them to the supported form before upgrading.
Password trimming stopped (6.0)Passwords that contained leading or trailing spaces are no longer trimmed, so stored values may stop matching what users type.Review accounts and monitored-item credentials with surrounding spaces and test logins on a copy of the database.
PHP minimum raised from 7.4.0 to 8.0.0 (7.0)The Zabbix frontend will not run on PHP 7.4, so the web tier must be upgraded alongside the server.Confirm the PHP 8.0.0 or later version on each frontend host and its required extensions before the server upgrade.
Automatic schema upgrade on first server startThe database schema is upgraded when the new server first starts, and large databases can take a long time to finish.Measure the upgrade on a restored copy of production, plan the outage window around it, and take a verified backup first.
History table primary key conversion (not automatic for 5.x)Installations upgraded from 5.x are not converted automatically, so history tables keep their existing structure after the upgrade.Plan the conversion as a separate task with its own downtime, disk space and duplicate-row checks. See the sibling topic on upgrading Zabbix history tables to primary keys.

What to inventory and back up before touching the server

Most failed Zabbix upgrades trace back to work skipped before the first server start. The cards below cover what to capture, back up and test so that a rollback is possible and the schema change happens on a copy first. Each item is a preparation task that feeds the go or no-go decision.

Full database backup and tested restore

Take a complete logical or engine-level backup of the Zabbix database before the new server binary runs, because the schema upgrades automatically on first start. A backup that has never been restored is not a rollback plan. Restore it to a separate host, start the 5.x server against it, and confirm that the frontend loads and history data is readable. Record how long the restore took, since that sets your rollback window.

Zabbix upgrade procedure

Inventory of custom items and positional macros

Export every custom item, trigger, and graph that uses positional macros such as $1 in item names. Zabbix 6.0 removed positional macros from item names, and those items will not behave as before after the upgrade. List the owning templates and hosts, then decide whether each one is renamed to named user macros or retired. Keep this list with the change record so reviewers can check it against the post-upgrade item count.

Zabbix 6.0 upgrade notes

Audit log export if records must be kept

The upgrade to 6.0 replaces the audit tables without preserving old audit records. If your retention obligations or internal audit requirements cover Zabbix user and configuration changes, export the audit table to read-only storage before the upgrade starts. Confirm the export format with your compliance owner and check that it includes the fields your auditors ask for. Plan where the exported records will be stored and who can read them.

PHP and web server runtime check

Zabbix 7.0 raised the minimum PHP version from 7.4.0 to 8.0.0, so a 5.x frontend running on an older PHP runtime will not be ready for 7.0. Record the PHP version, the enabled extensions, and the web server module or PHP-FPM pool settings on each frontend host. Build the target PHP runtime on a test host and load the 5.x frontend against the test database. Confirm the exact PHP and extension versions with the 7.0 requirements page.

Zabbix 7.0 upgrade notes

Frontend and external script review

List every custom frontend file, theme, or module, and every external check, alert script, and media type script on the server and proxies. Custom code written against 5.x APIs or PHP functions may fail after the upgrade. Copy these files to the test host and run each one against the test instance. Record which scripts need changes, who owns them, and which can be removed.

Test copy on the same database engine

Build a test server and database on the same engine and version your production uses, then run the full upgrade there first. Compare schema migration time, errors in the server log, and the item and trigger counts before and after. The engine matters because the database upgrade runs on engine-specific SQL. Use the test run to set the production change window, and keep the copy until the production upgrade is verified.

How the 7.0 LTS upgrade runs, step by step with rollback points

This sequence moves a Zabbix 5.0 or 5.4 installation to 7.0 LTS in an order where each stage has a check that must pass before the next one starts, and a rollback point that restores a known state if it does not.

  1. Freeze configuration and take verified backups

    The Zabbix administrator and the database owner stop configuration changes, export the current frontend configuration, and take a full database backup alongside copies of the server, proxy and frontend configuration files. Restore the backup to a scratch host before going further, and confirm the restored database reports the expected host and item counts. This backup is your primary rollback point: if the schema migration fails later, restoring it returns the installation to its 5.x state.

  2. Build a test copy and rehearse the upgrade

    Build an isolated copy of the server, database and frontend from the verified backup, then run the full upgrade there using the same package versions and database engine as production. Time the schema upgrade, because the Zabbix upgrade documentation notes it can take a long time on large databases, and use that measurement to plan the production change window. The check that closes this step is a copy where the server starts, the frontend logs in, and a sample of hosts and history graphs look correct after the upgrade.

  3. Fix macros, passwords and audit expectations

    Review user macros and item keys that use positional macros, since the 6.0 upgrade notes state that positional macros in item names are removed, and update them to the named form. Check stored passwords that depend on leading or trailing spaces, because later releases stopped trimming them. Record that the audit tables are replaced without preserving old audit records, and export any audit history you need before the change. Done when a review of the copy shows no unresolved macro or password issues.

  4. Upgrade PHP and the web tier on the copy

    Raise PHP to at least 8.0.0, because Zabbix 7.0 raised the minimum version from 7.4.0, then update the web server and PHP extensions on the test copy and confirm the frontend loads without warnings. Keep the production web tier on its current version until the copy passes. Rollback here is simple: the old PHP packages remain available on production, so the web tier can be reverted independently of the database. Done when the copied frontend runs on PHP 8 with all required extensions reported as present.

  5. Stop the server and install 7.0 packages

    In the production change window, stop the Zabbix server processes so no new data is written, confirm that no server process is still running, and then install the 7.0 server packages. Do not start the server yet. The check here is that the installed package version matches the planned 7.0 LTS release and that the configuration file still points at the intended database. If anything is wrong at this point, the server is stopped and the backup from the first step remains untouched.

  6. Start the server and let the schema upgrade finish

    Start the new server once so the database schema upgrades automatically, then watch the server log until the migration reports completion. Do not interrupt the process or restart the server during the upgrade, because the schema change is the step most likely to need the restore. Confirm the database is consistent by checking that the server runs without errors and that the expected data is present. If the migration fails, stop the server, restore the pre-upgrade database backup, and reinstall the 5.x packages to return to the original state.

  7. Upgrade the frontend, proxies and agents

    Deploy the 7.0 frontend, then upgrade proxies and agents following the version compatibility guidance for your estate, so that each component remains supported with the new server during the transition. Verify that proxies report data to the upgraded server and that agents return values for a sample of hosts. The upgrade is complete when the frontend, server, proxies and a representative agent set all report healthy, and the post-upgrade checks on the copy have been repeated in production.

How the upgrade path and rollback points fit together

The path starts with an inventory of the current 5.x or 5.4 estate and a copy of the database used for a test upgrade. A go or no-go decision gates the production backup, which is the rollback point. Packages and PHP are upgraded before the new server starts, and that first start runs the automatic schema upgrade. Post-upgrade checks decide whether the work is complete or the backup is restored.

Decision path from inventory to go-live, with the backup as the rollback point.

Why history table primary keys need a separate decision after 5.x

An upgrade from 5.x does not convert the history tables to primary keys. The schema upgrade that runs when the new server first starts moves the installation to 7.0 LTS, but the conversion of history tables to primary keys is a separate change that existing installations are not given automatically. Treat it as its own project with its own plan, change window and sign-off, rather than as a step that finishes when the upgrade does. Confirm the current position for your exact source and target versions in the Zabbix documentation before you schedule anything, because the procedure and its prerequisites are version specific.

The conversion carries three costs that the main upgrade does not. It can require a long maintenance window on large history tables, it needs free disk space for the rebuild while the original data still exists, and it may surface duplicate rows that the primary key will reject. Check the row counts and table sizes of history, history_uint and the other history tables on a copy of production, measure free space on the database volume, and run a duplicate check before you commit to a date. Ask whether your database engine or TimescaleDB setup changes the method, since the approach differs by backend. Record the results so the change board can see the risk in writing.

The sibling topic on upgrading Zabbix history tables to primary keys covers the downtime, disk space, duplicate row and TimescaleDB decisions in detail. Read it before you set the dates for the 7.0 LTS upgrade, so you know whether the conversion will run in the same window or after the platform is stable. Decide that now, because a conversion that is deferred without an owner and a date often never happens, and the installation then runs on a schema that the team has not reviewed.

What makes a 5.x to 7.0 upgrade take longer

This table lists the factors that stretch a Zabbix 5.x to 7.0 LTS upgrade beyond the nominal install steps, with what to check for each. Read it as an inventory to complete before scheduling the maintenance window, since most of the delay comes from items you can measure in your own environment.

DriverWhy it mattersWhat to check
Database size and schema upgrade on first startThe schema upgrades automatically when the new server first starts, and this can take a long time on large databases. The server does not serve monitoring during that step.Measure history and trends table sizes, free disk space for the upgrade, and time a rehearsal on a restored copy of production.
Custom templates and items with positional macrosUpgrading to 6.0 removes positional macros in item names, so items and triggers that depend on them break or need rework before or after the cutover.Search item names and templates for positional macro patterns and list every template that a broken item would affect.
Custom scripts, external integrations and API consumersScripts, dashboards, ticketing hooks and API clients written against 5.x may rely on fields, methods or behavior that changed across the 6.0 and 7.0 releases.Inventory every API caller and script, record the Zabbix API methods used, and test each one against a 7.0 copy.
Password policy and stored credentialsUpgrading to 6.0 stops trimming spaces from passwords, so a password with leading or trailing spaces may stop matching after the upgrade.Identify user accounts and integrations whose passwords contain leading or trailing spaces, and confirm login before the cutover.
Audit records and compliance evidenceUpgrading to 6.0 replaces the audit tables without preserving old audit records, so the history of changes made in 5.x is not carried forward.Export the audit log you need for retention or assessment before the upgrade and confirm the retention requirement with your compliance owner.
PHP extensions and web tierZabbix 7.0 raised the minimum PHP version from 7.4.0 to 8.0.0, so the frontend host may need a new PHP runtime and extension set before the upgrade.Check the PHP version and loaded extensions on each web node, and confirm the web server and PHP-FPM configuration against the 7.0 requirements.
Number of proxies and agents needing sequenced upgradesServer, proxies and agents must be upgraded in a planned order, so a large fleet of proxies and agents adds coordination time after the server is done.Count proxies and agents by version, confirm which versions work with a 7.0 server, and plan the order and the mixed-version period.

Questions buyers ask before upgrading Zabbix 5.x to 7.0 LTS

What drives the cost of a Zabbix 5.x to 7.0 LTS upgrade?

The cost follows the written scope, and the largest drivers are the number of Zabbix components in play (server nodes, proxies, frontends), the size of the database, how much custom content must be reviewed, and how many environments need a rehearsal first. A plan that covers only the server and frontend costs less than one that also rebuilds templates, reviews macros and item names, and tests on a copy of production. Recurring costs appear only if you add a support subscription or a retainer. Ask for a quote that lists each environment, each component, the rehearsal runs and the rollback plan as separate lines, so you can see what is one-time work and what recurs.

How long does the Zabbix database schema upgrade take?

The schema upgrades automatically the first time the new server starts, and the time depends mainly on the size of the history and trends tables, the database engine and the hardware it runs on. Zabbix's upgrade documentation notes that this step can take a long time on large databases, so the honest answer is that you must measure it on a copy of your production database rather than guess. Check the database size, the number of history rows per table, free disk space for temporary growth, and whether the server is held back during the change. Your quote should state how the rehearsal timing will be recorded and how it feeds your maintenance window.

What does the team have to provide for the upgrade?

The team provides access and decisions, and DeployOpen needs them before work starts. Expect to supply a current configuration inventory, database access for a backup and a copy, the list of monitored hosts and templates in use, custom scripts and media types, and the names of the people who approve changes and maintenance windows. You also need a test environment or permission to build one, backups you have verified can be restored, and a named contact for the business owners of critical monitored services. Missing items usually turn into schedule delays, so list them in the statement of work.

Can our in-house team do the Zabbix 5.x to 7.0 upgrade without a partner?

Yes, a team with Linux, database and Zabbix administration experience can perform the upgrade, and the official upgrade procedure is the starting point for either path. The questions to answer honestly are whether your team has rehearsed a major jump, whether it has the PHP 8 and database prerequisites in hand, and whether anyone can cover the on-call load during the window. Many teams keep the upgrade in house and bring in a partner only for the parts they have not done before, such as history table work or template review. Compare your team's capacity against the same written scope a partner would sign.

Will we lose our audit records when we upgrade Zabbix?

Yes, for upgrades to 6.0 and later, the audit tables are replaced and old audit records are not preserved. Zabbix's 6.0.0 upgrade notes say this directly, so an upgrade from 5.0 or 5.4 to 7.0 LTS passes through that change. If you need those records for an investigation, a compliance review or a retention commitment, export them before the upgrade and store the export under your own retention policy. Ask the implementation team to confirm the export method, where the file is kept and who can read it, and record that step as a deliverable.

Does a Zabbix support subscription change the upgrade plan?

A support subscription does not change the upgrade steps, but it changes who you can call when something fails and how quickly they respond. Zabbix offers Silver, Gold, Platinum, Enterprise and Global tiers, with response times ranging from 1 day with 8x5 cover at Silver to 1 hour at Global with 24x7 cover, according to Zabbix's support page. Open-source Zabbix has no license fee, so a subscription is an extra purchase that you decide on separately from the migration. If you hold a subscription, tell the team which tier applies, because the escalation path and any vendor involvement during the window depend on it.

What a fixed-scope upgrade covers and what stays with your team

A fixed-scope engagement for a Zabbix 5.0 or 5.4 move to 7.0 LTS covers the technical preparation and execution work, and it is agreed in writing before any work starts. DeployOpen can scope an inventory of the running estate: the server version, the database backend and its version, the PHP version on the frontend, every proxy and the agent versions on monitored hosts, and the custom templates, macros and item keys that the upgrade may change. From that inventory the work moves to a test-copy upgrade, where the database is restored to a separate environment and the upgrade is run and timed there. The test copy is also where the history table primary key question, the audit table behavior and the PHP 8 prerequisite are checked against your own data, so the production window is not the first time these surface.

Remediation follows the findings. DeployOpen can scope template and macro fixes for positional macros in item names, custom templates that depend on behavior changed in 6.0 or 7.0, and password handling where the upgrade notes call for a change. The deliverables typically include a written runbook with sequencing, rollback steps and go or no-go checks, a go-live support window, and a rollback rehearsal on the test copy. Ask the partner to state in the quote which of these are included, how many environments are covered and what happens if the test copy reveals a blocking finding.

Some decisions stay with your team. Change approval, the business sign-off on which monitoring must be live at cutover, the choice of maintenance window, and acceptance of any loss of old audit records all belong to your organization and should be recorded before the scope is signed. Zabbix technical support subscriptions are optional and separate from the engagement. A support tier can help after go-live, but the upgrade does not require one, and the quote should show the upgrade fee and any retainer as separate lines.

How DeployOpen scopes and delivers a Zabbix 5.x to 7.0 LTS upgrade

DeployOpen starts from your current Zabbix 5.x or 5.4 estate, not from a generic checklist, and agrees the upgrade scope in writing before work starts. The engagement covers the direct path to 7.0 LTS, the database and PHP prerequisites, and the records and templates your teams depend on.

How we scope

  • Inventory the Zabbix server, frontend, database, proxies and template versions in use today.
  • Confirm which audit records must be kept, because upgrading to 6.0 replaces the audit tables without preserving old audit records.
  • Agree whether history table primary key conversion is in or out of the written scope.
  • Record the database engine, data volume and maintenance window needed for the schema upgrade on the first server start.
  • Fix deliverables, timelines and acceptance tests in writing. Engagements are fixed-scope.

How we build

  • Prepare a copy of the production database and run the full upgrade on it first.
  • Check positional macros in item names and PCRE-dependent regular expressions against the 7.0 upgrade notes.
  • Bring the PHP runtime to version 8.0.0 or later, which 7.0 requires, and test the frontend on it.
  • Compare custom templates and imported configuration against the 7.0 default templates before cutover.
  • Rehearse the cutover, including the rollback point, until the team can repeat it without surprises.

How we hand over

  • Deliver a runbook covering the exact upgrade order, commands, checks and rollback steps used.
  • Document the before and after state of audit records, macros, passwords and custom configuration.
  • Provide test results from the copy environment and the production validation checklist.
  • Walk your operations team through the post-upgrade checks and the housekeeping they should watch.
  • Record open items, such as deferred history table conversion, with an owner and a date you agree.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the handover.
  • Retainer scope can cover follow-on work such as the later 7.0 LTS to 7.4 move or the 8.0 LTS planning.
  • Ask any provider to confirm response expectations and what is included in writing before you sign.
  • Agree how changes to templates, proxies and agents are tested before they reach production.
  • Confirm with your vendor which support tier fits your estate, since Zabbix sells its own paid subscriptions.

Sources and further reading

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.