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

Cannot import host in json format

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.4rc1, 5.2.0alpha3
    • Fix Version/s: 5.0.5rc1, 5.2.0beta2, 5.2 (plan)
    • Component/s: API (A)
    • Labels:
      None
    • Team:
      Team B
    • Sprint:
      Sprint 68 (Sep 2020), Sprint 69 (Oct 2020)
    • Story Points:
      0.5

      Description

      Cannot import host from 4.0 to 5.0 in json format.

      Steps to reproduce:

      1. Open Zabbix 4.0 version
      2. Create host with SNMP interface
      3. Create item with SNMP type
      4. Export this host via API to json format
        {
            "jsonrpc": "2.0",
            "method": "configuration.export",
            "params": {
                "options": {
                    "hosts": [
                        "your host id"
                    ]
                },
                "format": "json"
            },
            "auth": "your auth token",
            "id": 1
        }
        
      5. Import this host to Zabbix 5.0 or 5.2

      Result:
      Import failed with message:

      Invalid tag "/zabbix_export/hosts/host(1)/interfaces": unexpected tag "interface".
      

      Expected:
      Import success.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              averza Andrejs Verza
              Reporter:
              rlataria Roberts Lataria
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: