Zabbix 2.0 API can't binding host to template when host.create

XMLWordPrintable

    • Type: Incident report
    • Resolution: Incomplete
    • Priority: Major
    • None
    • Affects Version/s: 2.0.0
    • Component/s: API (A)
    • Environment:
      Linux mon3 2.6.32-hardened-r77-0 #1 SMP Tue Nov 29 02:35:45 MSK 2011 x86_64 Intel(R) Xeon(R) CPU E5450 @ 3.00GHz GenuineIntel GNU/Linux

      When i use host.create without binding host to template, it work fine. When i try to create host with binding it to template, i see permission error =(
      For example:
      zapi.host.create({
      "host": host,
      "interfaces":
      [

      { "type": 1, "main": 1, "useip":1, "ip": ip, "dns": "", "port": 10050 }

      ],
      "groups": [

      { "groupid": groupid }

      ],
      "templates": [

      { "templateid": '10073' }

      ],
      "inventory":

      { "macaddress_a": mac }

      })

      error:
      (u'Error -32500: Application error., You do not have permission to perform this operation. while sending {"params": {"templates": [

      {"templateid": "10073"}

      ], "host": "10.229.103.16", "interfaces": [

      {"ip": "10.229.103.16", "useip": 1, "dns": "", "main": 1, "type": 1, "port": 10050}

      ], "groups": [

      {"groupid": "36"}

      ], "inventory": {"macaddress_a": "14:d6:4d:6a:b9:40"}}, "jsonrpc": "2.0", "method": "host.create", "auth": "ef2c0e93ce35510643d1666e83bf44c2", "id": 13}', -32500)

      If i commented string "templates": [

      { "templateid": '10073' }

      ], it's work fine. Wtf?

            Assignee:
            Unassigned
            Reporter:
            max
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: