[ZBX-14657] Need help with a calculated item Created: 2018 Jul 27  Updated: 2018 Jul 27  Resolved: 2018 Jul 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 4.0.0alpha8
Fix Version/s: None

Type: Problem report Priority: Minor
Reporter: Andrew Hamilton Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: Template, calculateditems, item
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I have a template where I've created two items.

The keys are:

fmUsedMemory and fmTotalMemory

I am trying to either create a calculated item that works like:

(fmUsedMemory/fmTotalMemory)*100

or a trigger so I can alert whenever it goes above 90%

Every time I create it, the two items connected to OID's populate as expected, however the calculated item either errors out or goes unsupported.

I've been messing around with this for a day or so with no progress. I need clarification and help.



 Comments   
Comment by Andrew Hamilton [ 2018 Jul 27 ]

The actual formula I have is this
100*(last("fmUsedMemory")/last("fmTotalMemory"))

The error I'm getting is "Cannot evaluate function "last()"."

What am I doing wrong here?

Comment by Alexey Pustovalov [ 2018 Jul 27 ]

Hello Andrew,

Please, stop creating issues for your personal problems configuring Zabbix. Use forum for that:
https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems. This is an issue tracker, to track an issues in Zabbix.

Kind regards,
Alexey.

Generated at Fri Apr 26 11:36:50 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.