Skip to main content
Synchronize Zabbix alert events to Flashduty through webhook (supports Zabbix 3.x ~ 7.x versions, with different configuration requirements) to achieve automated alert noise reduction.

In Flashduty

You can get the integration push URL in either of the following ways.

Use a dedicated integration

Choose this option if all alerts go to one channel. It’s the simpler setup.
  1. In the Flashduty console, select Channel and open a channel
  2. Select Configuration → Integrations → Private integration, then click Add an integration
  3. Choose Zabbix integration, click Save to generate a card
  4. Open the generated integration card and copy the Push URL

Use a shared integration

Choose this method when you need to route alerts to different channels based on alert event payload information.
  1. In the Flashduty console, go to Integration Center → Alert Events
  2. Select Zabbix integration:
    • Integration Name: Define a name for this integration
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL

In Zabbix

Version 7.x

Step 1: Define Flashduty Media type

  1. Media type is a transport channel used for sending notifications and alerts in Zabbix. Enter the terminal and download the complete configuration using the following command:
  2. Log in to the Zabbix console, select Alert > Media Types, click the Import button in the top right corner, enter the editing page, select the configuration file downloaded above, and click Import to complete the import
  3. Return to the Media Types page to see the imported media type. Click the name to enter the editing page, complete the URL, zabbix_url, and HTTPProxy content:
    • URL: the webhook push URL. Paste the integration push URL.
    • zabbix_url: the Zabbix console address. If your console sits behind a Tomcat or NGINX forwarding path, include the path. Flashduty appends parameters such as trigger_id to build alert detail links.
    • HTTPProxy: if your Zabbix server can’t reach Flashduty directly, set this parameter to a proxy address.
    drawing
  4. Click Update to save the configuration

Step 2: Associate media type with user

The media type must be associated with a user to send events. The user must have at least read permission for hosts. It is recommended to associate directly with the Admin user. Taking the Admin user as an example:
  1. Log in to the Zabbix console, select Users > Users, select Admin user, select media, select Add to enter the editing window:
    • Type: Select the Flashduty media type created above
    • Send To: Fill in Flashduty
    • Keep other configurations unchanged using default settings
    drawing
  2. Click Add button to exit the add media window
  3. Click Update button to exit the edit user page

Step 3: Create action

Sending notifications is one of the operations executed by actions in Zabbix. Therefore, to establish a notification, log in to the Zabbix console, select Alerts > Actions > Trigger actions, then:
  1. Click Create action to enter the action editing page
    • Name: Fill in “Send To Flashduty”
  2. Select Operations, add notification sending configurations for three scenarios respectively:
  • In the Operations configuration item, click Add button to enter the configuration window
  • Send to users: Select the user newly created or configured above
  • Send only to: Select Flashduty media type
  • Keep other configurations as default
  • Click Add button to complete this configuration item
  • Repeat the above steps to complete the configuration of Recovery operations and Update operations drawing drawing

Step 4: Send events to Flashduty

Log in to the Zabbix console, select Monitoring > Problems to view the latest alert list.
  1. Click Actions, you can see the message notification results in the popup
  2. Find the Flashduty corresponding log, if the Status is Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts drawing
  3. Return to the integration list. If the integration shows a latest event time, the setup works

Version 5.x~6.x

Step 1: Define Flashduty Media type

  1. Media type is a transport channel used for sending notifications and alerts in Zabbix. Enter the terminal and download the complete configuration using the following command:
  2. Log in to the Zabbix console, select Administration > Media Types, click the Import button in the top right corner, enter the editing page, select the configuration file downloaded above, and click Import to complete the import
  3. Return to the Media Types page to see the imported media type. Click the name to enter the editing page, complete the URL, zabbix_url, and HTTPProxy content:
    • URL: the webhook push URL. Paste the integration push URL.
    • zabbix_url: the Zabbix console address. If your console sits behind a Tomcat or NGINX forwarding path, include the path. Flashduty appends parameters such as trigger_id to build alert detail links.
    • HTTPProxy: if your Zabbix server can’t reach Flashduty directly, set this parameter to a proxy address.
    drawing
  4. Click Update to save the configuration

Step 2: Associate media type with user

The media type must be associated with a user to send events. The user must have at least read permission for hosts. It is recommended to associate directly with the Admin user. Taking the Admin user as an example:
  1. Log in to the Zabbix console, select Administration > Users, select Admin user, select media, select Add to enter the editing window:
    • Type: Select the Flashduty media type created above
    • Send To: Fill in N/A
    • Keep other configurations unchanged using default settings
    drawing
  2. Click Add button to exit the add media window
  3. Click Update button to exit the edit user page

Step 3: Create action

Sending notifications is one of the operations executed by actions in Zabbix. Therefore, to establish a notification, log in to the Zabbix console, select Configuration > Actions, then:
  1. Click Create action to enter the action editing page
    • Name: Fill in “Send To Flashduty”
  2. Select Operations, add notification sending configurations for three scenarios respectively:
  • In the Operations configuration item, click Add button to enter the configuration window
  • Send to users: Select the user newly created or configured above
  • Send only to: Select Flashduty media type
  • Keep other configurations as default
  • Click Add button to complete this configuration item
  • Repeat the above steps to complete the configuration of Recovery operations and Update operations drawing drawing

Step 4: Send events to Flashduty

Log in to the Zabbix console, select Monitoring > Problems to view the latest alert list.
  1. Click Actions, you can see the message notification results in the popup
  2. Find the Flashduty corresponding log, if the Status is Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts drawing
  3. Return to the integration list. If the integration shows a latest event time, the setup works

Version 3.x~4.x

Step 1: Define Flashduty Media type

  1. Log in to the Zabbix console, select Administration > Media Types, click Create media type button in the top right corner to enter the editing page
  2. On the editing page, select Script for Type, then add the following parameters in this order. The script reads parameters by position, so don’t change the order, and leave a parameter empty if it has no value:
    • {ALERT.SUBJECT}: Alert title, keep as first parameter
    • {ALERT.MESSAGE}: Alert message, keep as second parameter
    • Flashduty webhook push URL: the integration push URL. Keep it as the third parameter.
    • Zabbix console address: used to build alert detail links. Include the Tomcat or NGINX forwarding path if you use one. Leave it empty if you don’t need links, and keep it as the fourth parameter.
    • HTTPProxy: if your Zabbix server can’t reach Flashduty directly, set this parameter to a proxy address.. Leave empty if none, keep as fifth parameter
    drawing
  3. Fill in send-to-flashduty.sh for Script name
  4. Click Update to save the configuration
  5. Log in to the Zabbix server host, execute the following commands:
  6. Note that the script uses curl and jq commands, ensure that the Zabbix server process can find and execute these two commands, if not you need to install them as needed

Step 2: Associate media type with user

The media type must be associated with a user to send events. The user must have at least read permission for hosts. It is recommended to associate directly with the Admin user. Taking the Admin user as an example:
  1. Log in to the Zabbix console, select Administration > Users, select Admin user, select media, select Add to enter the editing window:
    • Type: Select the Flashduty media type created above
    • Send To: Fill in N/A
    • Keep other configurations unchanged using default settings drawing
  2. Click Add button to exit the add media window
  3. Click Update button to exit the edit user page

Step 3: Create action

Sending notifications is one of the operations executed by actions in Zabbix. Therefore, to establish a notification, log in to the Zabbix console, select Configuration > Actions, then:
  1. Click Create action to enter the action editing page
    • Name: Fill in “Send To Flashduty”
  2. Select Operations, update notification user configurations for three scenarios respectively:
    • In the Operations configuration item, click Add button to enter the configuration window
    • Send to users: Select the user newly created or configured above
    • Send only to: Select Flashduty media type
    • Keep other configurations as default
    • Click Add button to complete this configuration item
    • Repeat the above steps to complete the configuration of Recovery operations and Update operations drawing
  3. Select Operations, update notification content configurations for three scenarios respectively:
    • In the Default Message configuration item, completely copy the following content and paste it after the default content. Flashduty will parse corresponding text after receiving events to find alert attribute information:
  • Repeat the above steps to complete the configuration of Recovery operations and Update operations drawing

Step 4: Send events to Flashduty

Log in to the Zabbix console, select Monitoring → Problems to view the latest alert list.
  1. Click Actions, you can see the message notification results in the popup
  2. Find the Flashduty corresponding log, if the Status is Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts drawing
  3. Return to the integration list. If the integration shows a latest event time, the setup works

Status mapping

Zabbix to Flashduty alert severity mapping: