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

host.create + profile = profile not inserts

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.9
    • 1.8.5
    • API (A)

      While using host.create, and set profile values for new host, looks like profile does not inserts into database.

      API request (IPs chaged:

      {"params":[{"host":"123","ip":"0.0.0.0","dns":"","useip":1,"groups":[

      {"groupid":6}

      ],"profile":

      {"name":"123","contact":"test client","location":"test"}

      ,"parentTemplates":[

      {"templateid":10047}

      ]}],"auth":"d65d71256c08764e357d3474737d0de6","jsonrpc":"2.0","method":"host.create","id":1}

      I'm fixed this bug in my installation by changing line 38860 in class.chost.php :

      if(isset($host['profile']) && !empty($host['extendedProfile'])) {

      changed to

      if(isset($host['profile']) && !empty($host['profile'])) {

      after this problem dissapeared

            Unassigned Unassigned
            ravenox Artur Kraev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: