XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 4.4.8
    • Fix Version/s: None
    • Component/s: Templates (T)
    • Environment:
      Debian 10

      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:
            Unassigned Unassigned
            Reporter:
            pierrebaz Pierre Bazoge
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: