-
Problem report
-
Resolution: Duplicate
-
Blocker
-
None
-
None
-
Debian 10
-
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), Sprint 75 (Apr 2021)
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
- duplicates
-
ZBX-18673 Slack Webhook from Templates - Throws Errors
- Closed