Hello Zabbix Forum,
I currently have a question about the way keys of items are handled. Maybe I am misunderstanding this topic.
I want to tie a custom items value to another parameter in the key, for example a measurement value to a given input value. I thought I could define the key like this:
mykey[input]
in my custom item.
and then supply values to this item of a host like this
mykey[10] = 1.1
mykey[20] = 2.7
etc.
but either I am misunderstanding the key structure of zabbix (I red the documentation now a couple of times, and I am no longer sure if what I want to do is possible).
The problem is, when I define the key like above, and then use zabbix_sender like this:
zabbix_sender -z myserver -s myhost -k mykey[10] -o 1.1
the server won't process the value.
Am I misunderstanding the key structure or am I doing something wrong when calling zabbix_sender?
any help is greatly appreciated
best regards
Ulrik
I currently have a question about the way keys of items are handled. Maybe I am misunderstanding this topic.
I want to tie a custom items value to another parameter in the key, for example a measurement value to a given input value. I thought I could define the key like this:
mykey[input]
in my custom item.
and then supply values to this item of a host like this
mykey[10] = 1.1
mykey[20] = 2.7
etc.
but either I am misunderstanding the key structure of zabbix (I red the documentation now a couple of times, and I am no longer sure if what I want to do is possible).
The problem is, when I define the key like above, and then use zabbix_sender like this:
zabbix_sender -z myserver -s myhost -k mykey[10] -o 1.1
the server won't process the value.
Am I misunderstanding the key structure or am I doing something wrong when calling zabbix_sender?
any help is greatly appreciated
best regards
Ulrik
Comment