ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.30
    • Component/s: API (A)
    • Support backlog
    • 1

      When creating a hostinterface via the API, the type field is not validated allowing for arbitrary type values to be send.
      The API does not return an error but happily creates the interface.

      2026-10-20 11:41:15,177 - zabbix_utils.api - DEBUG - Sending request to https://zabbix-dev/api_jsonrpc.php with body: {
          "jsonrpc": "2.0",
          "method": "hostinterface.create",
          "params": {
              "main": "1",
              "useip": "1",
              "dns": "",
              "ip": "10.10.10.203",
              "type": 65537,
              "port": 161,
              "hostid": "11179"
          },
          "id": "e0594b0e-253c-4f57-83f9-605da92f012d"
      }
      2026-10-20 11:41:15,399 - zabbix_utils.api - DEBUG - Received response body: {
          "jsonrpc": "2.0",
          "result": {
              "interfaceids": [
                  "113"
              ]
          },
          "id": "e0594b0e-253c-4f57-83f9-605da92f012d"
      }
      

      This non-valid interface is not shown in the GUI, but some elements in the form to change. Also, the server/proxy/proxygroup selector breaks.

      Saving the host from the frontend, removes the 'ghost interface' from the host.
      Afterwards the form returns to normal.

        1. invalid interface.png
          63 kB
          Raymond Kuiper
        2. normal.png
          56 kB
          Raymond Kuiper

            Assignee:
            Zabbix Development Team
            Reporter:
            Raymond Kuiper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: