I think dependent items should have the formula field from calculated items (the ability to use last, sum, ect functions)
Another option would be to add a item value dependency to the calculated item.
As an example, collecting interface in/out byte counts will reset to zero if the host reboots.
In order to maintain persistent data counts, a secondary item must be created to add the difference between the last and last last value and store it in the new item.
But, the execution of a calculated item would add potentially duplicate data because its execution schedule is not tied to the original item.
Example item formula:
The core problem here being the calculated item could potentially execute twice in the time the original item executed once (resulting in over representing the data). Or the calculated item could execute once in the time the original item could execute twice (resulting in under representing the data).
Even setting the calculated item to the same interval does not guarantee that it will always execute in line with the original item.
I think this is incredibly important, as it is currently impossible to create an independent persistent data storage for an item.
Another option would be to add a item value dependency to the calculated item.
As an example, collecting interface in/out byte counts will reset to zero if the host reboots.
In order to maintain persistent data counts, a secondary item must be created to add the difference between the last and last last value and store it in the new item.
But, the execution of a calculated item would add potentially duplicate data because its execution schedule is not tied to the original item.
Example item formula:
Code:
last(//net.if.out.count["{#IFNAME}"])+(last(//net.if.out["{#IFNAME}",bytes])-last(//net.if.out["{#IFNAME}",bytes],#2))
Even setting the calculated item to the same interval does not guarantee that it will always execute in line with the original item.
I think this is incredibly important, as it is currently impossible to create an independent persistent data storage for an item.