Hello,
I'm using Cacti to monitor the energy consumption of some devices (using Z-Wave energy meters) and this works fine to track the actual power usage at any point in time (e.g. 400W at 8:00 AM). However, I'd like to add the cumulative energy consumption to my graphs as well (e.g. 0.4kWh during the last hour or 1.6kWh during the last 4 hours).
I first tried to achieve this using a COMMENT item with the bandwidth summation graph variable, so I used following variable ("Total energy consumption" in my graph):
|sum:6:current:2:auto|
The only problem with this approach is that the values reported by this variable should be divided by 3.6 in order to be correct. But it seems to be impossible to apply a CDEF-function to the output of this variable?
Then I tried with a GPRINT item and custom CDEF ("Daily energy consumption in kWh" in my graph):
CURRENT_DATA_SOURCE,24,*,1000,/
Now the reported value is correct, at least for the Daily graph. For all other graph types, it shows the daily cumulative energy consumption, while I would like a weekly total in the Weekly graph, a monthly total in the Monthly graph, ...
Is there any way to get this kind of totals in a Cacti graph?
Graph variables and CDEF's
Moderators: Developers, Moderators
Graph variables and CDEF's
- Attachments
-
- zwave.png (80.74 KiB) Viewed 833 times
Re: Graph variables and CDEF's
(apols for bring back an old post - but this is exactly the same issue / requirement as I have)..
I'm wanting to apply a cdef to a "|sum:" variable..
I assume to due to the lack of replies this is not possible
I'm wanting to apply a cdef to a "|sum:" variable..
I assume to due to the lack of replies this is not possible
Who is online
Users browsing this forum: No registered users and 2 guests