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

Cannot import host in json format

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.0.5rc1, 5.2.0beta2, 5.2 (plan)
    • 5.0.4rc1, 5.2.0alpha3
    • API (A)
    • None
    • Team B
    • Sprint 68 (Sep 2020), Sprint 69 (Oct 2020)
    • 0.5

      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.

            averza Andrejs Verza
            rlataria Roberts Lataria (Inactive)
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: