I am trying to calculate the total octets_in using python rrdtool. I have this but it's not giving me the correct output.
here is a data sample
[
406.29947919463086
],
[
433.0391666666667
],
[
430.70380365448506
]
I want the total to be 1269
my def, cdef and vdef are
f'DEF:OCTETS_IN={self.file_name}:OCTETS_IN:AVERAGE'
'CDEF:octets_in=OCTETS_IN,PREV,ADDNAN',
'VDEF:out_octets_in_total=octets_in,AVERAGE'
The only operators I can use from rrdtool are AVERAGE, MINIMUM, MAXIMUM and PERCENT and they all give the wrong results.
Anybody know how to do this?