I would like to display the previous value of an item whenever an event is fired.
Let's say I have an item that triggers with a value of 0.
Whenever that trigger is true, the operational data should display the latest and previous values.
I hoped the syntax was something like this:
For that, I tried to use the last() function, but it won't resolve within "operational data".
I searched for a macro that would display such a previous value, but could not find it.
Example:
Trigger

Event

Any idea?
Let's say I have an item that triggers with a value of 0.
Code:
last(/hostname/item.key)=0
I hoped the syntax was something like this:
Code:
Last value: {ITEM.LASTVALUE} - Previous value: last(/{HOST.HOST}/{ITEM.KEY},#2)
I searched for a macro that would display such a previous value, but could not find it.
Example:
Trigger
Event
Any idea?

Comment