[ZBX-18234] [zabbix 5.0] Slack Integration - api url is wrong Created: 2020 Aug 11  Updated: 2025 May 12

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Patch request Priority: Trivial
Reporter: Ross Crawford-d'Heureuse Assignee: Zabbix Support Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen_Shot_2020-08-11_at_16_48_05.png    

 Description   

Currently slack integration with zabbix 5.0 does not work.

This is due to a misconfigured api endpoint

Steps to reproduce:

  1. https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/slack/media_slack.xml#475
  2. var slack_endpoint = 'https://slack.com/api/'
  3. http post https://slack.com/api Content-Type:'application/json; charset=utf-8' Authorization:'Bearer xoxb-.....'
    HTTP/1.1 301 Moved Permanently
    content-length: 229
  1. url needs to be https://api.slack.com/
  2. and or overridable with a macro please

 

Also please notehttps://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/slack/media_slack.xml#494

Mattermost when calling slack

 

Result:
See screenshot...

Expected:
Working slack integration

Also nothing shows in the logs about this error

 



 Comments   
Comment by Ross Crawford-d'Heureuse [ 2020 Aug 11 ]

it seems that there is a handler for it tho https://api.slack.com/web

 

Comment by Ross Crawford-d'Heureuse [ 2020 Aug 12 ]

Apologues, it appears the url is actually correct; however the log message is wrong and also

 

Ive implemented it in z5 according to https://www.zabbix.com/integrations/slack

However no actions take place.

The document above places the token directly in the media_type definition; however from a security pov the token and zabbix_url could/should come from the macros section?

 

Using macros with the required values does not work.

 

 

Comment by Ross Crawford-d'Heureuse [ 2020 Aug 13 ]

 most frustrating thing.. have created a test file and a trigger to alert against it.. on the zabbix server.. disaster level..

 

dashboard alerts..

but no slack notifications are sent.. and no logs...

Comment by Bartosz Nems [ 2025 May 12 ]

Hi,

I see that Your ticket was created in 2020, please let Us know if You still require our help. 
If You don't respond in this ticket in the next two weeks we will close it.
Kind regards, 
Bartosz

Generated at Wed May 21 06:33:49 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.