-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
2.4.0
-
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": [
],
"templates": [
],
"interfaces": [
],
"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.
- duplicates
-
ZBXNEXT-1520 Increase the 63 character limit for Hosts/DNS name (Z4)
- Closed