[ZBX-19642] Sending failed: Invalid MS Teams webhook URL: Created: 2021 Jul 06  Updated: 2021 Aug 11  Resolved: 2021 Jul 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.0.12
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Navid Assignee: Aleksey Volodin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Incoming Webhook.png     PNG File Zabbix.PNG     PNG File image-2021-07-15-17-11-17-834.png     PNG File image-2021-08-11-12-12-25-284.png     PNG File image-2021-08-11-12-16-25-248.png     XML File media_msteams.xml     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     XML File zbx_export_mediatypes.xml    

 Description   

Hello guys,
I have set up the Zabbix Webhook in the MS team channel and did the Zabbix server setting based on this article : Microsoft Teams webhook.

by using the CURL/Powershell the message get successfully in my team channel but when I test it on the Zabbix panel, I face the error message of " : Sending failed: Invalid MS Teams webhook URL: "

I appreciate it if you guys help me to solve this problem.

Best,
Hamid



 Comments   
Comment by Dmitry Krupornitsky [ 2021 Jul 07 ]

Hello, 

Please supply a screenshot with webhook settings together with full error screenshot. The most important part of one you've here is missing.

Comment by Aleksey Volodin [ 2021 Jul 09 ]

Hello FiM,

Thank you for reporting this issue.

 

Can you please use this manual, according to your Zabbix server version:

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/msteams?at=refs%2Fheads%2Frelease%2F5.0

Also, could you please import new template version media_msteams.xml (in attachment).

 

Best regards,

Aleksey.

Comment by Navid [ 2021 Jul 14 ]

this is the screenshot of the error "

Comment by Navid [ 2021 Jul 14 ]

Hello Aleksey,

I read this article before and set up my MS Teams webhook based on this article but it still does not work .

Also, I imported the new template.

Best,
Hamid

Comment by Navid [ 2021 Jul 14 ]

to set up my webhook, I used this :

Comment by Aleksey Volodin [ 2021 Jul 14 ]

Thank you for provide additional information.
Can you, just to double-check, change the Webhook for "Incoming Webhook", as mentioned in official documentation

 (https://docs.microsoft.com/en-us/microsoftteams/office-365-custom-connectors#add-a-connector-to-a-channel).

Comment by Navid [ 2021 Jul 14 ]

I also used the incoming Webhook, but sadly the same result.

Comment by Aleksey Volodin [ 2021 Jul 14 ]

Can you please check webhook using curl as shown below:

curl -H 'Content-Type: application/json' -d '{"text": "Hello World"}' <YOUR WEBHOOK URL>

This command must be executing from your Zabbix server.

Comment by Navid [ 2021 Jul 15 ]

Thanks, Aleksey . As you can see in my first explanation of my ticket, by using the CURL/Powershell the message got successfully.

Comment by Aleksey Volodin [ 2021 Jul 15 ]

Sorry, I missed this information in the first message.

Can you please export you current "MS Teams" Media type and attach it here?

Comment by Navid [ 2021 Jul 15 ]

please find attachment

Comment by Navid [ 2021 Jul 15 ]

Thanks, Aleksey. I've just used the new template but got a new error :

Comment by Aleksey Volodin [ 2021 Jul 15 ]

For testing you need to fill sensitive parameters by yourself. Like "event_source" here substitute with 1 (its can be from 0 to 3 there is hint below error message). Same will go for some additional fields. Just fill them in.

Comment by Navid [ 2021 Jul 15 ]

Yesssssss. DONE .

Thank you Aleksey for your prompt support.
is there anything else that I need to know?

Thank you again.

Comment by Navid [ 2021 Jul 15 ]

how can I be sure that MS Teams webhook will send Zabbix alarm to MS Team channel?
is this test enough?

Comment by Navid [ 2021 Jul 15 ]

Thanks a lot

Generated at Sun May 11 08:23:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.