Ad Widget

Collapse

MS Teams - Couldn't resolve host name

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GetMeSomeCoffee
    Junior Member
    • Jun 2022
    • 7

    #1

    MS Teams - Couldn't resolve host name

    Hello Zabbix community,
    i'm currently facing an issue with setting up a connection with MS Teams. I'm running Zabbix 6.0 in a docker setup.
    If I try to test my connection of teams, I' get the following error:

    Sending failed: Error: cannot get URL: Couldn't resolve host name.

    Please check out the attached screenshots for my configuration.
    I could already verify that the frontend container can in fact reach the Teams environment by running
    Code:
    curl -H 'Content-Type: application/json' -d '{"text": "Hello from the Zabbix frontend"}' <Teams Webhook url goes here>
    The server container logs aren't very informative either:
    [ MS Teams Webhook ] ERROR: Error: cannot get URL: Couldn't resolve host name.
    The frontend container log doesn't show anything.

    I'm out of ideas why it's not working, maybe someone else had/has the same problem
  • Answer selected by GetMeSomeCoffee at 28-06-2022, 13:02.
    GetMeSomeCoffee
    Junior Member
    • Jun 2022
    • 7

    Managed to track down the issue. The env variables with http proxy was not recognized correctly. Had to reset this and then it was possible

    Comment

    • GetMeSomeCoffee
      Junior Member
      • Jun 2022
      • 7

      #2
      Managed to track down the issue. The env variables with http proxy was not recognized correctly. Had to reset this and then it was possible

      Comment

      • cindycallai
        Junior Member
        • Sep 2023
        • 1

        #3
        Hi guys, I have the same problem "Sending failed: Error: cannot get URL: Couldn't resolve host name.", but I have to configure zabbix with Discord via Webhook.
        can you help me?​

        Comment

        Working...