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.View dedicated integration setup steps
View dedicated integration setup steps
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add an integration
- Choose Zabbix integration, click Save to generate a card
- 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.In Zabbix
Version 7.x
Step 1: Define Flashduty Media type
-
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:
-
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 -
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.
- 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:-
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
- Click Add button to exit the add media window
- 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, selectAlerts > Actions > Trigger actions, then:-
Click
Create actionto enter the action editing page- Name: Fill in “Send To Flashduty”
-
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 operationsandUpdate operations
Step 4: Send events to Flashduty
Log in to the Zabbix console, selectMonitoring > Problems to view the latest alert list.- Click Actions, you can see the message notification results in the popup
-
Find the Flashduty corresponding log, if the Status is
Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts
- 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
-
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:
-
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 -
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.
- 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:-
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
- Click Add button to exit the add media window
- 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, selectConfiguration > Actions, then:-
Click
Create actionto enter the action editing page- Name: Fill in “Send To Flashduty”
-
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 operationsandUpdate operations
Step 4: Send events to Flashduty
Log in to the Zabbix console, selectMonitoring > Problems to view the latest alert list.- Click Actions, you can see the message notification results in the popup
-
Find the Flashduty corresponding log, if the Status is
Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts
- 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
-
Log in to the Zabbix console, select
Administration > Media Types, clickCreate media typebutton in the top right corner to enter the editing page -
On the editing page, select
Scriptfor 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 parameterFlashduty 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
-
Fill in
send-to-flashduty.shforScript name - Click Update to save the configuration
-
Log in to the Zabbix server host, execute the following commands:
-
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:-
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
- Click Add button to exit the add media window
- 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, selectConfiguration > Actions, then:-
Click
Create actionto enter the action editing page- Name: Fill in “Send To Flashduty”
-
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 operationsandUpdate operations
-
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 operationsandUpdate operations
Step 4: Send events to Flashduty
Log in to the Zabbix console, select Monitoring → Problems to view the latest alert list.- Click Actions, you can see the message notification results in the popup
-
Find the Flashduty corresponding log, if the Status is Sent, it means the notification was successful. Otherwise, troubleshoot according to the prompts
- Return to the integration list. If the integration shows a latest event time, the setup works