Zabbix agent vs agent 2: which one to deploy

A decision guide to choosing the classic Zabbix agent or agent 2 for Linux and Windows fleets, covering plugins, concurrency, the persistent buffer, systemd and packaging.

On this page

Zabbix agent vs agent 2: which one to deploy for your fleet

For most Linux and Windows fleets, the deciding factors are whether you need agent 2's plugin model and persistent buffer for active checks, or whether a classic agent that does plain item collection is enough. Start with the checks you actually need. If your monitoring is mostly system metrics, log files and simple custom keys, the classic Zabbix agent is the simpler fit: one binary, fewer moving parts, and a configuration file that most Zabbix teams already know. If you need built-in plugins for databases, containers, web servers or Windows services, or you expect a lot of active checks to cross unstable links, agent 2 is the stronger choice. The Zabbix agent 2 documentation is the next read for the plugin list and the configuration keys for each plugin.

Agent 2 is written in Go and runs plugins inside one process. Each plugin has its own concurrency capacity, controlled by a setting that defaults to 1000, so a slow plugin does not block the others in the way a single-threaded check queue can. Agent 2 also adds EnablePersistentBuffer, PersistentBufferFile and PersistentBufferPeriod for active items. With the persistent buffer on, collected values are kept on disk when the server or proxy is unreachable, then sent once the connection returns. That matters for hosts behind intermittent links, laptops, and edge sites, and it is a capability the classic agent does not offer in the same form. Confirm the buffer behavior and the exact settings for your agent version before you write the configuration templates.

Agent 2 has its own operational costs. It is a separate package from the classic agent, some plugins ship as separate packages that must be installed on each host, and its systemd unit has dependencies you should review, especially on hosts with strict service policies. Before rolling out either agent, inventory the item keys in your templates, confirm which plugins they need, check the package names in your repository for each distribution, and test the chosen agent on one host from each operating system family. Mixed fleets are workable, but they double the templates and upgrade tests, so decide on one agent per host class and document the exception.

Which agent fits which host profile

This table compares the classic Zabbix agent and agent 2 across the host profiles you are likely to run into, from simple Linux and Windows servers to database hosts and container nodes. Read each row against your own fleet, then confirm plugin availability and packaging in the current agent 2 documentation before you standardize.

Host profileClassic agentAgent 2
Basic Linux or Windows server with OS items onlyUsually sufficient. Covers standard system items with a small footprint and a single process model.Works, but adds capability you may not need. Choose it only if you plan to use plugins later.
Database host (MySQL, PostgreSQL)Requires custom UserParameter scripts to query the database, which your team must write and maintain.Built-in plugins may cover these checks. Confirm the plugin names, supported versions and packaging for your platform.
Docker or systemd-managed hostNeeds scripted checks or UserParameter entries for container and service state.Plugin coverage for Docker and systemd checks should be confirmed against the current agent 2 documentation for your release.
Many active checks with unreliable network linksActive check results are sent without a persistent local buffer, so data queued during outages can be lost.Adds a persistent buffer for active items (EnablePersistentBuffer, PersistentBufferFile, PersistentBufferPeriod), which helps keep data through short outages.
High concurrency for one pluginConcurrency is governed by the classic agent's own settings. Test under load before assuming it fits.Per-plugin concurrency is capped by a capacity setting that defaults to 1000, so review the value against expected check volume.
Minimal footprint or strict host change controlFewer moving parts and a smaller binary set, which often suits locked-down or legacy hosts.Larger component set. Confirm the package contents and runtime needs with your platform team before rollout.
Mixed fleet managed by one standardSimpler to standardize if every host needs only OS items, but may force scripts later.Often a single standard across the fleet, with plugins enabled only where needed. Confirm which plugins require separate packages.

Decision factors that change the choice

Four factors decide whether the classic agent or agent 2 fits a host. Each one is independent, so you can check them in parallel on a test host before you roll anything out across a mixed Linux and Windows fleet.

Plugin requirements

Agent 2 ships with built-in plugins for checks such as Docker, MySQL, PostgreSQL, Redis and Memcached, which the classic agent does not provide. List every item your templates need on each host class, then confirm which plugin provides it. If a required plugin is missing from your installed build, the item will fall back to unsupported, so check the item status on the test host rather than assuming coverage from the template name. Some plugins are delivered as separate packages, which changes what you install.

Agent 2 docs

Concurrency for plugin checks

Agent 2 caps how many checks a single plugin runs at once through a capacity setting that defaults to 1000. Plugin checks that wait on slow targets, such as a database under load, can hold slots and delay other items from the same plugin. Confirm the capacity value on the test host, then time a full polling cycle against the real target. Review the value again when a host runs many items for one plugin, because the default is per plugin, not per agent.

Persistent buffer for active items

For active checks, agent 2 can keep collected values in a local file when the Zabbix server or proxy is unreachable, using EnablePersistentBuffer, PersistentBufferFile and PersistentBufferPeriod. This matters on laptops, remote sites and hosts that reboot often, where a short outage would otherwise drop data. Set the buffer file on a disk with enough space and confirm the period matches how long you expect an outage to last. Test by blocking the server port on the test host, waiting, then restoring the link and checking for backfilled values.

Systemd dependence and plugin packages

Agent 2 runs as a systemd service on Linux, and its plugin packages install separately from the core agent. Plan for the unit file, the service user, and the package set in your configuration management, so a missing plugin package does not surface only after a reboot. On Windows, confirm which plugins your installer includes before you pre-set server and metadata parameters. Verify on the test host with a service restart, a package listing and a check that every required item returns a value.

How agent 2 runs plugins and buffers active checks

Agent 2 organizes its checks as plugins, each one a built-in module that handles a family of items such as system metrics, Docker, PostgreSQL or MySQL. The classic agent runs every check inside one process loop, while agent 2 hands work to the plugin that owns the item key. That structure matters for planning because the number of plugins you use, and which ones you enable, determines how much work a single host performs and which packages and libraries must be present. Before you choose agent 2, list the item keys your templates need and map each one to its plugin. Items that fall outside the built-in plugins, or that need a driver or client library, are where the two agents differ most in practice, so confirm each mapping against the plugin documentation in the Zabbix agent 2 documentation rather than assuming coverage.

Concurrency is bounded per plugin, not per agent. Each plugin has a capacity setting that limits how many of its checks can run at the same time, and the documented default for that capacity is 1000. The practical consequence is that a slow database plugin, such as one waiting on a stalled query, can fill its own slots without blocking system metric checks handled by another plugin. Test this on a host that carries your heaviest database or container checks, and watch for items that start timing out after a template change, because a higher item count against one plugin is the usual cause. Ask your template authors which items share a plugin and how many run per polling interval, so you can set capacity with evidence rather than the default alone.

For active checks, agent 2 can keep results on disk when the Zabbix server or proxy is unreachable. The settings are EnablePersistentBuffer, PersistentBufferFile and PersistentBufferPeriod, and they must be set in the agent 2 configuration file. Buffered values are sent once the connection returns, so a short network outage does not create gaps in history. You must confirm three things on your own hosts: how long the buffer should retain data (PersistentBufferPeriod), where the buffer file lives and that the agent user can write to it, and how much disk the file may grow to during your longest expected outage. Plan the file location on a volume with free space and monitor it, since the buffer grows while the server is unreachable. Agree these values with your platform team before rollout, and test an outage on one host to measure the real growth.

Decision path from host profile to agent choice

The path starts at the host profile and asks whether the host needs plugin-based checks or runs active checks across unreliable connectivity. A yes to either sends the host toward agent 2, where the persistent buffer and plugin concurrency apply. A no leads to the classic agent. Both branches end at a verification step: confirm the chosen agent collects the expected items and that its plugins and any separate packages are present before rollout.

How a host profile routes to classic agent or agent 2, ending in verification.

How to deploy and verify the chosen agent

This sequence takes the agent chosen for a host from a compatibility check through installation, configuration, service startup and end-to-end verification, so that the first items reach the server with a clear record of each step.

  1. Confirm server version and agent compatibility

    Before installing anything, record the Zabbix server and proxy versions and the agent version you plan to deploy, and check that the agent version is supported by the server line you run. Confirm which plugins the monitored host needs, because plugin availability depends on the agent package. Done means you have a written version matrix that the change owner has reviewed, and every host in the batch matches a supported pairing. Confirm the support window for your server line in Zabbix's life cycle policy before committing.

  2. Install the agent and any plugin packages

    On each host, install the classic agent or agent 2 from the official Zabbix repository for that distribution, then install only the separate plugin packages for the checks you actually intend to run, such as database or cloud plugins. Keep the package versions aligned with the agent version to avoid mismatched plugin behavior. Done means the package manager reports the expected agent and plugin versions, and the binary reports the same version when run with its version flag on the host.

  3. Set Server, ServerActive and Hostname

    Edit the agent configuration file and set Server to the address or addresses allowed to make passive checks, ServerActive to the server or proxy that receives active checks, and Hostname to the exact name of the host object you created in Zabbix. Keep Hostname consistent with the frontend because active checks match on it. Done means the file parses without errors when you restart the service, and the values match your firewall and proxy design for that network zone.

  4. Configure the persistent buffer if chosen

    If you chose agent 2 for its persistent buffer, enable EnablePersistentBuffer, set PersistentBufferFile to a path on a disk with enough space and write access for the agent user, and set PersistentBufferPeriod to the retention window your team agreed. Use a path that survives reboots, and keep it out of temporary storage. Done means the buffer file path exists with correct ownership, and you know which settings you applied so that a later review can compare them against the host's data-loss expectations.

  5. Enable and check the systemd unit

    Enable and start the agent service with systemd, then confirm the unit is active and survives a reboot. Check that the unit's dependencies, such as network availability and any file system the persistent buffer needs, are satisfied in the unit configuration. Plugin-heavy agent 2 deployments should be checked for the service user's access to credentials and sockets. Done means systemctl reports the unit as enabled and active, and the journal shows the agent listening without startup errors.

  6. Verify items arrive on the server

    In the Zabbix frontend, open the latest data view for the host and confirm that items from the attached template show current values, with timestamps close to the present. Test one passive item and one active item separately, since they use different paths through the network. Done means both item types return values, and any item in not-supported state has a documented cause, such as a missing plugin or a blocked port.

  7. Check agent logs and buffer behavior

    Review the agent log file for connection errors, plugin initialization messages and warnings about the buffer. If you enabled the persistent buffer, briefly interrupt connectivity to the server in a test window and confirm that queued active values are sent after reconnection. Done means the log shows no recurring errors, and the test confirms the buffer delivers queued data once the link is restored, which you record in the change ticket.

Security and operations considerations

Agent 2 runs more code, holds more credentials and keeps more state than the classic agent, so the choice carries operating consequences beyond feature lists. The four areas below are where those consequences show up in production, and each one should be decided and written down before the rollout starts.

Agent access and plugin credentials

Agent 2 plugins that query databases, web servers or hypervisors need credentials stored in the agent configuration or in a file the agent reads. Every plugin target should use a dedicated, read-only monitoring account with only the privileges its checks need, never a administrative or shared login. Confirm which Unix user the agent runs as, which files it can read, and who can edit its configuration file, because those settings define what a compromised agent could reach.

Persistent buffer disk footprint

With EnablePersistentBuffer turned on, agent 2 stores active check results in a local file when the server or proxy is unreachable. Size the disk for the expected outage length multiplied by the item rate, and place the file, set by PersistentBufferFile, on a volume that will not fill the root filesystem. Set a monitoring alert on the buffer file size, because a full disk stops the host from doing anything else, not only monitoring.

Systemd service management

Packaged agents usually run as systemd units, and changes to unit overrides, file system protections or restart policies can silently break plugin access or the persistent buffer path. Review the unit file after each package update, record any drop-in overrides in configuration management, and test a restart on a non-production host. Confirm that the buffer directory is writable under the unit's sandboxing settings before relying on it.

Version alignment across the fleet

Keep agent versions aligned with the server and proxy major.minor line, because the agent and server exchange data using protocol versions that change between releases. Mixed versions across a large fleet make failures hard to attribute. Check the Zabbix life cycle page for the support window of each line before choosing a target, and plan agent upgrades in the same change window as server and proxy upgrades.

Current LTS line
7.0 LTS
Zabbix life cycle

Documented agent configuration review

Agent configuration drifts as plugins, server addresses and encryption settings change over time. Store the agent configuration in version control, review changes to server addresses, plugin parameters and remote command settings the same way as firewall changes, and run a periodic comparison against the approved baseline. Ask any vendor or partner for this review record as part of the handover, not only the initial install.

Questions buyers ask before choosing an agent

Does Zabbix agent 2 replace the classic Zabbix agent?

No, not automatically. Agent 2 is a separate agent with its own plugin architecture and its own settings, and the classic agent remains a supported choice for many fleets. Agent 2 adds features such as plugins with per-plugin concurrency, a persistent buffer for active items, and a different service model, so the question is whether those features matter for your hosts. Check the current agent 2 documentation at the Zabbix site and compare it with your monitoring items before you standardize on either one.

What drives the cost and effort of an agent rollout?

The main drivers are fleet size, operating system mix, the number of plugins you need, and how much change control your organization requires. Costs are split between your internal staff time for approvals, testing and change windows, and any partner fees for work agreed in a written scope. Recurring costs include keeping agent versions current and maintaining configuration files and templates. Ask any provider to break the quote into planning, pilot, rollout, documentation and handover, and to state which items recur after go-live.

How long does a fleet change take, and what does it need from my team?

Duration depends on how many hosts change, how many environments need testing, and how quickly your change process approves each wave. No single duration applies to every fleet, so treat any number you are given as a claim to verify against your own scope. Your team typically needs to provide host inventory, access to configuration management, approved maintenance windows, test hosts that resemble production, and a named owner who can accept the agent configuration.

Can an internal team migrate agents without outside help?

Often yes, if the team already runs configuration management, has Zabbix administration experience and can test changes safely. The work is mostly repeatable: confirm which items each host uses, prepare the new agent package, change the configuration, restart the service and verify that data arrives. The harder parts are plugin dependencies, Windows service accounts, and tracking which hosts were moved. Outside help is most useful when the team lacks capacity or needs an audit-ready record of the change.

Which plugins need separate packages, and why does it matter?

Agent 2 plugins for some monitored services are distributed as separate packages, so the plugin you need may not be installed by the base agent package. Check the package list for your distribution and the plugin documentation before planning the rollout. If a plugin package is missing on a host, the item will fail, so add package installation and verification to your build steps and to your pilot checklist.

How does agent 2 depend on systemd, and what should we verify?

Agent 2 runs as a systemd-managed service on Linux, so unit file overrides, service users, file permissions and the persistent buffer directory all affect whether it starts and keeps data. Verify that the service starts after reboot, that the buffer file path is writable by the service user, and that restarts do not drop active item data. Test these behaviors on a pilot host before rolling out wider, and record the results as part of your change evidence.

How do we switch agent type later without losing history?

Switching agents usually means changing the installed package, configuration file and service name, then confirming that the host still reports under the same Zabbix host name and item keys. Host identity and item key compatibility are the points to check first, because a renamed host or changed key can create a new host record and split history. Ask for a rollback step for each wave and keep the previous package available until the new agent has run through a full monitoring cycle.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted Zabbix inside your own infrastructure. For the agent decision, we start from your Linux and Windows fleet, the networks the agents sit in and the plugins your checks need, then build and hand over a rollout you can run without us.

How we scope

  • We inventory operating systems, agent versions, network zones and the checks each host needs before naming an agent
  • We map which plugins your teams require and which need separate packages on each platform
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
  • Your written scope states which hosts, zones and check types the agent choice covers

How we build

  • We build a pilot on representative hosts and test active checks, passive checks and the persistent buffer
  • We confirm concurrency, plugin capacity and systemd service behavior on each target OS version
  • We set the agent configuration parameters and document each deviation from the defaults
  • We check the agent choice against your firewall and proxy design before the wider rollout

How we hand over

  • You receive the agent configuration, deployment packages and the decision record behind agent 2 or classic agent
  • Runbooks cover install, upgrade, plugin changes and rollback for each operating system in scope
  • Verification results show that checks report, buffered data flushes and the service restarts cleanly
  • Your team gets a walkthrough so it can extend the rollout to new hosts without outside help

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • A retainer can cover agent version upgrades when your Zabbix server version changes
  • We can retest the rollout after fleet changes such as new operating system releases or new plugins
  • Ask any partner to confirm response terms and upgrade scope in writing before you sign

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.