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

Problem while creating and Host with Api.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.0.8
    • API (A)
    • None

      HI. we this problem.

      When i try to create an host with api method in our zabbix env 2.4
      i receive this error:

      "msg": "Failed to create host test: (u'Error -32500: Application error., SQL statement execution has failed \"INSERT INTO hosts (status,host,name,hostid) VALUES (\\'1\\',\\'test\\',\\'test\\',\\'10756\\')\". while sending {\"params\": {\"status\": 1, \"host\": \"test\", \"interfaces\": [

      {\"ip\": \"1.1.1.2\", \"useip\": 0, \"dns\": \"test.em.corp\", \"main\": 1, \"type\": 1, \"port\": 10050}

      ], \"groups\": [

      {\"groupid\": \"2\"}

      ]}, \"jsonrpc\": \"2.0\", \"method\": \"host.create\", \"auth\": \"037630457bbced9d16e7b509d3b4fa7e\", \"id\": 5}', -32500)"
      }

      I' ve tried on different zabbix env and all working fine.

      I suspect that problem is inside this related DB.

      Can i correct some keys or table on DB?

      Can you help me?

      Thanks,
      Alessandro.

            Unassigned Unassigned
            alessandro.gorna@eidosmedia.com A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: