Ai.
The Zabbix 1.8 documentation is misleading, because it says that user macro's are supported for item key's when it is in fact not supporting it.
This same "bug" was fixed for SNMP items' keys ( https://support.zabbix.com/browse/ZBXNEXT-355 ) back in 1.8.4, but for some strange reason not for general Zabbix items - like Zabbix trapper items.
Being unable to use user macro's in item keys and not allowing the same template to be used multiple times on a single host is really annoying and wasting a lot of my time.
I've already modified my scripts that make use of zabbix_sender to send the key-value pairs (from the same host) to multiple hosts referencing the same template, just to make Zabbix administration faster.
I'm nearing a point where I'm going to attempt write a patch that would allow the sample template to be used multiple times on a single host. This would only be possible if all the items in that template makes use of user macro's in their keys - but first user macro's has to work on item keys!
So for example for using the template once, you'll use the user macro: {$VALUE} => Value1
For using the template twice, you'll use the user macro's: {$VALUE[0]} => Value1, {$VALUE[1]} => Value2
The Zabbix 1.8 documentation is misleading, because it says that user macro's are supported for item key's when it is in fact not supporting it.
This same "bug" was fixed for SNMP items' keys ( https://support.zabbix.com/browse/ZBXNEXT-355 ) back in 1.8.4, but for some strange reason not for general Zabbix items - like Zabbix trapper items.
Being unable to use user macro's in item keys and not allowing the same template to be used multiple times on a single host is really annoying and wasting a lot of my time.
I've already modified my scripts that make use of zabbix_sender to send the key-value pairs (from the same host) to multiple hosts referencing the same template, just to make Zabbix administration faster.
I'm nearing a point where I'm going to attempt write a patch that would allow the sample template to be used multiple times on a single host. This would only be possible if all the items in that template makes use of user macro's in their keys - but first user macro's has to work on item keys!
So for example for using the template once, you'll use the user macro: {$VALUE} => Value1
For using the template twice, you'll use the user macro's: {$VALUE[0]} => Value1, {$VALUE[1]} => Value2


BUT I reckon it would be worth it in the long run...
Comment