Ad Widget

Collapse

MS Teams Webhook: Unable to download file media_ms_teams.xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itclustra
    Junior Member
    • Nov 2020
    • 5

    #1

    MS Teams Webhook: Unable to download file media_ms_teams.xml

    The file media_ms_teams.xml mentioned on https://www.zabbix.com/integrations/msteams under "2. In the Administration > Media types section, import the media_ms_teams.xml" cannot be downloaded because it is password protected.
  • Zdenek_OMNISENSUIT
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Nov 2020
    • 55

    #2
    Hello.

    You can find here yaml format of MS Teams webhook integration.

    You can transform it to xml.


    Comment

    • itclustra
      Junior Member
      • Nov 2020
      • 5

      #3
      Thank you for the hint. I have tried it but the XML output is not valid, because the script contains invalid code. It looks like the XML parser does not like the '&&' in 'if (params.event_value !== '0' && params.event_value !== '1''.
      XML syntax check says: Cannot read XML: (68) xmlParseEntityRef: no name [Line: 153 | Column: 37].

      Comment

      • itclustra
        Junior Member
        • Nov 2020
        • 5

        #4
        I have now corrected all the XML errors and got a valid XML file according to XML validator. But when I try to import the file in Zabbix, I get the following error message: Invalid tag "/zabbix_export/media_types": unexpected tag "name".

        Comment

        • Zdenek_OMNISENSUIT
          Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Nov 2020
          • 55

          #5
          Hello.
          I'm not sure for now but at first try check version of this template with your zabbix.
          If the template is newer than your zabbix try manually change it in head.
          If not help try check the tag definition etc.
          And if still not help send me the xml and info about your zabbix.

          Comment

          • itclustra
            Junior Member
            • Nov 2020
            • 5

            #6
            The XML file can be found here: https://github.com/zabbix/zabbix/blo...ia_msteams.xml

            Comment

            • wpagane
              Member
              • Apr 2021
              • 31

              #7
              Hello Guys, have you figured it out?

              Comment

              • itclustra
                Junior Member
                • Nov 2020
                • 5

                #8
                @wpagane
                Probably, because the integration is running. But sadly my predecessor (this is a company account) didn't add the solution here. And I can't find anything about this issue in our documentation. :-(
                Sorry about that.

                Comment

                Working...