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

64 character limit for dns field

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4.0
    • API (A), Server (S)
    • None

      I upgraded from 2.2.5 to 2.4.0 but i'm still getting an error when trying to add a node with a hostname longer than 64 characters via the API.

      it appears the character limit for some but not all fields related to the hostname were increased. When adding a node via the API the following response is received.

      { "code": -32500, "message": "Application error.", "data": "Value \"'xxxxxx-xxxxxxx-xxxxxxx-xxxxxxxx-xxxxxxxxxx-x.xxxx-xxxx.xxxxx.xxxxxxx.xxx'\" is too long for field \"dns\" - 72 characters. Allowed length is 64 characters." }

      on request:
      {
      "method": "host.create",
      "params": {
      "host": "xxxxxx-xxxxxxx-xxxxxxx-xxxxxxxx-xxxxxxxxxx-x.xxxx-xxxx.xxxxx.xxxxxxx.xxx",
      "groups": [

      { "groupid": "37", "name": "xxxxxxxxxxx xxxxxx-xx-x", "internal": "0", "flags": "0" }

      ],
      "templates": [

      { "templateid": "10159" }

      ],
      "interfaces": [

      { "type": 1, "main": 1, "useip": 1, "ip": "10.15.34.55", "dns": "xxxxxx-xxxxxxx-xxxxxxx-xxxxxxxx-xxxxxxxxxx-x.xxxx-xxxx.xxxxx.xxxxxxx.xxx", "port": "10050" }

      ],
      "macros": [

      ],
      "proxy_hostid": "10896"
      },
      "id": 40256,
      "jsonrpc": "2.0",
      "auth": "20b124f935a2217c22026858d2771011"
      }

      Release notes for 2.4.0 (http://www.zabbix.com/rn2.4.0.php) show an increase in character limit from 64 to 128 for hostname but it seems like the "dns" field was missed.

            Unassigned Unassigned
            hyeteck G.K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: