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

excessive data returned to template.get

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • API (A)
    • None
    • 1.8.5rc1

    Description

      template.get returns excessive and confusing output of duplicate hostid+templateid values.

      host.get request :

      {"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"host.get","id":19,"params":{},"jsonrpc":"2.0"}

      {"jsonrpc":"2.0","result":[

      {"hostid":"10017"}

      ,

      {"hostid":"10054"}

      ,

      {"hostid":"10055"}

      ,

      {"hostid":"10056"}

      ,

      {"hostid":"10051"}

      ],"id":19}

      template.get request :

      {"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"template.get","id":20,"params":{},"jsonrpc":"2.0"}

      {"jsonrpc":"2.0","result":[

      {"hostid":"10001","templateid":"10001"}

      ,

      {"hostid":"10002","templateid":"10002"}

      ,

      {"hostid":"10003","templateid":"10003"}

      ,... (trimmed)

      should not.

      Attachments

        Activity

          People

            oleg.egorov Oleg Egorov (Inactive)
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: