Hey,
I have this python script that i added in agent UserParameter:
UserParameter=customer.vms, /usr/bin/python3 /etc/zabbix/zabbix_scripts/customer_vms.py
That returns this output :
{"data": [{"{#CUSTOMER}": "A1", "{#VMS}": 4}, {"{#CUSTOMER}": "B3", "{#VMS}": 4}}]}
I have created LLD like this (atteched)
The only thing the latest data shows is the customer names without the vms value.
I have tried changing the item many times
customer.vms[{#VMS}]
customer.vms[{#CUSTOMER},{#VMS}]
but i dont get ANY value.
If i put {#CUSTOMER} or {#VMS} in item name it does shows the correct value.
i want it to show :
A1 4
B3 4
In latest data.
Also i tried to change json to look like this :
{"data": [{"#CUSTOMER": "A1", "#VMS": 4}, {"#CUSTOMER": "B3", "#VMS": 4}}]}
And it gave me a differant error like "Cannot create item: item with the same key "customer.vms[{#VMS},{#CUSTOMER}]" already exists."
help
I have this python script that i added in agent UserParameter:
UserParameter=customer.vms, /usr/bin/python3 /etc/zabbix/zabbix_scripts/customer_vms.py
That returns this output :
{"data": [{"{#CUSTOMER}": "A1", "{#VMS}": 4}, {"{#CUSTOMER}": "B3", "{#VMS}": 4}}]}
I have created LLD like this (atteched)
The only thing the latest data shows is the customer names without the vms value.
I have tried changing the item many times
customer.vms[{#VMS}]
customer.vms[{#CUSTOMER},{#VMS}]
but i dont get ANY value.
If i put {#CUSTOMER} or {#VMS} in item name it does shows the correct value.
i want it to show :
A1 4
B3 4
In latest data.
Also i tried to change json to look like this :
{"data": [{"#CUSTOMER": "A1", "#VMS": 4}, {"#CUSTOMER": "B3", "#VMS": 4}}]}
And it gave me a differant error like "Cannot create item: item with the same key "customer.vms[{#VMS},{#CUSTOMER}]" already exists."
help
Comment