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

host.update API method requires tls_psk_identity when it shouldn't

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.2.1
    • API (A)
    • Zabbix server is running on Scientific Linux 7.2, using RPMs from repo.zabbix.com (3.2.1-1.el7_x86_64)
    • Sprint 4, Sprint 5, Sprint 6, Sprint 7
    • 0.5

      I'm attempting to update groups for a host via the API using the host.update method. I would expect that the only parameters I would have to give are what is being changed. However, the API errors, insisting that I also send it the tls_psk_identity (and tls_psk as well if I only add tls_psk_identity). Node is configured to use encryption and everything else is working correctly. I can work around the issue by submitting the same encryption info I did when I set up the node.

       {
        "code": -32602,
        "message": "Invalid params.",
        "data": "Incorrect value for field \"tls_psk_identity\": cannot be empty."
      }
      

      on request:

       {
        "method": "host.update",
        "params": [
          {
            "hostid": 10137,
            "groups": [
              "11"
            ]
          }
        ],
        "id": 70397,
        "jsonrpc": "2.0",
        "auth": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
      

            Unassigned Unassigned
            russjury Russ Jury
            Team C
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: