Zabbix alerts to PagerDuty and Opsgenie

Route Zabbix problems to PagerDuty or Opsgenie with the bundled webhook media types, correct severity mapping, automatic resolution on recovery and one owner for escalations.

On this page

Zabbix alerts to PagerDuty and Opsgenie: when a webhook route is the right design

On-call teams rarely struggle to detect problems in Zabbix. The harder part is getting each problem to the paging tool with the right service, a severity the responders trust, and a resolve signal that closes the incident when Zabbix recovers. A webhook route is the right design when the paging tool needs more context than a plain email or SMS can carry, and when you want the incident lifecycle to follow the Zabbix problem lifecycle. Zabbix ships media types for PagerDuty and Opsgenie that send HTTP requests from the Zabbix server to each vendor's event endpoint, so the notification logic lives in Zabbix actions and media type parameters rather than in a separate integration service.

This page covers the Zabbix side of that design: which media type to import, how the action conditions and message templates shape each event, how severity and tags are passed along, and how recovery messages are sent. It does not describe how to configure services, escalation policies or routing rules inside PagerDuty or Opsgenie, and you should confirm the current endpoint behavior, required parameters and payload fields against each vendor's documentation and the media type version bundled with your Zabbix release before you rely on them. Ask the paging tool owner which service key or integration key each team will receive, since a mismatch there is the most common reason alerts land in the wrong queue.

Before you build, decide who owns each part. The Zabbix team owns actions, message content and recovery behavior, while the on-call team owns services, escalation policies and acknowledgement rules in the paging tool. Agree on that split in writing, and check that the integration works from the Zabbix server or the proxy that actually sends notifications, because outbound HTTPS from that host to the vendor endpoint is a prerequisite that is easy to overlook in restricted networks. For a regulated environment, also confirm where the integration key is stored and who can read it in the Zabbix media type configuration.

Choosing how Zabbix hands problems to a paging tool

A single on-call service sends every Zabbix problem to one PagerDuty service or one Opsgenie team and lets the paging tool decide who gets woken up. It suits a small platform group, or an organization where one rota covers all monitored systems. The setup is one integration key, one media type and one set of severity rules, so there is little to drift. The cost is that the paging tool must do all the work of separating a database alert from a network alert, and any noisy host lands on everyone.

  • Fewer moving parts: one integration key and one media type to create, test and rotate.
  • Routing lives in the paging tool: service rules, priorities and schedules decide the responder, so Zabbix only needs to send a clean event.
  • Shared noise: a single flapping host can page the whole rota unless tags or severity filters are applied upstream.
  • Harder ownership reports: all incidents look alike in the paging tool, which makes per-team response metrics harder to produce.
  • Staffing changes stay simple: adding or removing an engineer only touches the paging tool schedule, not Zabbix.

Before you commit, confirm with the paging tool's documentation how service keys and routing rules are scoped and who can edit them.

Configuration options for PagerDuty and Opsgenie media types

This table compares the main settings, message fields and mapping choices in the bundled PagerDuty and Opsgenie webhook media types, and when each one fits. Confirm exact parameter names and defaults against the Zabbix media type documentation for your installed version before you build, because the names differ between releases and between the two tools. The main takeaway is that the event key and the recovery path matter more than the cosmetic message fields, because they decide whether an incident opens once and closes correctly.

Setting or fieldWhat it controlsWhen it fits
Service key or integration keyRoutes events to one PagerDuty service or Opsgenie integration, set per media type or per userUse one key per team or escalation target so each incident lands with the owner who should act
API endpoint and regionWhich regional host receives the events, for example the US or EU instance of a SaaS paging toolSet it to match where your account lives, and confirm the endpoint with your paging tool's admin
Event action mapping (trigger, resolve)Maps a Zabbix problem to a create or trigger event and a recovery to a resolve eventKeep it on for every route, because a missing resolve leaves incidents open after the outage ends
Deduplication key from event IDTies the problem and its recovery to the same incidentConfirm the key uses a value that stays stable across the problem and recovery messages
Severity mapping from Zabbix trigger severityConverts Not classified through Disaster into the paging tool's severity levelsMap only severities you want to wake someone, and send lower ones to a non-paging channel
Message subject and body macrosText shown on the incident, such as host, item and problem nameKeep the host and trigger name in the first line so responders can triage from a phone
Custom details or tagsExtra fields such as host group, tags and event URL attached to the incidentAdd them when routing or reporting depends on them, and avoid sending sensitive data in free text
Escalation handling on the paging sideEscalation policies and repeat intervals inside PagerDuty or OpsgenieUse when the paging tool owns escalation; disable overlapping Zabbix escalation steps to avoid double paging

How a Zabbix problem becomes a paging incident and resolves

The flow starts when a Zabbix trigger fires and creates a problem event. A Zabbix action matches that event and sends it through a webhook media type to the paging tool's event API, where a service key or integration key routes it to the right service. Acknowledgement and the recovery event travel the same path in reverse, so the incident can resolve. Check the point where Zabbix's own escalation steps and the paging tool's escalation policy both act on the same incident, because two escalation timers can page people twice or leave an incident open after recovery.

Trigger, webhook hand-offs, acknowledgement and recovery, with the two escalation paths that can overlap.

Setting up the PagerDuty or Opsgenie webhook in Zabbix

This sequence connects a paging tool to Zabbix so that a problem opens an incident and its recovery resolves it, with a controlled test confirming both directions before any real on-call rotation depends on it. Each step ends with a check so the team knows what to verify before moving on.

  1. Create the integration in the paging tool

    The paging team's administrator creates a service in PagerDuty or an integration in Opsgenie dedicated to Zabbix, and records the integration key or API key it generates. Use one service per monitored area or escalation owner rather than sharing a single catch-all service, so routing and reporting stay clear. Store the key in your secrets process, not in a shared document. The step is done when the team can see the new service or integration listed in the paging tool with its key available to the Zabbix administrator.

  2. Import and configure the webhook media type

    In Zabbix, the administrator imports or enables the bundled PagerDuty or Opsgenie webhook media type under Alerts, Media types, then fills in the parameters that the paging tool needs, such as the integration key and the API endpoint for your region or account. Check the media type's script and parameter names against the version of Zabbix you run, because the parameters differ between releases. Confirm the vendor's current endpoint and authentication method with the paging tool's documentation. The step is done when a test message can be sent from the media type's test function and the paging tool shows it as received.

  3. Assign the media type to a notification user

    Create or select a Zabbix user that represents the paging channel, add a media entry that uses the new media type, and limit that user's permissions to the host groups it needs to see. Some teams use a dedicated user per paging service so that the escalation can target it directly. Set the severities the media should receive so that low-priority noise does not create incidents. The step is done when the user's media entry is enabled and the user appears with that media in the action's recipient list.

  4. Build the action with problem operations

    Under Alerts, Actions, the administrator creates a trigger action with conditions that match the hosts and severities meant for the paging tool, then adds an operation that sends the problem message through the paging media user. The message body should carry the event ID and trigger severity so the paging tool can deduplicate and map severity. Keep the first step simple and leave any widening of the escalation for a sibling page on escalations. The step is done when the action saves without warnings and the operation preview lists the paging user as the recipient.

  5. Add recovery operations to resolve incidents

    On the same action, the administrator enables recovery operations and sends a recovery message through the same media user, using the event ID so the paging tool can match the recovery to the open incident. Confirm that the recovery message uses the resolve action or event type that the paging tool expects, since the webhook parameters control this mapping. Review the action's update operations if acknowledgement from the paging tool should be reflected back in Zabbix. The step is done when the action lists both a problem operation and a recovery operation for the paging user.

  6. Test with a controlled trigger

    The administrator triggers a known test condition on a non-production host, such as a test item or a manually set value that crosses a dedicated test trigger, and notes the time. Use a host and trigger that no one else's rotation depends on, and tell the on-call team beforehand so no one reacts to the test as a real outage. Maintenance windows should not cover the test host. The step is done when the test trigger fires in Zabbix and the paging tool shows the incident as triggered with the expected title, severity and event reference.

  7. Verify incident creation and auto-resolve

    After the test problem opens, the administrator checks that the incident appears once in the paging tool, then clears the test condition in Zabbix and confirms that the recovery operation resolves the same incident rather than opening a new one. Compare the event IDs in Zabbix with the incident references in the paging tool, and check the timeline in the paging tool for both messages. Repeat the cycle once to confirm the behavior is consistent. The step is done when a single incident opens and resolves cleanly for each test, with no duplicates or orphaned open incidents.

Keeping Zabbix escalations and paging-tool escalations from fighting

The core rule for this section is that each escalation path needs exactly one owner. When Zabbix actions escalate a problem to on-call engineers while PagerDuty or Opsgenie runs its own escalation policy for the same alert, the same outage can produce duplicate pages, two people acknowledging the same incident in different tools, and a recovery message that closes one incident while the other keeps paging. The conflict comes from two independent timers. Zabbix sends each action step on its own schedule, and the paging tool escalates on its own clock. Decide which system pages people and which one only records the problem. Most teams keep the escalation policy in the paging tool and let Zabbix send a single trigger to it, but either choice works if it is written down and enforced.

Acknowledgement is where the two systems most often drift apart. Zabbix acknowledges a problem through its event or update screen, while the paging tool tracks acknowledgement on the incident. Confirm in your environment whether an acknowledgement in one tool is reflected in the other at all. Usually it is not, unless you build a return path. Check how the Zabbix webhook media type you use sends the event identifier, how the paging tool stores it, and whether a status update can be posted back to Zabbix. If that return path does not exist, define a rule such as "the incident is acknowledged in the paging tool and the Zabbix problem is acknowledged by the same person within a set window", and test it with a deliberately triggered alert before go-live.

Recovery needs the same scrutiny. Confirm that the recovery operation in the Zabbix action actually fires for the media type and that the paging tool resolves the incident using the same key that created it. Test three cases: a normal recovery, a problem closed manually in Zabbix while the incident is open, and an incident resolved in the paging tool while the Zabbix problem is still active. Each case should leave both systems in the same state. Record the expected behaviour for each case in the runbook so the on-call team does not have to reason about it during an incident, and review the configuration whenever either tool or the media type version changes.

Securing service keys, tokens and alert content

A PagerDuty or Opsgenie integration key is a credential that can create incidents on your paging account, so it needs the same care as any other secret. The cards below cover where the key lives in Zabbix, which account sends the alerts, which network paths must be open, and what the alert text reveals to anyone who can read a page.

Store integration keys as secret macros

The service key or integration key should live in a secret user macro or a media type parameter, not typed into a message template or an exported configuration. Check who can read global and host-level macros, because a host-level macro can be visible to users with access to that host. Confirm whether your Zabbix version masks secret macro values in the interface and in the API, and test that a read-only user cannot see the value. Plan a rotation step for the key, since rotating it means updating every media type or action that uses it.

Give the notification user a narrow role

Zabbix sends notifications as a user, so the account that owns the media type and receives the alerts should carry only the permissions it needs to read problems and hosts. Avoid giving it Super admin rights or write access to templates, actions and macros, because a compromised notification account would then be able to change routing. Keep the paging user separate from any human operator account. Review the role after each upgrade, since permission sets change between releases.

Map outbound paths from server and proxies

The webhook media type makes HTTPS requests to the paging vendor's API, so the Zabbix server, or the proxy that runs the alert, needs outbound access to that endpoint and nothing else. Many regulated networks block general internet egress, so confirm the destination hostnames, the proxy path and any outbound inspection or certificate trust chain before you test. Check which component performs the request, because an alert sent from a proxy in a separate network zone follows that zone's egress rules. Document the allowed destinations for your change board.

Control what alert text exposes

Problem names, host names, item values and tags are copied into the payload that leaves your network and lands in the paging tool's incident history. Review which macros your message template includes, especially item values, log excerpts and tags that may contain customer identifiers or internal addresses. Keep the summary short and link back to Zabbix for detail, so responders log in to see sensitive context. Ask the paging vendor where incident payloads are stored, how long they are kept and who in your organization can read them.

Audit changes to routing and keys

Changes to a media type, an action or a macro change where pages go and who receives them, so they deserve an audit trail. Use Zabbix audit logging and your change process to record who edited the key, the routing action or the message template. Test alert routing after each change with a non-production host to confirm the key still works and the right service receives the event. Ask whether your paging tool keeps its own audit log of integration changes and whether you can export it.

Questions teams ask before routing Zabbix to a paging tool

What drives the cost of routing Zabbix alerts to PagerDuty or Opsgenie?

The cost depends on how many alert paths you need, how much of the Zabbix action and escalation design already exists, and how many services and teams the paging tool must map. Costs fall into two groups: one-time work (designing severity mapping, building media types, service keys and recovery logic, and testing) and recurring work (keeping mappings current as teams and services change). Your paging tool subscription is a separate line item paid to the vendor. Ask any partner for a quote built from a written scope that lists the number of Zabbix instances, notification paths, services and escalation policies in the paging tool.

How long does it take to build this integration?

Duration depends mostly on how many services, teams and severity levels the routing must cover, and on whether the paging tool account and Zabbix escalations are already configured. A small, single-team setup moves faster than one that splits problems across several services with different on-call rotations. The work usually runs in stages: design the mapping, build and test on a non-production Zabbix, then enable live routing. Ask for a timeline in the written scope, with each stage and the approvals needed before live alerts start.

What does the client team need to provide for this work?

You need to supply the people and access that decide how alerts should behave, and the accounts that the integration will use. Typically this includes the owners of each service and their escalation rules, a named approver for severity mapping, administrator access to your Zabbix frontend and the paging tool, and a test environment or a safe window to test. You also need to confirm which Zabbix version runs in production, because media type and action behavior can differ between releases. Your security team should review how service keys and API tokens are stored and rotated.

Can our internal team build this without outside help?

Yes, if your team already runs Zabbix actions and has someone who can administer the paging tool. The work is mostly configuration and testing rather than custom code, but it still requires careful decisions on severity mapping, recovery handling and escalation ownership. Teams without recent Zabbix action experience, or without a clear owner for each paging service, often take longer and make more avoidable mistakes. A partner can run the design and testing with your team, or hand over documentation so your staff can operate the setup afterward.

How do we test routing without paging the on-call engineer?

Test against a non-production Zabbix server and a paging tool service that is not attached to live on-call schedules. Create test hosts and triggers, fire problems at each severity, confirm that recovery closes the matching incident, and check that duplicate or stuck incidents do not appear. Use a separate test service key or integration, and confirm that test events never reach production rotations. Before going live, run a limited pilot on one low-impact host group, and keep a rollback step ready. Record each test result so reviewers can see what was checked.

What changes after a Zabbix upgrade?

Upgrades can change the bundled webhook media types, action parameters and the way problem and recovery events are sent, so routing that worked on one version can break on another. Before upgrading, compare the media type definitions in the current and target versions, reapply any local changes, and rerun your test set against a staging server. Check the Zabbix release notes and life cycle page for your version's support dates so upgrades are planned in advance. Ask any partner to include upgrade testing in the scope and to document which steps need repeating.

How do we stop Zabbix escalations and paging tool escalations from both notifying people?

Pick one place to own the escalation sequence for each alert, and turn off the other for that alert class. If Zabbix escalates to managers while the paging tool also pages them, people receive duplicate pages and may acknowledge in one tool but not the other. A common design sends the first page through the paging tool, which owns retries and widening, and uses Zabbix actions for ticketing or internal records. Document the chosen split, and test acknowledgement and recovery in both directions before go live.

Which Zabbix license or support terms affect this work?

Zabbix open source software has no license fee, no device limits and no feature gates, so the integration itself does not require a Zabbix subscription. Paid Zabbix technical support is optional and comes in several tiers with different hours and response times, which you should compare against your own on-call needs if you rely on vendor help for escalation issues. The license changed from GPL version 2 to AGPL version 3 starting with Zabbix 7.0, so have your legal team confirm that the license terms suit how you modify or distribute any custom media types or scripts.

How DeployOpen scopes and delivers Zabbix paging integrations

DeployOpen plans, builds and hands over Zabbix alert routing to PagerDuty or Opsgenie inside your own infrastructure, starting from a written scope. We test each problem and recovery path against your Zabbix version and paging tool before the routing goes live, and we document what your team needs to operate it.

How we scope

  • Inventory which Zabbix version, deployment and paging tool accounts are in use before fixing the scope
  • Agree in writing which problem severities, host groups and teams will route to which PagerDuty services or Opsgenie teams
  • Confirm who owns the escalation policy, so Zabbix steps and paging-tool escalation rules are defined in one place

How we build

  • Configure the bundled webhook media types with service keys or integration keys held in your secret store, not in action text
  • Map Zabbix trigger severities to paging-tool urgency and priority values, and test each mapping with sample problems
  • Set recovery actions so incidents resolve when the matching Zabbix recovery event arrives, and test that path end to end

How we hand over

  • Document the routing table, media type settings, action conditions and the rule that stops duplicate escalations across both tools
  • Run a joint test session with your on-call and monitoring owners, covering acknowledgement, escalation and recovery
  • Deliver a runbook for rotating service keys, changing routing and checking delivery failures

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover
  • Ask for a quote based on the written scope, covering the Zabbix version, number of routes and paging tool accounts involved

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.