Ad Widget

Collapse

64 character limit still there with 2.4.0 upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hyeteck
    Junior Member
    • Oct 2014
    • 9

    #1

    64 character limit still there with 2.4.0 upgrade

    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.

    This is the response i'm getting from the Server when making the necessary API call.

    Code:
     {
      "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"
    }
    Any idea why the character restrictions are still present? The release notes at the following link show that the limit has been increased from 64 to 128.
    http://www.zabbix.com/rn2.4.0.php
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Well, the error message complains about:
    "Value [...] is too long for field \"dns\" - 72 characters. Allowed length is 64 characters."

    and the mentioned change was:
    Increased size of "Host name", "Visible host name" and "Proxy name" fields to 128 characters.

    Host name, Visible host name, but not DNS name.

    Admittedly I share your expectation to have DNS filed being updated alongside of the technical host name.
    To me this is can be considered as a bug, so you possibly want to create a bug report - in case there is none appropriate already.

    Comment

    • hyeteck
      Junior Member
      • Oct 2014
      • 9

      #3
      Thanks, i've opened a bug report.

      Comment

      Working...