Zabbix calculates data from empty items

zabbix

Zabbix keeps calculating values on unresponsive hosts from empty items.
Screenshot.
I've tried to use formulas that should calculate data within the time shift but it doesn't work for me.
For example:

100 - last("vm.memory.size[pavailable]",#1,5m)
100 - last("vm.memory.size[pavailable]",300)

Is there any way to make Zabbix stop calculating data for empty items?
Calculated item example.

Best Answer

You are using the last() function, so Zabbix does just that - grabs the last value from the item.

You can try using avg() over some time period - in that case, missing values would make the calculated item fail.