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

API host.create returning error

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.1
    • None
    • API (A)
    • None

    Description

      Unable to add a host. Looks like there is a bug in the authorization code.
      The user being used for this request has Zabbix Super Admin privs and has read/write access to the group in question.

      *Debug(8)* do_request: Sending: {"auth":"48ff8fde0cd6e1dd399d6c422daa61a8","method":"host.create","id":2,"params":

      {"groups":[2],"useip":true,"host":"test","dns":"bla.bla"}

      ,"jsonrpc":"2.0"}

      *Debug(8)* do_request: Response Code: 200
      *Debug(8)* do_request: Response Body: {"jsonrpc":"2.0","error":

      {"code":-32500,"message":"Application error.","data":"[ CHost::create ] You do not have enough rights for operation"}

      ,"id":2}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redtux nelsonab
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: