Greetings:
I am working to setup several new items in my Zabbix 5.0.1 container. I am using standard SNMP queries to pull data from a network device and would like to use the result of a SNMP query as the units for other items. For example, for my device, SNMP OID 1.3.6.1.4.1.9839.2.1.1.51.0 returns either a zero or a one. I am using the Replace processioning to replace the 0 with "Deg F" and the 1 with "Deg C" which is then stored as text in key USAshr_f_c.. I would then like to use that result as the units for other items of the same device so that the temperature units would change based on the settings on the device itself.
I have tried using a macro similar to {{HOSTNAME}:USAshr_f_c.last(0)} where USAshr_f_c is the key for the that gives me the item but it appears that this is not evaluated when shown in either the Latest Data or Graphs section.
Is it possible to use the output of a macro as the unit for an item?
Thanks!
I am working to setup several new items in my Zabbix 5.0.1 container. I am using standard SNMP queries to pull data from a network device and would like to use the result of a SNMP query as the units for other items. For example, for my device, SNMP OID 1.3.6.1.4.1.9839.2.1.1.51.0 returns either a zero or a one. I am using the Replace processioning to replace the 0 with "Deg F" and the 1 with "Deg C" which is then stored as text in key USAshr_f_c.. I would then like to use that result as the units for other items of the same device so that the temperature units would change based on the settings on the device itself.
I have tried using a macro similar to {{HOSTNAME}:USAshr_f_c.last(0)} where USAshr_f_c is the key for the that gives me the item but it appears that this is not evaluated when shown in either the Latest Data or Graphs section.
Is it possible to use the output of a macro as the unit for an item?
Thanks!