Creating Zammad tickets from Zabbix alerts

Zabbix problems can open Zammad tickets through the Zammad media type webhook, using a dedicated alerter user with a personal access token and a severity to priority mapping. This page covers the method, prerequisites, setup sequence and failure points.

On this page

How Zabbix alerts become Zammad tickets

Zammad documents a Zabbix media type webhook that creates tickets from Zabbix problems, so infrastructure incidents can enter the same queue as customer and internal requests instead of sitting in a monitoring mailbox or chat channel. The method is described in the Zammad admin documentation and requires Zabbix 5.4 or higher. Before you build it, confirm the Zabbix version you run, because older installations will need an upgrade first.

The webhook authenticates to Zammad as a dedicated alerter user, not as a named engineer. Create a separate agent account for this purpose, give it the ticket.agent permission and enable API token access, then issue a personal access token for that user. Scope the user's group access so it can create tickets only in the queues that receive alerts. Keeping this account separate means alert volume is attributable, the token can be rotated without disrupting a person's login, and a leaked token has a limited blast radius. Decide who owns the account and the token renewal process before go-live.

In the Zabbix media type, the webhook takes zammad_access_token, zammad_url, zammad_customer and zammad_enable_tags as parameters. The customer parameter determines which Zammad customer record is shown as the requester of every alert ticket, so agree on a single monitoring customer account and confirm how agents will read it. Tags are optional; enabling them lets Zabbix attach labels to tickets, which helps routing and reporting, but only if your tag vocabulary is agreed first. Zabbix severities can be mapped to Zammad priority IDs, and that mapping is the decision with the most operational impact: a severity that maps too low will bury a critical outage, and one that maps too high will flood on-call agents. Test each severity against a staging trigger and confirm the priority IDs in your own Zammad instance.

What you need before creating the Zabbix media type

The Zabbix media type can only send alerts once four things are in place: a supported Zabbix version, a Zammad instance the Zabbix server can reach, a dedicated agent user with the right permissions, and a personal access token for that user. Check each one before you touch the Zabbix web interface, because a missing permission usually shows up later as a failed alert rather than a clear error.

Zabbix 5.4 or higher

The Zammad admin documentation describes ticket creation from Zabbix 5.4 or higher through a webhook media type. Confirm the exact version on your Zabbix server and web frontend, since both must be upgraded together in a normal installation. If you run an older Zabbix release, plan the upgrade first and check its life cycle, because a version near end of support may also affect how long this integration stays in service. Confirm the version before you build anything.

Zabbix life cycle

A reachable Zammad instance

The Zabbix server sends the webhook request directly to Zammad, so the Zammad URL must resolve and respond from the Zabbix server host, not only from your workstation. Test this from the Zabbix server itself with a simple HTTP request to the Zammad API address. Note whether Zammad sits behind a reverse proxy, a load balancer or a separate network segment, because each hop can block the request or change the URL you need to enter.

Network path and TLS trust

Confirm the network path between the Zabbix server and Zammad, including any firewall rules, proxy settings and the port Zammad is published on in your environment. If Zammad uses an internal certificate authority, the Zabbix server must trust that certificate chain, or the webhook will fail on TLS verification. Ask your network and security teams to confirm both points in writing, because they depend on your own infrastructure and are not standard across installations.

A dedicated Zammad agent user

Create a separate Zammad user for alerts rather than reusing a named engineer's account. The user needs the ticket.agent permission so it can create tickets, and API token access must be enabled for that user. A dedicated account keeps alert traffic separate from personal activity, makes audit entries easier to read, and lets you disable the integration without affecting people. Decide the group and role of this user before you create it, since it will own every alert ticket.

A personal access token

Generate a personal access token for the dedicated alerter user. The Zabbix media type stores this token as zammad_access_token, so anyone with access to the Zabbix media type configuration can read it. Limit who can edit Zabbix media types, record where the token was created, and plan a rotation step. Confirm in your own Zammad version where token scopes are set, because the permissions you need should be limited to ticket creation for this user.

Configuring the Zammad media type in Zabbix

This sequence connects a dedicated Zammad alerter user to a Zabbix media type, maps Zabbix severities to Zammad priorities and routes a test problem into a Zammad group as a ticket.

  1. Create the Zammad alerter user and token

    A Zammad administrator creates a dedicated agent user for Zabbix, grants it the ticket.agent permission in a group it should write to, enables API token access and generates a personal access token. Store the token in your secrets vault, because Zabbix needs it later and Zammad shows it only once. The step is complete when the user is listed as an active agent and the token authenticates a read-only API call from the Zabbix server network path. Confirm the current token and permission screens against the Zammad admin documentation for your installed version.

  2. Import the Zammad media type into Zabbix

    A Zabbix administrator imports the Zammad media type from the Zammad admin documentation for Zabbix, or creates an equivalent webhook media type by hand. Zabbix 5.4 or higher is required for this webhook method, so confirm your server version first. The step is complete when the media type appears in Administration, Media types, is enabled, and its script runs without a syntax error in the test dialog. Keep the import under change control, since the script is the component that sends Zabbix data to Zammad.

  3. Set the URL, token, customer and tag parameters

    In the media type parameters, the administrator sets zammad_url to the base address of the Zammad instance, zammad_access_token to the alerter token and zammad_customer to the customer account that will own alert tickets. Set zammad_enable_tags to decide whether Zabbix problem tags are copied into Zammad as ticket tags. Use a customer account that exists in Zammad and is not a real person's address. The step is complete when the media type test returns a success response from Zammad and no authentication error, which confirms the URL, token and customer values are accepted.

  4. Map Zabbix severities to Zammad priority IDs

    The administrator reads the priority IDs from the Zammad priority settings, then enters a Zammad priority ID for each Zabbix severity in the media type mapping, from Not classified through Disaster. Map the highest Zabbix severities to the priority that your support team treats as urgent, and do not leave any severity unmapped. The step is complete when a test with each severity produces a ticket whose priority matches the mapping table in your change record. Priority IDs differ between installations, so read them from your own instance rather than copying them from another deployment.

  5. Assign the media type to an alerting user

    A Zabbix administrator opens the Zabbix user that will receive alerts, adds a media entry of type Zammad, enters a recipient value that matches the route you have chosen, and sets the severities that should produce tickets. Use a dedicated Zabbix user for this purpose if the same person also receives other notifications, so the ticket route stays separate. The step is complete when the user's media list shows the Zammad entry as enabled, and the user has permission to see the hosts that will raise problems.

  6. Attach the media type to an action

    The administrator creates or updates a Zabbix trigger action with conditions that select the problems to send, such as host group or severity, and adds an operation that sends a message to the alerting user through the Zammad media type. Set the recovery operation if closing or updating tickets is needed, and confirm that the alert message contains the event details your agents require. The step is complete when the action is enabled and Zabbix's action log shows a notification sent for a test problem.

  7. Verify the ticket lands in the expected group

    Trigger a controlled test problem on a non-production host, or use a test event, then open the Zammad queue for the group the alerter user writes to. Check the ticket title, body, priority, customer, and tags against the mapping you configured. Repeat the test for at least one high and one low severity. The step is complete when each test produces one ticket in the expected group with the expected priority, and no duplicate tickets appear for a single problem. Record the results before pointing the action at production hosts.

Mapping Zabbix severities and fields to Zammad tickets

This table compares each Zabbix media type setting with the Zammad object it controls and the decision someone must make before go-live. Read each row as a design question to settle with the support team, then confirm the values in your own instances. The main takeaway is that priority IDs and the customer account are local choices, not defaults you can copy from another installation.

SettingWhat it controls in ZammadDecision to agree before go-live
Zabbix severityThe Zabbix problem severity that triggers ticket creation and is mapped to a Zammad priority IDWhich severities create tickets at all, and whether lower severities should be ignored to keep the queue usable
Zammad priority IDThe numeric priority ID in your Zammad instance that each Zabbix severity is sent asConfirm the IDs in your own Zammad priority settings, since they are set per instance and must match the support team's SLA priorities
zammad_customerThe customer account that owns tickets created from alerts, so alerts are not attributed to a real personWhether a dedicated monitoring customer exists, which organization it belongs to, and who answers tickets it receives
zammad_enable_tagsWhether the media type adds tags to each created ticket, so alert tickets can be filtered and reportedWhich tag names the support team wants, and whether tags are used in triggers, views or reporting
zammad_access_tokenThe personal access token of the dedicated alerter user that authenticates ticket creationWho owns the alerter user, the token expiry and rotation schedule, and where the token is stored in Zabbix
zammad_urlThe address of the Zammad instance that receives the webhook callsWhether Zabbix reaches Zammad over the internal network and which certificate chain it must trust
Alert groupingHow repeated problems for the same host are handled, which affects duplicate ticketsWhether one ticket per problem is acceptable or whether updates should be appended to an open ticket

How a problem moves from Zabbix into the Zammad queue

A Zabbix problem reaches the Zammad queue through a chain of four steps. A Zabbix action fires when a trigger creates a problem event, and the action sends the message through the Zammad media type. That media type is a webhook script that reads the values it was given, including zammad_url, zammad_access_token, zammad_customer and zammad_enable_tags, and calls the Zammad API. The call authenticates with the personal access token of the dedicated alerter user, which must carry the ticket.agent permission with API token access enabled. Zammad then either creates a new ticket or appends the alert to an existing one, and the alert lands in the same queue as user requests, where agents work it with their normal triggers, macros and SLAs.

Two design choices shape what agents see. The first is whether recoveries are sent at all. A recovery message can close the loop on a ticket or add a note saying the problem has cleared, but it can also create noise when a flapping trigger opens and closes repeatedly. The second is how repeated problem updates are handled. Zabbix can send further messages while a problem stays open, and whether each one should create a new ticket, append to an open one or be ignored depends on your Zabbix action conditions and the message templates you use. Confirm exactly which events your action sends and what the media type does with each one, because the webhook code and your Zabbix version determine this. Check the behavior in the Zammad admin documentation on Zabbix and in your own test environment before you enable the action for production hosts.

Where the alerter token, webhook and ticket queue sit

The flow starts at the Zabbix server, where a trigger action runs the Zammad media type as a webhook. The webhook calls the Zammad REST API with the dedicated alerter user's personal access token, and Zammad creates the ticket in the queue that agents work from. The dashed boundary marks the crossing from the monitoring network into the support network, which is where you should check token scope, outbound network rules and which queue receives alert tickets.

Zabbix alerts reach the Zammad ticket queue through a token-authenticated webhook across the network boundary.

Securing the alerter token and the webhook path

The Zabbix media type holds a credential that can create tickets in your helpdesk, and it sends that credential to a Zammad URL on every problem event. Each card below covers one control on that path, from the account and token that Zabbix uses to the people who can change the media type. Work through them before the integration reaches production.

Dedicated least-privilege alerter user

Create a separate Zammad user for Zabbix rather than reusing an administrator or a personal agent account. The Zammad documentation for this integration asks for a user with ticket.agent permission and API token access enabled, so grant only that role and nothing broader. Confirm that the alerter user cannot log in interactively if your policy requires it, and document who owns the account so it survives staff changes.

Zabbix setup docs

Scoped personal access token handling

The alerter user authenticates with a personal access token, so that token is the secret that matters most. Create it only with the permissions the integration needs, record its creation date and owner, and never paste it into tickets, chat or shared runbooks. Confirm in your Zammad version how token expiry and revocation are handled, and plan a rotation date that your change process can execute without a Zabbix outage.

Protected storage of the token in Zabbix

The media type takes the token as the zammad_access_token parameter, so it sits in the Zabbix configuration. Store it in the most protected macro or secret type your Zabbix version supports, and confirm which macro types hide values in the interface, in API output and in exports for that version. Check that the token does not appear in logs or in exported media type YAML before you share the configuration with other teams.

Restricting the alerter user's group access

Limit the alerter user to the groups that receive infrastructure alerts, and avoid giving it access to customer-facing queues or sensitive organizations. Because the token can create tickets in any group the user can reach, group membership defines the blast radius if the token leaks. Review this mapping whenever you add a new queue, since a new group may be reachable without anyone deciding that it should be.

TLS on the Zammad URL

The zammad_url value tells Zabbix where to send the token and alert text on every event, so the endpoint must use HTTPS with a certificate that Zabbix trusts. Avoid disabling certificate verification in the Zabbix server or proxy, including on internal networks. Confirm that the Zabbix server or proxy trusts your internal certificate authority, and that the path is reachable only from the monitoring network.

Audit of media type edit rights

Anyone who can edit the Zammad media type in Zabbix can redirect alerts, change the token, or add a script that copies data elsewhere. Limit media type administration to a small group of Zabbix administrators, and review the Zabbix user role assignments on a fixed schedule. Confirm that your Zabbix version records configuration changes in its audit log, and keep a copy of the media type definition under change control.

Why Zabbix alerts fail to create Zammad tickets

This table lists the failures most often seen when the Zabbix media type cannot create Zammad tickets, with the likely cause, the observable symptom and the fix for each. Work down the rows in order, because token and endpoint problems hide the later ones. Confirm each check in your own Zabbix media type log and Zammad ticket list before changing the configuration.

FailureLikely causeSymptom and checkFix
Token rejectedPersonal access token lacks ticket.agent permission or API token access is not enabled for the alerter userMedia type log reports an authorization or forbidden response; no ticket appearsConfirm the alerter user has ticket.agent and API token access, then regenerate and update zammad_access_token
Wrong or unreachable zammad_urlURL points to the wrong host, path or port, or Zabbix server cannot reach Zammad over the networkConnection timeout or name resolution error in the Zabbix server logTest the URL from the Zabbix server host with curl, then correct zammad_url and any firewall rule between the two hosts
Certificate trust errorZammad uses an internal certificate authority that the Zabbix server does not trustLog shows a TLS verification or certificate chain error while the browser worksInstall the internal CA on the Zabbix server, then retest; avoid disabling verification as a permanent fix
Priority ID does not existSeverity mapping refers to priority IDs that were renamed, deleted or differ between instancesTicket creation fails with a validation error mentioning priorityList priority IDs in the Zammad admin settings and update the severity mapping to match
Customer not foundzammad_customer does not match an existing Zammad user or the account is inactiveError mentioning the customer value; no ticket createdCreate or activate the monitoring customer account and set zammad_customer to its login or email
Duplicate ticketsEach problem update or recovery event is sent as a new create request instead of being matched to an existing ticketSeveral tickets with the same event name and time pattern in the queueReview the media type message templates and event handling, then confirm the expected update behavior in the Zammad admin documentation before rollout
Media type not assignedThe Zammad media type is not attached to the user who receives the Zabbix action, or the action's conditions do not matchNo media type message appears in the Zabbix action history for the problemAdd the Zammad media type to the alerter user's media list and check the action operations and conditions

Questions teams ask before connecting Zabbix to Zammad

Can our team set up Zabbix alert tickets in Zammad on its own?

Yes, if you have someone comfortable administering both Zabbix and Zammad and a clear owner for the alert queue. The documented method uses a dedicated Zammad user with a personal access token that has ticket.agent permission and API token access enabled, plus a Zabbix media type with its parameters and severity mapping. The work is mostly configuration and testing rather than custom code. Teams without an admin on both sides, or without time to test alert storms and failure cases, often bring in a partner. Ask for a written scope that lists what is configured, what is tested and what your team must own afterward.

What makes the effort of a Zabbix to Zammad integration go up or down?

The main drivers are the number of hosts and triggers that will create tickets, the expected alert volume, how many severities you need to map to Zammad priorities, how tags are designed, and how many Zammad groups must receive different alerts. A small set of hosts with one queue is a far simpler build than many business units, each with its own routing and escalation rules. Alert volume matters because noisy triggers can flood the queue, so tuning thresholds and deciding which problems open tickets should be part of the scope. Ask the partner to show how each of these drivers is handled in the quote.

What do we need to provide before the integration work starts?

You need three things: a Zabbix administrator who can add a media type and actions, a Zammad administrator who can create the alerter user, its token and the target group, and a named alert owner who decides which problems become tickets, how severities map to priority and who reviews the queue. Access to a test Zabbix host and a non-production Zammad instance helps verify behavior before alerts reach agents. Confirm these roles early, because decisions about severity and ownership are business choices that technical staff cannot make alone.

Can we use this method with a Zabbix version older than 5.4?

No. The documented method for creating Zammad tickets from Zabbix requires Zabbix 5.4 or higher, which uses the webhook media type. If you run an older Zabbix release, plan an upgrade first or choose a different route, such as email into Zammad, and confirm that route with your own testing. Check the Zabbix life cycle page for the support status of your version, since an upgrade is also a security and support decision. Your partner should review your current version and upgrade path before quoting the alert integration.

How do Zabbix support tiers and Zammad support differ in scope?

They cover different products. Zabbix technical support subscriptions, which range from Silver to Global, address problems with the Zabbix product itself, and their response times depend on the tier, from 1 day for Silver to 1 hour for Global. Zammad sells self-hosted support subscriptions named Business, Enterprise and Corporation, with response times from 6 hours to 2 hours, and they cover Zammad. Neither vendor's subscription covers the webhook configuration, the token setup or the severity logic you build between them. Ask who owns troubleshooting when an alert fails in the middle, and write that ownership into the scope.

Do we pay a license fee to connect Zabbix and Zammad?

Zabbix open source has no license fee and no device limits, and Zammad is licensed under the GNU Affero General Public License version 3 with no license fee for self-hosted use. The costs that remain are the labor to build and test the integration, the infrastructure that runs both platforms, and any vendor support subscriptions you choose to buy. Support subscriptions are optional and recurring, so decide whether you need them after you have compared scope. Ask for a quote that separates one-time build work from any ongoing support or retainer.

Should alert tickets follow the same security rules as other Zammad tickets?

Yes. The alerter user holds a personal access token with ticket.agent permission, so it can create tickets in the groups it can reach. Treat that token as a secret, limit the user to the groups it needs, store the token in a controlled place in the Zabbix media type, and rotate it under a documented process. Review what Zabbix messages put into ticket bodies, since host names, addresses or service details may be sensitive. Your security team should review these settings before the integration goes live.

How DeployOpen scopes and delivers the Zabbix to Zammad integration

DeployOpen approaches Zabbix to Zammad ticket creation as a scoped piece of work inside your own infrastructure, starting from which Zabbix problems should become tickets and who should own them. We build the Zammad media type, the dedicated alerter user and the priority mapping, then test and document the result so your team can operate it after handover.

How we scope

  • Confirm your Zabbix version is 5.4 or later and that Zammad runs in infrastructure you control.
  • Agree which trigger severities and host groups create tickets, and which stay in Zabbix only.
  • Define the Zammad group, customer account and priority IDs that alerts will use, in writing.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed before work starts.

How we build

  • Create the dedicated Zammad alerter user with a personal access token limited to ticket.agent permission and API token access.
  • Import and configure the Zammad media type in Zabbix with the access token, Zammad URL and customer settings.
  • Map Zabbix severities to Zammad priority IDs and decide whether optional tags are enabled.
  • Test problem, recovery and update notifications against a staging Zammad and a sample host before production use.

How we hand over

  • Deliver a written configuration record covering the alerter user, token storage, media type parameters and priority map.
  • Document how to rotate the access token and what to change when the Zammad URL or Zabbix version changes.
  • Walk your Zabbix and Zammad administrators through the alert path and the test cases used during verification.
  • Record the open items you should confirm with the vendors, such as the Zabbix upgrade plan for your environment.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retesting after a Zabbix or Zammad upgrade can be included in a retainer or a separate fixed-scope change.
  • Support covers the integration we built, so Zabbix and Zammad platform issues remain with their vendors or your own team.

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.