Zabbix : Slack Media Type

Published: 07 June 2020
on channel: SBCODE
13,424
214

Documentation : https://sbcode.net/zabbix/media-types...
Course Coupon Codes : https://sbcode.net/coupons

In this lesson, we set up a Slack Media Type in Zabbix 5.

1. Create or join a Workspace

2. Create a Channel

3. Create an App.

4. Add the OAuth Scope chat:write

5. Press the button Install App to Workspace

6. Allow your APP to access your workspace so that it can send messages to your new Channel.

7. Copy the Bot User OAuth Access Token and place it in the Zabbix Slack Media Type Bot Token field.

8. Enable the Slack Media Type

9. Add the Problem and Problem Recovery templates to the Slack Media Type

10. In Slack, go to your Channel, and press the Add an app option, and Add your APP.

11. Add a global Macro for {$ZABBIX_URL} and set its value to the full URL of your Zabbix system. This will be used in the Slack messages to create a link to the problem information contained in the Zabbix UI.

12. Add the Slack Media Type to your user, and select which severity to receive alerts for.

13. Ensure the Trigger Action for Report problems to Zabbix administrators is enabled.

0:00 Introduction to Slack Media Type in Zabbix
0:20 Discuss getting a Bot token and Slack workspace
1:00 Create Slack Channel
1:30 Create a Slack APP
2:05 Create a Slack Bot
2:15 Assign Scope to Bot token
2:25 Add OAuth Scope
2:35 Install APP to Workspace
2:50 Copy your Bot Token and add to Zabbix Slack Media Type
3:15 Add message templates in Zabbix
4:05 Test Slack Alert
5:08 Add Alerts User to Slack Channel
5:22 Retest Slack Alert and View in Slack
5:44 Create global macro for Zabbix URL
6:10 Add Slack message type to User Media types
6:45 Enable Trigger Alert Action
6:55 Create problem to test Slack alert
7:45 Examine alert properties in Zabbix and Slack
8:26 Fix problem and get resolved alert
8:50 Discuss slack_mode
9:35 Demonstrate alert on mobile phone

#zabbix
#zabbixSlack
#zabbixCourse
#zabbixTutorials
#slackMediaType