If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
I've just tried it and it doesn't work here either.
It seems to pick up only the first part of the expression - in this case system.swap.size[,total]-system.swap.size[,free] or system.swap.size[,total] - system.swap.size[,free].
yes i also have the problem. and in try different form of expression with {} () and [] nothing different or errors append when i want to save the item.
After a few hours reading the documention and the forums, I couldn't find a way to have "calculated" items.
I have two stats ("success" and "total") and I want to calculate their ration.
I have tried every possible syntax with "(" and "{" such as
({vm.stats[success]}/{vm.stats[total]})
Also tried the "trigger" syntax to no avail.
Of course vm.stats[aa] and vm.stats[bb] work well (they are UserParameter I defined in my zabbix_agentd.conf).
A couple of people have asked about this on the forum. Last year, Alexei answered "Yes, it is possible and supported." however he did not provide any example of the syntax nor did he answer the few follow-up posts that complained it doesn't seem to work...
Anyone knows how to "calculate" an item based on other items?
Thanks for this answer. At least I can stop trying now
This could be an interesting feature. In my context I get VoIP measurements through an external UserParameter item, e.g. Total SIP calls and Total Successful SIP calls. The ratio provides an important measure of quality. I can imagine a few other use of calculated fields.
Since you have written a parser for triggers, it shouldn't be hard to use it for items? That's my wild, uneducated and probably stupid guess.
Thanks anyway for the great work on Zabbix, I love it more every day.
Comment