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.
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
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"
}
http://www.zabbix.com/rn2.4.0.php
Comment