Ad Widget

Collapse

Zabbix Slack Intergration Working for Some Channels but not for others.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thijs
    Junior Member
    • Mar 2020
    • 9

    #1

    Zabbix Slack Intergration Working for Some Channels but not for others.

    Hi! I've been working on getting Zabbix alerts in Slack.
    Now i have 2 channels that I want to receive messages in. Im using the slack intergration offered by Zabbix itself.
    The 2 slack channels are a public channel called #zabbix-alerts and a private channel called monitoring. Now the issue im facing is that i want to use the "alarm" function of the Slack message meaning that the original "PROBLEM" message will be updated to an "OK" message once the problem has been resolved. This happens for the public channel (See image below):

    Click image for larger version

Name:	Screenshot 2020-08-14 at 11.58.31.png
Views:	1175
Size:	55.0 KB
ID:	407048

    But it does not work for the private channel. (it only shows that the problem still exists)

    Click image for larger version

Name:	Screenshot 2020-08-14 at 12.00.23.png
Views:	1089
Size:	57.5 KB
ID:	407049
    Using the Slack API i gave the bot all of the "Bot Token Scopes" to give it permission to everything in the channel.
    For both channels i use the same "alert" user with the following configuration for the media:

    Click image for larger version

Name:	Screenshot 2020-08-14 at 12.04.11.png
Views:	1062
Size:	24.8 KB
ID:	407050

    The Zabbix problem view shows that all of the messages have been sent:
    Click image for larger version

Name:	Screenshot 2020-08-14 at 12.14.29.png
Views:	1071
Size:	24.3 KB
ID:	407051

    The logs show no sign of messages not being send, or errors occurring when sending messages.

    Basic Information
    Zabbix Version: 5.0.2 Running in Docker
    OS: Ubuntu 18.04.1

    If you need more information just let me know.


    Thanks in advance,

    Thijs
  • stvolinko
    Junior Member
    • Feb 2021
    • 1

    #2
    Hello! If i understand you correctly you use this solution: https://www.zabbix.com/ru/integratio...#tab:official1
    The thing is :
    Code:
    [B]Note:[/B] alarm mode works correctly only if you send messages to only one channel because the webhook uses non-unique event tags for storing data about created threads, and we cannot perform multiple threads updating.
    You can freely use event type messaging and this ll work as expected.

    Im trying to find the way to make work alarm mode, but today wasn't able too.
    If you l find any info or solution share it here please.

    Comment

    Working...