<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
span.PlainTextChar
        {font-family:"Calibri","sans-serif"}
span.EmailStyle20
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Looking at the vm_monitoring table in sqlite, it becomes clear that the NET_RX and NET_TX values reported by oneacct are not accumulated.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Only the most recent value is shown for the filtered dataset.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Should I file a ticket describing my findings?</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Dirk</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Daems Dirk
<br>
<b>Sent:</b> dinsdag 28 januari 2014 10:11<br>
<b>To:</b> 'users@lists.opennebula.org'<br>
<b>Subject:</b> oneacct: accounting information not correct?</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I use OpenNebula 4.2 with a VMWare hypervisor (v 5.1.0). I am experimenting with the oneacct accounting tool. It looks like the network consumption in my setup is not correctly monitored.</p>
<p class="MsoNormal">I sent a file of 2.4 GB to my VM with ID 52. After uploading the file, oneacct only reports 794.1K of received bytes.</p>
<p class="MsoNormal">When I execute the command a couple of second later, the NET_RX property only shows 0.1K of bytes received. If I understand the documentation correct [1], the amount of received bytes should be accumulated for a history record.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">[1] - <a href="http://docs.opennebula.org/stable/administration/users_and_groups/accounting.html">
http://docs.opennebula.org/stable/administration/users_and_groups/accounting.html</a></p>
<p class="MsoNormal"> </p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">-bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to Wed Jan 29 00:00:00 +0100 2014</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""># User 2                                                                       
</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">VID HOSTNAME        ACTION           REAS     START_TIME       END_TIME MEMORY CPU NET_RX NET_TX</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">  52 devmesx1.intern none             none 01/27 17:26:18              -     2G   2 794.1K     0K</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">-bash-4.1$
</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">-bash-4.1$
</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">-bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to Wed Jan 29 00:00:00 +0100 2014</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""># User 2                                                                       
</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">VID HOSTNAME        ACTION           REAS     START_TIME       END_TIME MEMORY CPU NET_RX NET_TX</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New"">  52 devmesx1.intern none             none 01/27 17:26:18              -     2G   2   0.1K     0K</span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt; font-family:"Courier New""> </span></p>
<p class="MsoNormal">Did anyone experience similar problems or could this be due to incorrect setup?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">Dirk</p>
<p class="MsoNormal"> </p>
</div>
<font color="#999999" size="-2" face="Arial, Helvetica, sans-serif">VITO Disclaimer:
<a href="http://www.vito.be/e-maildisclaimer"><font color="#999999">http://www.vito.be/e-maildisclaimer</font></a></font>
</body>
</html>