Zabbix host prototypes for VMs and cloud resources

Host prototypes let Zabbix create full hosts automatically for each discovered VM, container or cloud resource, with their own templates, groups and tags. Upgrades can change which prototypes reach existing hosts, so the inheritance check matters.

On this page

How Zabbix host prototypes create hosts for discovered VMs and cloud resources

Host prototypes in Zabbix let you create hosts automatically for virtual machines, containers or cloud resources that a discovery rule finds, so that a growing estate gets monitored without someone adding each machine by hand. A host prototype is a template for a host that sits inside a low-level discovery rule. For every discovered object, Zabbix creates a real host from that prototype, filling in its name, host groups, linked templates, tags and interfaces from macros taken from the discovered object. Teams need this when resources appear and disappear faster than a static host list can keep up, for example autoscaled instances, short-lived containers or cloud resources in accounts that change often. A static host list still fits small, stable estates where each host has a hand-written configuration.

The design work sits in the prototype fields. Name and visible name should use discovery macros that are unique per object, because a duplicate name stops the second host from being created. Interfaces need the discovered address, so the discovery rule must return it. Groups and templates decide what the new host collects and alerts on, so choose them from attributes the discovery returns, such as an image name, a cloud tag or a VM folder. Confirm in your environment whether a given macro is populated for every discovered object, because an empty value is the most common reason a prototype produces a host with the wrong template or no interface. Test with one discovered object on a staging server before you enable the rule across the estate.

Host prototypes also inherit configuration from templates, and this needs checking after an upgrade. The Zabbix 7.4 upgrade notes warn that host prototypes inherited through templates may be added to discovered hosts, and they give an SQL query to find the affected hosts. Run that query before and after the upgrade, review which hosts gain extra prototypes, and decide whether to remove them from the template or keep them deliberately. Confirm the exact query and steps against the Zabbix 7.4.0 upgrade notes for your version before you run anything on a production database.

Configuration options and when each fits

This table compares the main host prototype settings, from host name and visible name macros to interfaces, groups, templates, tags and inventory. Read each row for when the setting fits a VM or cloud resource pattern and what it means for maintenance after discovery runs and upgrades. The main takeaway is that every per-host choice multiplies the number of objects you must keep consistent over time.

SettingWhen it fitsMaintenance trade-off
Host name and visible name macrosDiscovered names are unique and stable, such as a cloud instance ID or VM name taken from discovery macrosNames built from volatile fields (IP address, zone, tag value) can create duplicate or renamed hosts after a change in discovery data
Interface selection (agent, SNMP, JMX, IPMI)Use the interface type the discovered resource actually exposes, with the IP or DNS macro matching your network designWrong interface type causes hosts to stay unavailable; hosts behind NAT or private cloud networks need DNS or agent-based naming checked
Host groupsGroup by environment, team or resource type so permissions and dashboards follow the discovered populationGroups set in the prototype apply to every new host; moving a host later means editing it or changing the prototype and its existing hosts
One shared linked templateMany VMs share the same role and monitoring needs, such as one Linux server template for all application nodesChanges reach every host at once, which speeds fixes but makes a bad template change affect the whole fleet
Per-resource template setsResources differ by role or cloud service and need different checks, for example database versus web instancesMore template combinations to test and keep current; each new combination adds an upgrade and review step
TagsCarry cloud labels, owner or cost-centre values into Zabbix for filtering, alert routing and reportingTag values from cloud metadata change over time; confirm which tags should be fixed at creation and which should follow discovery
Inventory modeUse automatic inventory when discovered fields such as OS or hardware data are useful to operatorsAutomatic inventory overwrites manual edits, so teams must decide which fields are maintained by discovery and which by people

Setting up host prototypes for a discovery source

This sequence takes a discovery source from its macros and rules through a working host prototype that creates correctly configured hosts for each discovered VM, container or cloud resource. It ends with checks that confirm the hosts carry the expected templates, groups and tags.

  1. Confirm the discovery source and its macros

    Confirm which discovery rule will find the VMs, containers or cloud resources, and which item or script keys it uses. Open the discovery rule's preview or the latest data for its discovery item and list the LLD macros it returns, such as the resource name, ID, address and any tag or group values you want to reuse. Decide which macro will become the visible host name, because it must be unique across discovered resources. Done when you can point to a discovered row in the preview that contains every macro the host prototype will need.

  2. Check the discovery rule and its filters

    Review the discovery rule's filters and the item prototypes that feed it so that only the intended resources pass. Confirm that the rule runs against the correct host or proxy and that the discovery item returns data in the expected JSON structure. A discovery rule with no matching filter output will create no hosts, so confirm the preview lists the resources you expect before going further. Done when the preview shows the intended set and excludes resources that should not be monitored.

  3. Create the host prototype on the discovery rule

    Open the discovery rule's host prototypes tab and create a host prototype. Set the host name and visible name using the LLD macros you confirmed, and attach the interface macro that holds the address the agent or check will use. Add the host prototype to one or more host groups and link the templates that should apply to each created host. Save the prototype. Done when the prototype appears in the discovery rule's list with the macros shown as unresolved placeholders, not as literal text copied from one resource.

  4. Add tags and inventory settings to the prototype

    Add host tags built from discovery macros, such as the resource type, cloud region or hypervisor, so that created hosts can be filtered and assigned later. Keep tag names and value formats consistent with the rest of your Zabbix instance, because tags on hosts drive dashboards, problem views and permissions. Confirm which inventory fields you want populated and whether the prototype should set them. Done when the prototype lists each tag with its macro, and you have written down which tag values will identify the source system.

  5. Test against one discovered resource

    Run the discovery rule manually or wait for its next cycle, then check the host list for one resource that the rule found. Confirm that each macro resolved to the value you saw in the preview, that the host name is unique and that the interface address points to a reachable endpoint. Check that the templates, groups and tags on the new host match the prototype. Done when that single host exists with the expected template links and its items begin to receive data, which you can see in Latest data.

  6. Verify macro values and template links across hosts

    Review every host created by the prototype, not only the first one. Look for duplicate host names, unresolved macros such as the raw macro text, hosts missing a template link or hosts that landed in the wrong group. Compare a sample of tags with the source resource so that the mapping is correct. Where a template inherits host prototypes, confirm the inherited prototypes did not add extra hosts that you did not design. Done when the host list shows no unresolved macros and every created host matches the template and group set you defined.

  7. Record the setup and review after upgrades

    Document the discovery rule, the host prototype settings, the macros used and the templates linked, so that a later engineer can reproduce or audit the configuration. Set a review step for each Zabbix upgrade, because host prototypes inherited through templates can be added to discovered hosts after an upgrade and should be checked against your intended design. Your Zabbix version's upgrade notes describe the query to find affected hosts, so confirm that query against your own instance. Done when the documentation exists and the post-upgrade check is part of your change process.

How a discovered resource becomes a monitored host

Discovery starts with a discovery rule that scans a source such as a hypervisor or cloud API and returns one entry per resource. Each entry is passed to the host prototypes on that rule, which create a host and attach the templates, host groups and tags defined there. Templates linked to the new host bring their own item prototypes, and any host prototypes inherited through a template can add further hosts. When reviewing the design, check which host prototypes arrive through templates, because an upgrade can add them to hosts that did not have them before.

Discovery rule to host, template and item creation, including inherited host prototypes.

What changes in template inheritance after a Zabbix 7.4 upgrade

The Zabbix 7.4 upgrade notes warn that host prototypes inherited through templates may be added to discovered hosts after the upgrade. For a team that builds discovery around linked templates, this is a change in what hosts look like, not just a version number. A host prototype defined on a template can start producing hosts on machines that were previously discovered without it, so the first step is to find out which hosts would be affected before the upgrade window opens.

The risk sits in estates with custom templates that carry host prototypes, particularly where a template is linked to many discovered hosts or to a host group that has grown over time. Discovered VMs, containers or cloud resources could gain extra host records with their own templates, groups or tags, and those records can then trigger alerts, consume license-free but still real capacity, and clutter inventory. The upgrade notes include an SQL query for finding hosts that would be affected. Run it against a staging copy of the production database first, and confirm the query matches your schema version and database engine before relying on its output.

Review the results with the people who own each template and discovery rule. Check whether each affected host is one you want to keep, whether its prototype-created host should exist at all, and whether any tags or group memberships would change alert routing. Record the decisions, then rehearse the upgrade on staging and compare host counts and template links before and after. Only apply the same changes to production once the staging review is complete. The upgrade notes are the authoritative reference for the exact query and any follow-up steps, so link your runbook to them and confirm the current text for your release.

Security and operational considerations for automated host creation

Host prototypes let a single discovery rule create many hosts, so each setting you choose applies to every host the rule finds. The cards below cover the decisions that shape scope, credentials, access and evidence, and each one is worth settling before the first discovery run reaches production.

Scope of the discovery rule

A discovery rule that matches broadly will create hosts for resources nobody intended to monitor, such as test VMs, short-lived containers or cloud resources in an account owned by another team. Decide the match criteria first, such as hypervisor cluster, cloud tag or network range, and write them down. Check the rule against a sample inventory before enabling it, and confirm who approves new discovery scopes.

Low-level discovery docs

Shared interface and credential settings

Host prototypes copy interface settings, macros and secrets to every host they create, so a wrong default spreads to the whole fleet at once. Decide which values must be per-host, such as IP addresses taken from discovery macros, and which must come from a vault or a restricted user macro. Avoid placing passwords in plain text macros on prototypes that many hosts inherit.

Template edit rights

Changes to a template change every host that inherits it, and host prototypes inside a template carry that inheritance too. Decide which roles may edit templates, host prototypes and discovery rules, and separate those rights from host administration. Test template changes on a staging copy before they reach production, because a single edit can alter hundreds of hosts.

Upgrade inheritance checks

The Zabbix 7.4 upgrade notes warn that host prototypes inherited through templates may be added to discovered hosts. Decide whether any of your templates carry host prototypes that should not reach existing hosts, and run the SQL query from the notes against a staging copy before upgrading production. Record the affected hosts and the decision taken for each.

7.4 upgrade notes

Audit trail for created hosts

Hosts created by discovery have no operator who clicked create, so the audit trail depends on configuration logs, discovery events and your own change records. Decide which Zabbix events, user actions and external logs you keep, how long you keep them, and who reviews new auto-created hosts. Confirm with your compliance team which evidence they will ask for before the first audit cycle.

Cleanup and ownership of new hosts

Discovered hosts that outlive their VM or cloud resource add noise, licensing questions and stale data exposure. Decide how removed resources are handled, whether hosts are disabled or deleted, and which tags or host groups identify ownership so alerts reach the right team. Confirm the lost resource settings on a test discovery rule before relying on them in production.

Questions buyers ask before handing host prototype work to a partner

What does the cost of host prototype work depend on?

Cost depends mostly on how many discovery sources you have, how many templates and host prototypes must be designed, and how much upgrade testing and staging work the change requires. A single hypervisor integration with one template family is a very different job from several clouds feeding host prototypes with separate groups, tags and inherited templates. Ask for a quote built from a written list of discovery sources, template families, the number of host prototypes, and whether a staging copy is included. One-time design and build work is separate from any recurring support or retainer, so ask the partner to label each.

How long does host prototype work take for a large estate?

Duration follows estate size, the number of discovery sources, and how fast your change control approves changes to production templates. Discovery and template design usually take longer than the configuration itself, because naming, grouping and tagging decisions have to be agreed with the teams that will receive the alerts. Upgrade testing adds time if you run staging copies and need sign-off before production changes. No duration is fixed here, so ask the partner to tie the timeline to milestones in the written scope and to the approval steps your change board requires.

What does our internal team need to provide before the work starts?

Your team needs to provide read access to the discovery sources, such as hypervisor or cloud API accounts with scoped read permissions, and a Zabbix test or staging environment that matches production. You also need a written naming standard for host groups, template names and tags, and a named owner for each template family who can approve changes. Without these decisions, host prototypes tend to create hosts that are hard to filter, alert on or report against. Agree on who owns template changes after handover, since that owner will decide how upgrades are applied.

Can our own team build host prototypes without a partner?

Yes, a team with Zabbix administration experience can build host prototypes in-house, especially for a small number of discovery sources. The work that is harder to staff is the upgrade-related review, such as checking whether host prototypes inherited through templates are being added to discovered hosts after a version change. Teams that run discovery at scale often find the design and testing workload is what consumes time, not the configuration screens. Compare the internal effort with the scope a partner would write, including staging, documentation and handover.

What goes wrong with host prototypes after a Zabbix upgrade?

The main risk is that host prototypes inherited through templates are added to discovered hosts that were not meant to receive them. The Zabbix 7.4 upgrade notes warn about this and provide an SQL query to find affected hosts, which should be run before and after the upgrade. Other failures include duplicate hosts from overlapping discovery rules, and hosts that receive the wrong template because a tag or group condition changed. Ask the partner to include a pre-upgrade inventory of affected hosts and a documented rollback step in the plan.

Does the work include changes to our access controls and secrets?

Host prototype work touches credentials for discovery sources, and the access used by Zabbix should be scoped to read-only permissions wherever the platform allows it. Ask how discovery credentials will be stored, rotated and limited, and who can change host prototypes in production. Access to the Zabbix frontend itself should follow your identity model, and Zabbix supports internal, HTTP, LDAP, SAML and MFA authentication methods. Confirm which of these your organization requires before the design is fixed, because it changes who can edit templates.

Will DeployOpen issue a compliance certificate for our monitoring setup?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue audit reports, attestations and certifications. For host prototype work, the evidence typically includes the documented template ownership, change records and the staging test results from upgrades. Ask the partner to list the evidence it will hand over, and confirm with your assessor which records they expect to see before the work starts.

How DeployOpen scopes and delivers Zabbix host prototype work

DeployOpen plans, implements, documents and supports Zabbix host prototype work inside your own infrastructure, including the VM and cloud discovery rules, the host templates and groups they create, and the inheritance checks after upgrades. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory which discovery sources feed host prototypes, such as hypervisor APIs, cloud inventories or container runtimes, and who owns each one.
  • Map the templates, host groups and tags each discovered resource type should receive, and where those assignments come from.
  • Record the Zabbix version in use and whether any template in scope inherits host prototypes that could create unexpected hosts after an upgrade.

How we build

  • Design host prototype naming, interface selection and group rules so discovered hosts sort predictably and do not duplicate existing hosts.
  • Build host prototypes on a staging copy first, then test creation, removal and template linkage against a representative set of VMs or cloud resources.
  • Review template inheritance and the discovery filters that stop short-lived resources from creating hosts that persist after they disappear.

How we hand over

  • Deliver the written configuration record: discovery rules, host prototypes, template links, group and tag mappings and the reasons behind each choice.
  • Provide the pre-upgrade checklist for host prototypes inherited through templates, including the query the Zabbix 7.4 upgrade notes give to find affected hosts.
  • Walk your operations and platform teams through the runbook for adding a new resource type and for reviewing hosts created by discovery.

How we support

  • Run the host prototype inheritance check again before each planned Zabbix upgrade, on a staging copy of your installation.
  • Support later changes to discovery rules and templates as your VM and cloud estate grows, under a retainer if you want continuous help.
  • Ask any support provider to confirm response terms and what is covered in writing before work starts, since DeployOpen publishes no price list and a quote follows from the agreed scope.

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.