Obviously there is rrdtool xport function and even "export" button in cacti graphical interface, but I just don't understand how data is stored.
Here is example of export for 24 hours
Code: Select all
<xport>
<meta>
<start>1319587200</start>
<step>86400</step>
<end>1319673600</end>
<rows>2</rows>
<columns>1</columns>
<legend>
<entry></entry>
</legend>
</meta>
<data>
<row><t>1319587200</t><v>3.7787899306e+03</v></row>
<row><t>1319673600</t><v>1.2360700832e-01</v></row>
</data>
</xport>
How cacti does its calculation? How could I convert 3.7787899306e+03 to 280MB?
Maybe there is easier way than to parse raw data? I need to get amount of traffic that was downloaded by user in particular time range.