Hello,
I'm using zabbix 4.0 jsonrpc api to integrate with my angular based application. In my custom web page, i show last value of the item, getting from item.lastvalue field, but it is not in human readable form, it is raw value. For example i'd like to see host availability as zabbix frontend shows, "unknown (2)", but i see just "2" (i use a value mapping "host availability") . Another example: when i set unit of "free disk space" item as "B", it is shown as "4.99 GB" in zabbix frontend, but "5357203456" in my application, because item.lastvalue is "5357203456". item object seems not having such a field?
I'm using zabbix 4.0 jsonrpc api to integrate with my angular based application. In my custom web page, i show last value of the item, getting from item.lastvalue field, but it is not in human readable form, it is raw value. For example i'd like to see host availability as zabbix frontend shows, "unknown (2)", but i see just "2" (i use a value mapping "host availability") . Another example: when i set unit of "free disk space" item as "B", it is shown as "4.99 GB" in zabbix frontend, but "5357203456" in my application, because item.lastvalue is "5357203456". item object seems not having such a field?
Comment