Привет! Помогите пожалуйста разобраться, что я делаю не так с LLD?
Посылаю, например с помощью
на сервер JSON вида
В вебе в правилах обнаружения получаю
При этом элементы создаются и данные по ним приходят.
В обнаружении 8 прототипов элементов данных с ключами:
Я подозреваю что как-то криво составил JSON, но я не пойму как мне его правильно сделать?
Посылаю, например с помощью
Code:
zabbix_sender -vv -c /etc/zabbix/zabbix_agentd.conf --input-file
Code:
{
"data": [
{
"{#CLUSTER}": "misc",
"{#NODE}": "test1"
},
{
"{#CLUSTER}": "misc",
"{#NODE}": "test2"
},
{
"{#CLUSTER}": "misc",
"{#NODE}": "test3"
},
{
"{#CLUSTER}": "web",
"{#NODE}": "hello1"
},
{
"{#CLUSTER}": "web",
"{#NODE}": "hello2"
},
{
"{#CLUSTER}": "web",
"{#NODE}": "hello3"
}
]
}
Code:
Cannot create item: item with the same key "shard_all_members[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_inconsistent_nodes[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_maintenance_nodes[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_masters_count[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_master_id[{#NODE}]" already exists.
Cannot create item: item with the same key "shard_running_members[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_servers[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_servers[{#NODE}]" already exists.
Cannot create item: item with the same key "shard_all_members[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_inconsistent_nodes[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_maintenance_nodes[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_masters_count[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_master_id[{#NODE}]" already exists.
Cannot create item: item with the same key "shard_running_members[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_servers[{#CLUSTER}]" already exists.
Cannot create item: item with the same key "shard_servers[{#NODE}]" already exists.
В обнаружении 8 прототипов элементов данных с ключами:
Code:
shard_master_id[{#NODE}]
shard_masters_count[{#CLUSTER}]
shard_all_members[{#CLUSTER}]
shard_running_members[{#CLUSTER}]
shard_inconsistent_nodes[{#CLUSTER}]
shard_maintenance_nodes[{#CLUSTER}]
shard_servers[{#CLUSTER}]
shard_servers[{#NODE}]
Comment