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

Invalid MS Teams webhook because of new URL synatx

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.7, 5.2.3
    • Component/s: Server (S)
    • Labels:
      None
    • Environment:
    • Team:
      Team INT
    • Sprint:
      Sprint 72 (Jan 2021)
    • Story Points:
      0.25

      Description

      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/[email protected]a1a8aa1ff/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/[email protected]a1a8aa1ff/IncomingWebhook/bb06d61118274b82bfe4d9<TenRandomDigits>/4563618c-b03b-4e80-b093-28bb4ff11de8

      Result:

      Unable to send messages to Teams:
      Sending failed: Invalid MS Teams webhook URL: https://<MSTENTANT>.webhook.office.com/webhookb2/[email protected]a1a8aa1ff/IncomingWebhook/bb06d61118274b82bfe4d9<TenRandomDigits>/4563618c-b03b-4e80-b093-28bb4ff11de8

      Expected:
      Send Messages to Teams

      Zabbix Forum Link with fix:
      Teams Integration - Invalid MS Teams webhook - ZABBIX Forums

      Fix:
      In source code 

      • zabbix-5.2.x/database/mysql/data.sql modify the 4 entries regarding !params.teams_endpoint.startsWith to !params.teams_endpoint.includes('office.com/webhook'

        Attachments

          Activity

            People

            Assignee:
            tuskov Tikhon Uskov
            Reporter:
            michael.weber Michael Weber
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: