I am using Zabbix 5.4 to monitor photocopiers (among other things) at a school. I have a calculated item which contains a numeric status code from the copier (values from 0 to 255), and I have a trigger which shows the status code as operational data when its value indicates there are problems.
I want to get a meaningful message instead of the code. This sounds like a value mapping, but the code values are bit-mapped so each code from 0 to 255 would need a different string. For example 128 indicates low paper and 32 indicates low toner, but 160 indicates low paper and low toner.
1. Is there a more feasible way I can generate a string from the calculated item to describe the problems that are present?
2. What is the correct way to get this string to be displayed in the operational data?
I want to get a meaningful message instead of the code. This sounds like a value mapping, but the code values are bit-mapped so each code from 0 to 255 would need a different string. For example 128 indicates low paper and 32 indicates low toner, but 160 indicates low paper and low toner.
1. Is there a more feasible way I can generate a string from the calculated item to describe the problems that are present?
2. What is the correct way to get this string to be displayed in the operational data?
10-20 mappings is no biggie..
Comment