[ZBX-20662] Slack integration not working on zabbix 6.0 Created: 2022 Feb 23  Updated: 2022 Mar 04  Resolved: 2022 Mar 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 6.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Fabrizio Regalli Assignee: Antons Sincovs
Resolution: Done Votes: 0
Labels: actions, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot from 2022-02-23 16-42-20.png    

 Description   

Hello,

I'm using zabbix 6.0 and I'm trying to integrate the notification on slack.

I'm using the latest version of the media template available here https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/slack but during the test of media type I get the following error:

 

Details Media type test failed.

  • Slack notification failed : Field "event_id" is not a number

 

And the log says: 

 
00:00:00.000 [Debug] [ Slack Webhook ] Slack notification failed : Field "event_id" is not a number
 
Thank you!



 Comments   
Comment by Antons Sincovs [ 2022 Mar 03 ]

Hello, Fabrizio!

Are you trying to check the operability just by pressing "Test" button for the "Slack" media type? If so - then it will not work like that, as in order to send a notification to slack multiple fields have to be filled in with actual values. By default, there are macros that expand to the actual values only when used with some context (for example). So you need to generate a problem event and configure a corresponding "Trigger action" which as a reaction to a problem event would send a notification to Slack.

Regards,

Antons

Comment by Fabrizio Regalli [ 2022 Mar 04 ]

Ciao Antons,

thank you very much for pointing me to this.

Yes, I had to "expand" the variables and test it, that way works fine.

Another issue, was a typo on zabbix.url variable I wrote {$ZABBIX_URL} instead of {$ZABBIX.URL}

I'm closing the ticket right now.

Thanks again.

Best Regards,

Comment by Fabrizio Regalli [ 2022 Mar 04 ]

Not an issue.

Comment by Antons Sincovs [ 2022 Mar 04 ]

Glad to help! Thank you for the prompt response!

Generated at Fri May 02 07:25:50 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.