Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18355

Slack integration fix

    XMLWordPrintable

    Details

    • Team:
      Team INT
    • Sprint:
      Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021)
    • Story Points:
      1

      Description

      The Slack integration throws a "channel_not_found" error, because the token is missing from the JSON parameters.

       

      The "bot_token" variable should be sent in Headers AND in the payload (which is actually not the case).

       

      Source is: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/slack/media_slack.xml

       

      handlerAlarm() and handlerEvent() functions should provide the token in the payload like this:

      var fields =

      {    channel: params.channel,    *token: params.bot_token,*    as_user: params.slack_as_user, }

      ;

       

      Slack docs: https://api.slack.com/methods/chat.postMessage

        Attachments

          Activity

            People

            Assignee:
            tuskov Tikhon Uskov
            Reporter:
            pierrebaz Pierre Bazoge
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: