Ad Widget

Collapse

MS Teams Weebhook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SALA82
    Junior Member
    • May 2025
    • 3

    #1

    MS Teams Weebhook

    I want to setup an Teams Webhook for Alerts.

    But when i test the webhook i get following error.

    "Sending failed: Invalid MS Teams webhook URL:"

    What i am doing wrong?
  • SALA82
    Junior Member
    • May 2025
    • 3

    #2
    No one has a resolution for this?

    Comment

    • AndyLee_551
      Junior Member
      • May 2025
      • 10

      #3
      Which webhook are you using? Is it the MSteams connector webhook or the new MSTeams workflows webhook?
      There is documentation on both here, if you follow them step by step you should at least be able to send a test.

      Workflow Webhook
      Browse Zabbix / Zabbix - ZABBIX GIT

      Teams Connector Webhook - To be deprecated at the end of the year 2025 I think.
      Browse Zabbix / Zabbix - ZABBIX GIT


      Comment

      • SALA82
        Junior Member
        • May 2025
        • 3

        #4
        I used the Zabbix Teams Webhook
        Browse Zabbix / Zabbix - ZABBIX GIT

        Comment

        • AndyLee_551
          Junior Member
          • May 2025
          • 10

          #5
          SALA82 if you are using the teams connector webhook, you need to enter the teams connector webhook URL when you create the teams connector in teams into the teams_endpoint field when you test the template in the mediatype section of your zabbix.
          From there you just need to keep clicking test and edit the values based on the error you receive. If you still need help, share a screenshot.

          Donkey It looks like they changed the name of the template but the one you shared is the correct one. When you use that template, it will create a flow for you and if you click on the first action of the flow it will show the HTTP POST URL
          You copy and paste that into the teams_endpoint field when you try to test the MS TEAMS WORKFLOW template in the media type section and as above, just keep clicking test and edit the values based on the error.
          Share a screenshot of what you're having issues with if you still are.

          Comment

          • aitaix
            Junior Member
            • Jan 2025
            • 3

            #6
            Donkey - Try using the "When a Teams webhook request is received" Template in Teams > Workflows instead

            Comment

            • aitaix
              Junior Member
              • Jan 2025
              • 3

              #7
              I'm also having issues with the Webhook. I'm following this guide

              I've added the Macro:
              Click image for larger version

Name:	zabbix.png
Views:	165
Size:	9.6 KB
ID:	506053

              It says it must contain a schema:
              Click image for larger version

Name:	zabbix3.png
Views:	97
Size:	55.3 KB
ID:	506055

              When I manually enter in the Zabbix URL -- Sending failed:
              Click image for larger version

Name:	zabbix2.png
Views:	90
Size:	46.2 KB
ID:	506054


              Log:

              00:00:00.000 [Debug] [MS Teams Webhook] Source: Discovery; Event: null00:00:00.000 [Debug] [MS Teams Webhook] Sending post request:"{"themeColor":"1F1F1F","summary":"{ALERT. SUBJECT}","sections":[{"markdown":"false","activityTitle":"{ALERT.SUBJEC T}","text":"{ALERT.MESSAGE}"}],"potentialAction":[{"@type":"OpenUri","name":"Zabbix Home","targets":[{"os":"default","uri":"https://dce-srv-zabbix.redacted.com"}]}]}"00:00:00.512 [Debug] [MS Teams Webhook] Response has been received:00:00:00.512 [Warning] [MS Teams Webhook] FAILED with response:00:00:00.512 [Warning] [MS Teams Webhook] notification failed:

              Comment

              • aitaix
                Junior Member
                • Jan 2025
                • 3

                #8
                What does it say in Teams > (left side 3 dot menu) > Search for "Worksflows" > Select the 3 dot menu next to your Zabbix flow > Run History > Select the recent one > Run Details. I don't have any answers, I'm just wondering if you have the same error as me across the Pond. I'm thinking that Microsoft changed how the webhooks run and the guides and tutorials that we are following are now outdated.Click image for larger version

Name:	zabbix0.png
Views:	112
Size:	28.2 KB
ID:	506224

                Comment

                • kz3
                  Junior Member
                  • Jul 2025
                  • 20

                  #9
                  this is working for me to send alerts via MS Teams

                  The trigger expresion is === triggerbody()?['text']

                  Click image for larger version

Name:	image.png
Views:	114
Size:	33.1 KB
ID:	506308


                  Click image for larger version

Name:	image.png
Views:	67
Size:	13.5 KB
ID:	506309
                  at least this is the only configuration that i did on the webhook configuration​​

                  Comment

                  Working...