Importing Zabbix template bundles and webhook media types

Load Zabbix templates and webhook media types into a fresh or air-gapped instance from the Git repository or release bundles, with the branch matched to your server version and each bundle checked before import.

On this page

Why importing template bundles needs a version check first

If you are standing up a new or isolated Zabbix server, it has no out-of-the-box templates or webhook media types yet, and the import has to match the server version. Template bundles are YAML files packaged in archives, and each archive includes an index file that lists which templates each YAML file contains. Read the index before you import anything, because it tells you what the bundle will create on your server and whether the names and structure line up with the version you are running. The Zabbix documentation on out-of-the-box templates describes how these bundles are organized and published.

The bundles hold two kinds of content. Template YAML files carry the out-of-the-box templates for hosts and services, and webhook media types are published as separate bundles as well. The supplied naming for the webhook bundle is media_bundle-7.4-000.yaml, which shows that media types are versioned like templates and carry the release line in their name. Confirm the file names in the archive for your exact release before you copy them into a process, and do not assume that a bundle from one line will load cleanly on another. Teams usually take this route instead of building templates by hand when they need a complete, vendor-maintained starting point for a fresh or air-gapped instance and do not want to recreate hundreds of items, triggers and macros manually.

Before the first import, check three things: the server version, the template branch or release bundle you intend to use, and whether your environment can reach the Git repository or whether the archive must be transferred in. Record the exact version of the bundle and the version of the server in your change record, so an auditor or a future upgrader can see what was loaded and when. On an isolated network, this check is also the point where you confirm that the archive was obtained through an approved route and that its contents match what you expected. Test the import on a staging copy first, since a template that loads without error can still change items and triggers on production hosts once they are linked.

What each bundle contains and how to read the index

A template bundle is more than a pile of YAML. The archive layout and its index file tell you which templates are present, which file holds them and whether a bundle matches the Zabbix line you run. Checking these before import prevents partial or mismatched templates from reaching a production instance.

YAML files inside the archive

Each bundle is an archive of YAML template files, one or more templates per file, that Zabbix reads on import. Extract the archive into a working folder and keep it under version control with the rest of your configuration so every import can be traced. Confirm the file names match the names listed in the index before you import anything, since a renamed or missing file will leave a gap you only notice later.

Zabbix template docs

The index file as a coverage map

The index file lists which templates each YAML file contains. Use it as the checklist for coverage: compare the template names in the index against the monitoring targets you plan to onboard, and mark any target whose template is absent. This comparison is quick to do on paper and avoids discovering a missing template only when a host shows no data.

Matching the branch to the server version

Out-of-the-box templates are published per release line, so the bundle must match the Zabbix server version you run. Check the branch or release label on the bundle against your server before import, and treat any mismatch as a blocker rather than a warning. Importing a template from another line can add items or triggers that your server does not expect.

Webhook media types in a separate file

Webhook media types are published separately from templates, in a file such as media_bundle-7.4-000.yaml. Import them as their own step and check the file name for the release line it targets. Review the webhook URLs and any credential fields in the file before import, because a media type can send alert data to external endpoints.

Out-of-the-box templates

Spotting templates from another release

Some bundles contain templates that belong to a different release line, often with version markers in the file name or template description. Search the index and file contents for version strings that differ from your server, and review any template that depends on items or macros your version does not provide. Ask your vendor or integration owner to confirm which templates are supported on your line before you import them into a production instance.

Choosing between the Git repository, release bundles and single templates

This table compares the three ways to get Zabbix templates and webhook media types into an instance: the Git repository branch, the release archive and a single template file. Read each row against your own build, air-gapped network or staged upgrade to see which source keeps your versions matched and your local changes safe.

FactorGit repository branchRelease archive bundleSingle template file
ReproducibilityTracks a branch, so the content can change over time unless you pin a commitFixed to one published release, so repeat imports produce the same contentDepends on the file you saved, which is only as repeatable as your copy
Offline useNeeds a clone or a mirror inside the network before it can be usedWorks after you copy the archive across the boundaryEasiest to carry across an air gap as one file
TraceabilityCommit history shows what changed and when, if you keep the cloneVersion in the archive name ties the content to a Zabbix releaseWeakest, unless you record where the file came from and its checksum
Risk of overwriting local changesHigh if you import a whole branch over customized templatesHigh for full-bundle imports, lower if you import selected templates onlyLowest, because you touch one template and can review its diff first
Fits a fresh buildGood when you clone the branch matching your server versionGood when you import the archive for that same versionRarely needed, since a fresh instance needs the full set
Fits an air-gapped networkWorkable with a mirrored repository, so confirm your transfer processWell suited, provided the archive is staged with the server versionSuited to a few specific templates needed inside the boundary
Fits a staged upgradeUse only with a pinned branch that matches the target server versionStrong choice, since you can test the matching bundle on a staging copy firstGood for testing one template at a time before wider rollout
Confirm before useBranch naming for your server version and whether your mirror tracks itArchive availability and the index file listing templates for your versionTemplate version and any dependencies it expects on the target server

Importing bundles in the right order on a fresh instance

This sequence gets template bundles and webhook media types into a new Zabbix instance in a order that avoids broken references, with a check at each step so the team knows what is in place before moving on. It fits both connected builds and air-gapped installs where files arrive through an approved transfer path.

  1. Confirm the running server version

    The engineer responsible for the instance records the exact Zabbix server version from the frontend or the server binary, and notes the database and front end that sit with it. This version decides which template branch or archive is correct, so it is the first input to every later step. Check: the version written in the change record matches what the server reports, and anyone reviewing the import can see the same value.

  2. Select the matching template branch or archive

    Using the version recorded in the previous step, the engineer picks the template branch in the Git repository or the release bundle built for that same Zabbix line. Mixing a template set from a different version is a common cause of unresolved items and triggers, so do not substitute a newer or older set because it looks convenient. Check: the branch or archive name matches the server version and the choice is written down with its source.

  3. Transfer the archive through the approved path

    The engineer moves the archive into the environment using the route your security team has approved, such as a internal artifact store, a media transfer process for an isolated network, or a controlled download host. The team computes a checksum on the source side and again after transfer, so the bundle that is reviewed is the bundle that is imported. Check: both checksums match and the transfer record names who moved the file and when.

  4. Review the index and bundle contents

    The engineer unpacks the archive and reads the index file, which lists which templates each YAML file contains. They compare that list against the templates your team expects to use and note any file that holds unexpected objects or is missing templates you depend on. Check: a written list of files and the templates they contain has been reviewed and signed off by the person who owns the monitoring configuration.

  5. Import webhook media types first

    The engineer imports the media type bundle, which carries the webhook media types, before any template that refers to them. Importing templates first can leave references pointing at media types that do not exist yet, which makes later troubleshooting harder. Confirm the exact import menu path and options in the installed version, since they can change between releases. Check: each media type appears in the administration area with the expected name and parameters.

  6. Import the template files in index order

    The engineer imports the template YAML files in the order the index suggests, reviewing any import warnings before accepting the result. Where a template depends on another template or on a media type, the dependency should already be present. Confirm the import options for updating existing objects and deleting missing ones, and leave deletion disabled on a fresh instance unless the team has decided otherwise. Check: the import completes without errors and the warnings, if any, are recorded with an owner.

  7. Verify imported objects in the frontend

    The engineer opens the template and media type lists in the frontend and checks that the expected templates, items, triggers and macros are present and that linked templates resolve. They also test one media type with a non-production notification where the environment allows it. Confirm the menu paths in the installed version, because the layout of the template and media type pages changes between releases. Check: a short verification record lists each imported object, its status, and the person who signed it off.

Moving bundles into an isolated network

Download and verify template bundles on a connected workstation first, then carry only the verified files across the boundary. Pick the source before you download: either clone the template repository at the branch that matches your server version, or download a release archive and freeze it. A Git clone gives you history and lets you pull fixes later, but the content can change between two pulls, and a checkout of a moving branch is hard to reproduce during an audit. A frozen release archive gives you one fixed set of files that you can hash once and reference in change records, at the cost of having to fetch a new archive for every update. Many teams with air-gapped networks freeze the archive for each upgrade cycle and keep the Git history as a reference for reviewing what changed.

Before anything crosses the boundary, record a SHA-256 hash of every file in the bundle, the Zabbix server version it targets, the template branch or release identifier, the download date and the name of the person who downloaded it. Keep the record in your change system, not in the transfer media. The bundle contains YAML files and an index file that lists which templates each file contains, so compare that index against the files you actually packaged to confirm nothing was dropped or added. Confirm with your security team which transfer process, approved media, scanning step and approval chain your network requires, because those controls belong to your organization. On the far side, recompute the hashes and compare them with the record before importing anything.

Security checks for imported templates and webhook scripts

Templates and webhook media types run logic inside your monitoring server, so importing them is a privileged change, not just a content update. The cards below cover what to review, who may import, where credentials belong and how imports are traced, with each control matched to the role model of your own instance.

Review webhook scripts before enabling

A webhook media type contains a script that Zabbix runs with the alert data it receives, and it sends that data to an external endpoint. Read the script line by line, list every URL it calls, and check which alert fields it forwards, such as host names, IP addresses or problem text. Test it on a staging instance with a dummy endpoint before the media type is enabled for any user or action.

Out-of-the-box templates docs

Limit who can import

Template and media type imports change what every host and alert in the instance does, so restrict the import action to a small administrative role. Confirm which Zabbix user roles can create or update templates and media types, and remove those permissions from general administrators and integration accounts that do not need them. Review the role model whenever you add an upgrade or automation account.

Keep endpoint credentials out of templates

Webhook tokens, API keys and basic-auth passwords should never be typed into a template or media type body, because exports and bundles carry that text to every copy of the file. Store secrets in a managed location, reference them by macro or by the parameter the media type exposes, and mark secret macros so their values are hidden in the interface. Check each imported bundle for hardcoded values before it is loaded.

Verify bundle contents against the index

Each bundle archive includes an index file that lists the templates each YAML file contains. Compare that list with the files in the archive and with the template branch matching your server version before importing. Unexpected files, templates you did not request or a mismatch between index and content should stop the import until someone explains them.

Trace who imported what

Record the account, time, source archive and version of every template and media type import, using your change process and the audit log that Zabbix provides for configuration changes. Store the archive checksum next to the record so a later question about a changed template can be answered from evidence. Confirm in the Zabbix security guidance how audit entries are retained and where they can be exported.

Match controls to your role model

Map each control to the roles in your instance: who reviews scripts, who approves imports, who holds the credentials and who can run the import. Authentication methods such as LDAP or SAML affect how those roles are assigned, so check that just-in-time provisioning does not create accounts with broader rights than intended. Confirm the final mapping against the Zabbix security documentation for your version before go-live.

Questions teams ask before importing Zabbix template bundles

Can our own team import Zabbix template bundles without outside help?

Yes, a team with Zabbix administrator access can import bundles on a fresh instance, because the work is a file import through the web interface or the API, followed by checks. The effort rises when the instance is large, carries many local template changes, sits in an air-gapped network that needs files moved in by an approved route, or must go through formal change review. Teams that have not handled a Zabbix upgrade before usually benefit from a second reviewer for the first import. Whether your team has the time and skills is the real question, and a short internal trial on a staging copy will answer it.

What makes a template bundle import take longer?

The main drivers are the number of Zabbix instances, how many custom or edited templates already exist, how files reach an air-gapped network, and how deep the review must go. Each additional instance repeats the import and the checks, so the work multiplies. Custom templates that inherit from out-of-the-box templates need a closer look, because a bundle can change items, triggers or macros they depend on. A review that compares every template against your local copies takes longer than a spot check of imported names. Ask any partner to state which of these drivers its quote assumes.

What does the team need to provide before the import starts?

You need Zabbix administrator access to the target instance, a staging copy that matches production as closely as possible, and a named approver for the change. Access should cover template import, media type configuration and, for webhooks, the secrets the media types use. The staging copy lets you confirm the bundle loads cleanly and that existing hosts still report problems and notifications as expected. Change approval should record the Zabbix server version, the template branch used, the bundle file names and the rollback plan. Confirm these items with your change board before scheduling the work.

How is importing bundles different from updating templates after an upgrade?

Importing bundles covers getting templates and webhook media types into an instance that lacks them, such as a fresh install or an air-gapped system. Updating templates after an upgrade covers bringing existing out-of-the-box templates in line with a new server version while keeping local changes. The second task carries more risk, because a bundle import can overwrite template content that your team has edited. Some import methods replace everything in place, so the choice of method and a staging test matter more during an upgrade. Keep the two tasks separate in your change records.

Which template branch should we use for our Zabbix version?

Match the template branch to the Zabbix server version you run, because templates are tied to the item keys, macros and features of that release. Zabbix publishes its out-of-the-box templates through a Git repository and release bundles, and the documentation describes how each bundle is organized. Each bundle is a set of YAML files in an archive with an index file that lists which templates each file contains. Webhook media types are published as separate files, such as media_bundle-7.4-000.yaml for the 7.4 line. Check the index file before importing so you know exactly what will be loaded.

What should a partner scope for a template bundle import?

A partner scope should list the instances in scope, the Zabbix versions and template branches, the bundles and media types to import, the staging test, the review depth for custom templates, and the air-gap transfer steps if they apply. It should also name the deliverables, such as an import log, a list of changed templates, a validation checklist and a rollback procedure. Ask for a written statement of what is excluded, such as custom template redesign, host configuration or alert routing. DeployOpen plans and delivers this work as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before work starts, and provides a quote once that scope is set.

Do we need to validate webhook media types differently from templates?

Yes, webhook media types send data to external services, so they need checks that go beyond template loading. Confirm the endpoint, the authentication method, the stored secret handling and the message content each webhook sends. Test the notification path on staging with a non-production destination, and confirm that secrets are not visible to users who should not see them. Your security team should review where the credentials live and who can edit the media type. Treat the webhook import as a configuration change with its own sign-off, not as a template update.

How a bundle moves from source to a verified instance

The path starts in the template source, either a Git branch or a release archive, and the first check is that the template branch matches the Zabbix server version. The bundle then crosses an offline transfer boundary into the air-gapped network, where the index file is reviewed to confirm which templates each YAML file contains. Media types are imported before templates, and each stage is verified on a staging instance before the same steps run on production.

Bundle flow from source, through the offline boundary, to staging and production.

How DeployOpen scopes and delivers Zabbix template imports

DeployOpen treats a template import as a controlled change to a monitoring system, not a file copy. We agree which bundle, which branch and which media types match your Zabbix server version, then load and verify them in a non-production copy before anything reaches production. Engagements are fixed-scope, with the deliverables written down before work starts.

How we scope

  • We confirm your exact Zabbix server version and the template branch that matches it before any import is planned.
  • We list which bundles and webhook media types you need, and which local template changes must survive the import.
  • The written scope names the air-gapped or restricted source route, the staging copy and the handover documents.

How we build

  • We stage the Git or release bundle files on your side, with checksums recorded for each archive that enters the network.
  • We import on a staging copy, check the index file against the templates actually loaded, and compare them with your current versions.
  • We test each webhook media type with a sample message and record the parameters that need your own endpoints or secrets.

How we hand over

  • You receive a record of the bundle versions, branch, import method and checksums used in each environment.
  • A runbook explains the steps for the next upgrade, including how to review changes before overwriting local edits.
  • We walk your operators through the import, the media type test results and the rollback steps, and record open items.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so template updates can follow each Zabbix release.
  • Retainer work can repeat the staging import and media type checks when you move to a new Zabbix version or template branch.
  • Support requests are handled against the agreed scope, and any change beyond it is quoted in writing before work begins.

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.