Opsgenie is a modern incident management platform that ensures critical incidents are never missed, and actions are taken by the right people in the shortest possible time. Opsgenie receives alerts from your monitoring systems and custom applications and categorizes each alert based on importance and timing.

Available solutions

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/opsgenie

Opsgenie webhook

This guide describes how to integrate your Zabbix installation with Opsgenie using the Zabbix webhook feature. This guide will provide instructions on setting up a media type, a user and an action in Zabbix.

In Opsgenie

1. Create an API Key according by original instruction https://docs.opsgenie.com/docs/api-integration, please.

2. Copy the API Key of your new integration to use it in Zabbix.

In Zabbix

The configuration consists of a media type in Zabbix, which will invoke the webhook to send alerts to Opsgenie through the Opsgenie Rest API.

1. Create a global macro {$ZABBIX.URL} with Zabbix frontend URL (for example

2. Import the Opsgenie media type from file media_opsgenie.xml.

3. Change the values of the variables opsgenie_api (https://api.opsgenie.com/v2/alerts or https://api.eu.opsgenie.com/v2/alerts) , opsgenie_web (for example, https://myzabbix.app.opsgenie.com), opsgenie_token. Also you could set own tags into opsgenie_tags as and team names into opsgenie_teams as .
The priority level in severity_default will be used for non-triggered actions.

For more information about the Zabbix Webhook configuration, please see the documentation.

To utilize the media type, we recommend creating a dedicated Zabbix user to represent Opsgenie. The default settings for Opsgenie User should suffice as this user will not be logging into Zabbix. Please note, that in order to be notified about problems on a host, this user must have at least read permissions for the host.
When configuring alert action, add this user in the Send to users field (in Operation details) - this will tell Zabbix to use Opsgenie webhook when sending notifications from this action. Use the Opsgenie User in any actions of your choice. Text from "Action Operations" will be sent to "Opsgenie Alert" when the problem happens. Text from "Action Recovery Operations" and "Action Update Operations" will be sent to "Opsgenie Alert Notes" when the problem is resolved or updated.

Internal alerts

To receive notifications about internal problem and recovery events in Opsgenie: in the internal action configuration mark the Custom message checkbox and specify custom message templates for problem and recovery operations. If an internal action operation is configured without a custom message, the notification will not be sent. Note, that this step is required only for notifications about internal events; for other event types specifying a custom message is optional.

For more information, please see Zabbix and Opsgenie documentation.

Supported Versions

Zabbix 5.0, Opsgenie Alert API.

Articles and documentation

+ Propose new article
Add your solution