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

host.create + profile = profile not inserts

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.5
    • Fix Version/s: 1.8.9
    • Component/s: API (A)
    • Labels:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: