[ZBX-20080] Slack integration script Created: 2021 Oct 12 Updated: 2024 Apr 10 Resolved: 2021 Nov 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Templates (T) |
Affects Version/s: | 5.0.16, 5.4.7 |
Fix Version/s: | 5.0.18rc1, 5.4.8rc1, 6.0.0alpha6, 6.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | logabot | Assignee: | Andrew Biba |
Resolution: | Fixed | Votes: | 1 |
Labels: | Slack, documentation, templates | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() |
||||||||
Issue Links: |
|
||||||||
Team: | |||||||||
Story Points: | 0.25 |
Description |
Steps to reproduce:
Result: It happened because single quote not escaped. throw 'Can't process event tags: ' + error; to throw 'Can\'t process event tags: ' + error; https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/slack/media_slack.xml?at=refs%2Ftags%2F5.0.16#268 |
Comments |
Comment by Edgar Akhmetshin [ 2021 Oct 12 ] |
Hello, Git repository provides both xml/yaml according to the version used: But agree with quoting issue and also version selector here https://www.zabbix.com/integrations/slack does nothing: It should switch link provided for XML or YAML version. Confirmed. Regards, |
Comment by Max B [ 2021 Oct 15 ] |
Confirming this is occurring on Zabbix 5.4 running on Ubuntu 20.04.3 LTS Getting same error: Details Media type test failed. SyntaxError: unterminated statement (line 116) Fixed by escaping the two "can't" statements. |
Comment by Andrew Biba [ 2021 Nov 01 ] |
Available in:
|