Zabbix VMware vSphere monitoring

Zabbix monitors vCenter, ESXi hosts, datastores and virtual machines through its built-in VMware collector, which polls the vSphere API and feeds templates and discovery. This page covers the build sequence, the settings to size, the identity needed and the failures to test for.

On this page

Zabbix VMware vSphere monitoring: how vCenter data reaches Zabbix

A virtualization team that runs vSphere and wants host, datastore and VM health in Zabbix can get it without adding a separate monitoring tool. Zabbix uses its VMware collector processes on the Zabbix server to poll the vSphere API, and the vCenter and ESXi templates together with VM discovery turn that data into hosts and items. This is the supported method described in the Zabbix VMware monitoring documentation. It is a configuration built into Zabbix, so no custom connector has to be written, tested or maintained. You create a host for the vCenter, attach the templates and set connection macros such as {$VMWARE.URL} that tell Zabbix where to connect.

Three decisions come before anything is built. The first is scope: list every vCenter and standalone ESXi host that should be monitored, because each one adds load on the collectors and runs its own discovery. The second is polling. VMwareFrequency controls how often the server polls vCenter for inventory, VMwarePerfFrequency controls performance counters, and VMwareTimeout sets how long a request may wait. StartVMwareCollectors should be at least 2 and should not exceed twice the number of monitored VMware services, and VMwareCacheSize sets the shared cache for collected vSphere data. Confirm the current defaults and limits for your version before you change them.

The third decision is who owns the vSphere account. Zabbix needs a user on each vCenter to read inventory and performance data, and that password is stored in Zabbix as a host macro that can be marked as secret. Agree the owner, the privileges and the rotation process before the build starts, and ask the vSphere administrator which read-only role covers the objects Zabbix must see. A shared administrator login is the quickest to set up and the hardest to audit later, so plan a dedicated monitoring account with its own name in the vCenter audit trail. Also confirm that the Zabbix server can reach every vCenter API endpoint in scope.

What you need in place before connecting Zabbix to vCenter

Five prerequisites decide whether the first vCenter poll succeeds. Each one sits with a different team, so the owners need to agree on them before anyone creates a host in Zabbix. Confirm each item in writing against your own environment.

Supported Zabbix version

Confirm that the Zabbix server runs a release still under full or limited support and that the VMware collector is enabled on it. The server starts the VMware collector processes, so an unsupported release or a disabled feature stops vCenter polling even when the network and account are correct. Choose the release line before you import templates, since each release ships its own set. Check the support dates on the life cycle page, and let the platform team own the version decision with a named upgrade window.

Life cycle policy

Read-only vSphere account

Create a dedicated vCenter account for Zabbix and assign it a read-only role that carries only the privileges listed in the Zabbix VMware monitoring documentation for your version. Confirm the exact list on that page before you build the role, because privilege requirements change between releases and an older guide can be wrong. Do not reuse a personal administrator login, since its password ends up in Zabbix macros and every API call then appears under a person's name in vCenter. The vCenter administrator owns the role, the account and password rotation.

VMware monitoring docs

Network paths to vCenter and ESXi

Map a route from the Zabbix server to vCenter and from the same server to every ESXi host you poll directly. For each path, record the protocol and port, then confirm with the network team that the firewall allows the traffic in both directions where return packets need it. Test each path from the Zabbix server itself, because a workstation on another segment proves little about the server's reachability. Ask whether a Zabbix proxy in the data center is the right collection point for remote sites. The network team owns firewall changes and route approval.

Certificate trust for vCenter

Zabbix has to validate the certificate that vCenter presents, so the Zabbix server must trust the issuing certificate authority and the full certificate chain. Confirm that the certificate name matches the address in the host configuration and that the certificate is not expired. Keep certificate checks on during the first poll, since turning them off exposes the vCenter password to anyone who can intercept the connection. Set an expiry alert before go-live, because renewal is a recurring task that monitoring can also watch. The PKI team owns the trust chain, and the vCenter team owns the certificate.

Server and database sizing

Size the Zabbix server and its database for the planned host count, including expected growth. Set the VMware collector count with care: StartVMwareCollectors should be at least 2 and should not exceed twice the number of monitored VMware services. Check the database versions listed on the requirements page for your release, because supported versions differ between releases. Ask your DBA to estimate history storage growth before you set retention. The platform team and DBA own the sizing decision.

Requirements page

Two credential paths carry Zabbix into vCenter and its database

An administrator uses the Zabbix web frontend, which reads and writes configuration in the Zabbix database. The Zabbix server runs the VMware collector processes. It calls the vCenter API with a read-only vSphere account and connects to the database with its own credential, so those two credential paths are the ones to review. The management network boundary holds vCenter and the server, and VMs discovered from vCenter appear in Zabbix as hosts. The design team must confirm whether each ESXi host is polled through vCenter or directly.

Zabbix server, vCenter and ESXi hosts with the two credential paths.

Configuration sequence for Zabbix VMware vSphere monitoring

This sequence takes a Zabbix server from no VMware monitoring to a vCenter, its ESXi hosts, datastores and a narrow set of virtual machines reporting in Latest data. Each step closes with a check you can run yourself, so a failure surfaces at the step that caused it. Confirm template versions and macro names against your Zabbix release before you start.

  1. Enable and size the VMware collector

    On the Zabbix server, set StartVMwareCollectors in zabbix_server.conf and restart the service. Zabbix advises a value of at least 2 and no more than twice the number of monitored VMware services. Review VMwareCacheSize, VMwareFrequency, VMwarePerfFrequency and VMwareTimeout at the same time, since they set the cache size, polling intervals and request timeout. The Zabbix server administrator makes this change. Done when the server restarts without configuration errors and the VMware collector processes show as running.

  2. Create and test the read-only vSphere account

    The vCenter administrator creates a dedicated account with a read-only role on the inventory scope you plan to monitor, with no write permissions. Before you touch Zabbix, test that account against the vCenter API from a machine you control, such as a login to the vSphere Client or an API session request. Done when the login succeeds and the account can see the clusters, hosts, datastores and VMs in scope. A rejected login or missing objects at this stage would cause the Zabbix checks to fail later for the same reason.

  3. Create the vCenter host and secret macros

    In Zabbix, create a host for the vCenter server and set the connection values the VMware template reads, including the URL, the account name and the password. Store the password in a secret text macro so its value is masked in the host configuration. Confirm the exact macro names in the template you will attach, because they can differ between template versions. Done when the host saves and the password macro shows as hidden. Saving the host does not test the login, so the check in the next step is the one that proves the connection works.

  4. Attach the vCenter template and confirm data

    Link the official vCenter template to the vCenter host and allow the items time to update. Open Monitoring, then Latest data, and filter by the vCenter host to see values for the vCenter items the template creates. Done when the items show values with recent timestamps. If an item is in error, open it in the item list and read the error text, which usually points to a connection, certificate, permission or macro problem. Fix that cause and recheck the item before moving on.

  5. Attach the ESXi template to hosts

    Attach the ESXi template to each ESXi host, either by letting vCenter discovery create those host entries or by linking the template to existing hosts directly. Choose one path for each host so items are not duplicated. In Latest data, check the host, datastore and performance items for one ESXi host and one of its datastores. Done when those items return values. Performance items follow the performance polling settings from the first step and may appear after the host and datastore items.

  6. Enable VM discovery with a narrow filter

    Turn on virtual machine discovery in the vCenter template and limit it with a filter, such as a name pattern or folder, that matches only a few VMs you use for testing. Keep the filter narrow until the first run is clean. Done when the expected VMs appear in the host list with their own items returning data in Latest data. Check that VMs outside the filter do not appear. Once that holds, widen the filter in planned steps so the number of monitored hosts grows in a controlled way.

Which VMware settings to size and tune first

StartVMwareCollectors sets how many collector processes the Zabbix server starts to poll VMware services. Each collector handles part of the vCenter and ESXi work, so this value decides how much of that work can run in parallel. The Zabbix documentation advises that it should not be below 2 and should not exceed twice the number of monitored VMware services.

  • Keep a floor of 2: Never set the value below 2, even in a small environment, so that one slow request does not stop all VMware polling.
  • Stay under the ceiling: Do not exceed twice the number of monitored VMware services. Collectors beyond that point are unlikely to add useful parallel work and still use server resources.
  • Confirm how services are counted: The ceiling depends on how a monitored VMware service is counted in your setup, so confirm that counting method for your version before calculating the value.
  • Raise it only on evidence: Increase the value when the server's internal metrics for VMware collector busy time show saturation, and check that vCenter load stays acceptable afterward.
  • Plan a restart: Changes to zabbix_server.conf need a server restart to take effect, so schedule the change in a maintenance window.

Check the monitored service count and the collector busy metrics before you change this value, using the Zabbix VMware monitoring documentation for your version.

How vCenter, ESXi, datastore and VM objects map to Zabbix

This table compares each vSphere object with the Zabbix host, item or account that represents it, how that record is created, and what your team must decide first. Read it from the vCenter down to the VMs, since most ESXi hosts and virtual machines often arrive through discovery. Confirm exact item and host names against the vCenter and ESXi templates in your Zabbix version before you build host groups and naming rules.

vSphere objectHow Zabbix represents itHow it is createdWhat the team must decide
vCenter instanceA host linked to the vCenter template, holding discovery rules, vSphere connection macros and inventory-level itemsAdded manually, then linked to the vCenter template and given its URL and credential macrosHost name, host group, polling server or proxy, and StartVMwareCollectors (Zabbix advises at least 2, and no more than twice the monitored VMware services)
ESXi hostsA host per hypervisor, linked to the ESXi template with hypervisor items and triggersDiscovered from the vCenter host through host prototypes, or added manually for hosts outside that scopeHost group and naming pattern for discovered hosts, and what happens when a host leaves vCenter inventory
DatastoresDiscovered items and triggers for capacity and health, kept on the discovering hostLow-level discovery on the vCenter or ESXi host, depending on the template version you useCapacity thresholds for each datastore type, and whether alerts go to storage or virtualization teams
Virtual machinesA host per virtual machine, linked to the guest template, with power state, CPU, memory and disk itemsDiscovered through host prototypes on the vCenter host, so new VMs appear after a discovery cycleHost group and naming field, handling of templates and powered-off VMs, and removal of retired VMs
vSphere account and privilegesA dedicated read-only vSphere user; Zabbix stores its credentials in host macrosCreated by the vSphere administrator in vCenter, then entered in Zabbix by the monitoring ownerRole scope in vCenter (inventory level), the privileges your version requires, and password rotation
Zabbix user rolesAccess to hosts comes through user groups with read permission on the host groups holding vCenter, ESXi and VM hostsRoles and user groups are created in Zabbix; discovered hosts join host groups set in prototypesWhich teams see which host groups, whether any group needs write access, and who administers the vCenter host

How new VMs become Zabbix hosts through discovery

VM discovery turns vSphere inventory into Zabbix hosts through a discovery rule that lists virtual machines and creates each one from a host prototype. Before you enable it, decide which clusters and folders the rule may see. Scanning the whole vCenter is simple in a small lab, but in a large or multi-tenant vCenter, each tenant's folders, test clusters and template VMs would produce hosts that nobody owns and alerts that nobody answers. Scope works best when it follows the structure your operations team already uses, such as one cluster per business unit or one folder per tenant. Confirm which filter fields your Zabbix version offers for VM discovery, whether it can match on name, folder or cluster, and whether powered-off VMs are included. Test the filter against the vCenter first and count the hosts it returns before any host is created.

Host names must be unique in Zabbix, but vSphere names are not. Two VMs in different folders can share a name, and a VM cloned from a template often keeps the template's name until someone renames it. Build the visible host name from fields that stay stable, such as the vCenter identifier, the VM name and a short folder or tenant code, and confirm which VM identifiers your version exposes for the host name and the discovery key. The host prototype also decides which template is linked. Link the guest template your team has approved for VMs, and keep ESXi and vCenter monitoring on their own templates so a VM never picks up host-level items by mistake. Place newly discovered hosts in a holding host group with notifications routed to nobody, and move each host to its owning team and enable alerting only after that team has confirmed it.

Removal and rename need a decision before go-live. When a VM is deleted or moves out of the discovery scope, the discovery rule marks its host as lost. Your version's lost-resource settings control how long the host remains and whether it is disabled first, so confirm both in the Zabbix VMware monitoring documentation. Deleting a host also removes its history, so set the retention period in advance and export data for VMs that feed capacity or compliance reports. A rename is harder. If the discovery key is based on the VM name, a renamed VM looks like one host deleted and another created, and its history splits across two records. If the key is based on a stable VM identifier, history stays with the host, but the visible name may lag until the host prototype updates it. Test both cases in a staging vCenter with one renamed VM and one deleted VM, and record what Zabbix does.

Security controls for the vSphere account and Zabbix access

Zabbix reaches vCenter with one account and keeps that account's credentials in its own configuration, so these controls decide how far a compromise of the monitoring account or the Zabbix interface can reach. Each card covers one control and ends with a check to confirm in your own environment before the collector goes live.

Dedicated read-only vSphere account

Create a separate vCenter user for Zabbix, and do not reuse an administrator or personal account. Give it a read-only role limited to the datacenters, clusters, hosts, datastores and virtual machines that Zabbix must discover and measure, with no privileges that change configuration or power state. Before go-live, confirm in the Zabbix VMware monitoring documentation which privileges the collector needs for your version, then test discovery and performance data using that account alone. Record an owner so the account can be disabled quickly.

VMware monitoring docs

VCenter password in a secret macro

Store the vCenter password in a secret macro on the host, and keep it out of plain text macros, template descriptions and inventory notes. Plain text values are visible to anyone who can open the host configuration and can spread through configuration exports. Confirm which vault and secret options your Zabbix version supports, including whether an external vault can supply the value, before you choose a storage pattern. Restrict who can read secret values, and schedule password rotation with a record of the next change date.

Certificate validation for the vCenter endpoint

The collector sends requests to the vCenter API over HTTPS, so the certificate vCenter presents must chain to a trusted CA chain that every polling Zabbix server or proxy accepts. Install your internal CA on those hosts, and avoid turning off verification to clear a connection error. Check that the certificate name matches the address in the host macros, because a name mismatch fails validation. Confirm which certificate verification options the VMware collector honors in your Zabbix version and where they are set.

Limiting who edits VMware macros and templates

Host macros for vCenter and ESXi hold the endpoint address, the account name and the password reference, and the VMware templates control what gets discovered and created. Anyone who can edit those hosts or templates can change where data is pulled from or point a host at a different endpoint. Use user roles and user groups to give edit rights on VMware host and template groups to a small team, and give everyone else read access. Review these grants whenever team membership changes, and confirm the permission model in the Zabbix documentation for your version.

Authentication methods for Zabbix users

Zabbix supports internal, HTTP, LDAP, SAML and MFA authentication. Match the method to your identity system: LDAP or SAML for workforce accounts, with just-in-time provisioning so a Zabbix user account is created on first login, and MFA for administrator access. Keep one local emergency account with a stored and tested credential, and list the internal accounts that remain after the change. Confirm in the authentication documentation which methods and provisioning options apply to your version before you disable internal login for staff.

Zabbix authentication docs

Reviewing the monitoring account in vCenter

vCenter keeps its own record of what the monitoring account does, separate from anything Zabbix logs. Review the event and task history for logins from the monitoring account, failed sign-ins, source addresses that differ from your Zabbix servers and proxies, and any permission or role change tied to the account. Agree who performs this review, how often it happens, and how long vCenter logs are retained. Any task that changes a virtual machine and is run by the monitoring account is an exception to investigate.

Common VMware monitoring failures and how to fix them

This table pairs each common VMware monitoring failure with its likely cause and the fix to try first. Read the Zabbix server log and the error text on the failing item before you change any setting, because the message often names the cause. The main takeaway is that many gaps trace back to the account, the network path, or a collector and timeout setting that does not match the size of the vCenter.

SymptomLikely causeFix
vCenter items show no dataWrong account, missing privileges, untrusted certificate, or blocked network path to vCenterTest the account against vCenter, grant read privileges, trust the certificate, and open the path from the Zabbix server
Collector queue or lag grows as the estate growsToo few VMware collectors for the number of monitored services, or polling too frequent for the loadRaise StartVMwareCollectors, keeping it at least 2 and no more than twice the monitored VMware services, then lengthen VMwareFrequency and VMwarePerfFrequency
Stale or slow inventoryVMwareCacheSize or VMwareFrequency set too low or too high for how often the estate changesSize the cache to the object count, set the refresh interval to how fast new VMs must appear, then recheck item lag
Timeouts on large vCentersVMwareTimeout is shorter than the vCenter response time for large inventory callsRaise VMwareTimeout in small steps, then check whether the collector count or polling load also needs changing
VMs not appearing as hostsDiscovery filter too narrow, or the VM template is not linked to the host prototypeWiden the discovery filter, confirm the prototype links the VM template, and check the discovery rule's last run
Duplicate or renamed hosts after VM movesHost naming in discovery uses a field that changes or is not unique, so a moved VM can create a second hostChoose a stable host name for discovery, check for the existing host, then disable the duplicate once its history is confirmed
Performance items missingVMwarePerfFrequency set in a way that does not fit vCenter sampling, or the account lacks performance read rightsConfirm the account can read performance counters, then check VMwarePerfFrequency against the interval the item error text reports

What buyers ask before setting up Zabbix VMware vSphere monitoring

What drives the cost and effort of Zabbix vSphere monitoring?

The size and shape of the VMware estate drive most of the effort. Count the vCenter Server instances, ESXi hosts, virtual machines and datastores first, because discovery and item volume grow with each. Next, decide how many VMware collectors you need and how often the team polls, since faster polling and larger caches add load on the Zabbix server and proxies. Then count the discovery rules and templates that need tuning to match your naming, tagging and folder structure. The team's Zabbix experience changes how much the provider builds and how much your staff must learn during the work. Most of this is one-time setup effort, but estate growth brings tuning later. Ask for each of these items to be priced or sized separately in the written scope.

Can our own team set up vSphere monitoring with Zabbix without a partner?

Yes, for a small environment, provided the team has an experienced Zabbix administrator. A single vCenter with a modest number of ESXi hosts is a reasonable first project for an in-house team that already runs Zabbix, and the official VMware monitoring documentation is the main reference. The work gets harder as the estate grows, when several vCenters need separate handling, or when the team has not yet tuned discovery and collector settings. Consider a partner when the change window is short, when no one on staff can own the templates after go-live, or when auditors expect a documented build and handover. Check the documentation for the version you run, because template names and parameters change between releases.

How long does a Zabbix VMware monitoring project usually take?

Duration depends on the written scope, so no fixed figure applies across environments. The work usually runs in phases: discovery of the vCenters, hosts and datastores, design of the collector count and polling intervals, build of the Zabbix configuration and templates, testing against a representative vCenter, then a change window and handover. Each phase depends on how many vCenters are in scope, how consistent the existing inventory naming is, and how quickly access and approvals arrive. Ask the provider to show each phase with its inputs, owners and exit criteria, so you can see where the time goes. Access and approval delays can move a schedule more than the build itself, so confirm read accounts before agreeing a start date.

What does our team need to provide for vSphere monitoring setup?

Plan for four inputs: vCenter access, a change window, a test environment and named owners. Read-only monitoring credentials for each vCenter let the collectors query inventory and performance data. A change window covers the cutover, when collector settings and new host records go live. A test vCenter, if you have one, lets the team validate discovery and polling before production. Assign owners for the alerts, including who receives them, who acts on them and who approves threshold changes. Confirm with your VMware administrators what the read role may see, because that sets what Zabbix can collect.

What recurring work follows a Zabbix vSphere monitoring go-live?

Recurring work covers template updates, account reviews and capacity checks. After each Zabbix upgrade, the VMware templates may change, so test the updated templates against a copy of your configuration before importing them. Review the monitoring account at a set interval and remove access that is no longer needed, especially after vCenter role changes. Check collector load as the estate grows. The VMware monitoring documentation advises keeping StartVMwareCollectors at 2 or more and no higher than twice the number of monitored VMware services, so adjust it alongside cache, frequency and timeout settings. Keep these tasks on a named owner's calendar so they do not lapse after handover.

How many VMware collectors should a vSphere monitoring setup run?

Start with at least two collectors, then size the count from the number of monitored VMware services. Zabbix advises that StartVMwareCollectors should be at least 2 and should not exceed twice the number of monitored VMware services. Set it together with VMwareCacheSize, VMwareFrequency, VMwarePerfFrequency and VMwareTimeout, because more collectors help little if polling is too frequent or the vCenter is the bottleneck. Watch the Zabbix server's own queue and collector load after go-live, and adjust in small steps. Confirm the current guidance for your release before you set these values in production.

What should a written quote for vSphere monitoring include?

A useful quote names the scope precisely, so you can compare providers on the same work. List the vCenters and ESXi hosts in scope, the template set with its version, and the discovery rules that will turn new virtual machines into monitored hosts. Ask for the collector count and polling settings to be stated, along with the testing approach and acceptance criteria. Include the handover: documentation, a walkthrough for your operators, and who maintains the configuration after go-live. Ask which items are one-time and which recur, such as template updates or retainer support. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope.

How DeployOpen scopes, builds and supports Zabbix VMware monitoring

DeployOpen plans and builds Zabbix VMware vSphere monitoring inside your own vCenter, ESXi and Zabbix environment, so the collector, templates and discovery rules match your inventory. Each engagement starts with a written scope that names the vCenter instances, clusters, datastores and VM discovery rules in play. The work ends with documented settings and a handover your operations team can run day to day.

How we scope

  • The written scope lists each vCenter, ESXi cluster, datastore and VM discovery rule included.
  • We record VM count, polling intervals and collector count so the quote reflects your actual inventory.
  • Fixed-scope engagements are agreed in writing before work starts, and ongoing support is available as a retainer.

How we build

  • We set StartVMwareCollectors within Zabbix guidance: at least 2, and at most twice the number of monitored VMware services.
  • We tune VMwareCacheSize, VMwareFrequency, VMwarePerfFrequency and VMwareTimeout against your vCenter load and test results.
  • We import the vCenter and ESXi templates and configure discovery so new VMs are added as Zabbix hosts.

How we hand over

  • Handover includes the collector sizing, cache and polling values, and the reasons each was set.
  • Discovery filters, host naming and template versions are documented so your team can extend them.
  • Test evidence covers polling from vCenter and ESXi, plus a checked list of hosts and VMs discovered.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering Zabbix and template updates.
  • Confirm your Zabbix version's support dates in the Zabbix life cycle policy before planning any upgrade.
  • Vendor support tiers from Zabbix are separate from DeployOpen retainers, so confirm which covers your vCenter issues.

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.