Hi all
I have a script which invokes zabbix_sender (1.6.4, Linux) sometimes with size/byte value that are (depending on the dimension) encoded as
1234
12k
1234k
13m
and so on. zabbix_sender fails, if the value is not a pure number (e.g. has 'k' or 'm' appended). I thought I could handle this by defining the Unit of the corresponding item, but I wasn't able to get it to work. I tried 'b' or 'B' for the Unit parameter.
For time being, I fixed it by re-converting the value to pure numbers in my shell script, but I thought there should be a way to send such value to Zabbix directly?
Any ideas what I've done wrong?
CU, Joe
I have a script which invokes zabbix_sender (1.6.4, Linux) sometimes with size/byte value that are (depending on the dimension) encoded as
1234
12k
1234k
13m
and so on. zabbix_sender fails, if the value is not a pure number (e.g. has 'k' or 'm' appended). I thought I could handle this by defining the Unit of the corresponding item, but I wasn't able to get it to work. I tried 'b' or 'B' for the Unit parameter.
For time being, I fixed it by re-converting the value to pure numbers in my shell script, but I thought there should be a way to send such value to Zabbix directly?
Any ideas what I've done wrong?
CU, Joe
Comment