Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19488

Invalid MS Teams webhook

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Major Major
    • 6.0 (plan)
    • None
    • Templates (T)
    • Zabbix Server: zabbix_server (Zabbix) 5.2.3 Linux Server
    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021)
    • 1

      Steps to reproduce:

      1. Try to follow the guide: Microsoft Teams monitoring and integration with Zabbix
      2. Based on [Use Microsoft 365 and custom connectors - Microsoft Teams | Microsoft Docs|https://docs.microsoft.com/en-us/microsoftteams/office-365-custom-connectors#add-a-connector-to-a-channel] we get a new webhook URL: https://companyname.webhook.office.com/webhookb2/5bf015e2-ce92-42a8-8e90-92552d6ef161@0c6aa5a3-6531-4e28-9c0b-33ba1a8aa1ff/IncomingWebhook/f7fb2308e5f14431ace5b7cd0e670e42/4563618c-b03b-4e80-b093-28bb4ff11de8
      3. On Zabbix Server add new Media Type Webhook with Paraemter teams_endpoint set to the URL
      4. If you try to test the new media type you get the following message in webinterface: Sending failed: Invalid MS Teams webhook URL: https://<MSTENTANT>.webhook.office.com/webhookb2/586d2828-cb58-48f6-954d-d5de26c29795@0c6aa5a3-6531-4e28-9c0b-33ba1a8aa1ff/IncomingWebhook/bb06d61118274b82bfe4d9<TenRandomDigits>/4563618c-b03b-4e80-b093-28bb4ff11de8
      5. Edited the file media_msteams.xml 
      Old New
      else if (!params.teams_endpoint.startsWith('https://outlook.office.com/webhook/')) {
      throw 'Invalid MS Teams webhook URL: ' + params.teams_endpoint;
      else if (!params.teams_endpoint.startsWith('outlook.office.com/webhook/')) {
      throw 'Invalid MS Teams webhook URL: ' + params.teams_endpoint;

      After editing is done, import the file again. But the problem is still unresolved,

      Result:
      Unable to send messages to Teams:
      Sending failed: Invalid MS Teams webhook URL
      Expected:
      Send Messages to Teams

            abiba Andrew Biba
            tuantlu26 Nguyen Tuan
            Team INT
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: