Hi everyone,
I have setup pmacct with your help, and it's been running like a champ. I
have also installed darkstat for comparison. I am seeing a big error (around
30%) between the 2 tools! Here's what I have done
1- pmacct was running for a week, I dumped the captured data into a file
using this query:
SELECT sum(bytes) / (1024 * 1024), ip_dst into outfile
"/tmp/download_start_with_darkstat" FROM acct_v2 where month(
stamp_inserted) = 6 and ip_dst !='0.0.0.0' GROUP BY ip_dst ORDER BY
sum(bytes) DESC;
2- Started darkstat
3- Waited 2.25 days for accurate measurement
4- dumped the data again from pmacct using this query
SELECT sum(bytes) / (1024 * 1024), ip_dst into outfile
"/tmp/download_stop_with_darkstat" FROM acct_v2 where month( stamp_inserted)
= 6 and ip_dst !='0.0.0.0' GROUP BY ip_dst ORDER BY sum(bytes) DESC;
5- dumped darkstat data using a browser.

Here's what I am seeing:

IP                 START        END                DELTA
DARKSTAT(bytes)
81.10.100.42 7607.7053 9477.4200         1869.7147 1,397,584,555
81.10.100.73 3603.2834 4716.6248         1113.3414 810,169,491
81.10.100.37 3540.3343 5698.6758         2158.3415 1,573,900,631
81.10.100.199 3444.3568 4358.3895        914.0327 575,124,842
81.10.100.75 2951.8349 3697.5900         745.7551 556,560,149
81.10.100.30 2770.9552 3807.6038         1036.6486 715,830,077
81.10.100.46 2698.5764 3987.1379         1288.5615 856,582,079
81.10.100.44 1982.1858 2381.7297         399.5439 296,992,631
81.10.100.71 1880.2033 2522.7183         642.5150 548,180,038
81.10.100.201 1300.2739 2040.0713        739.7974 411,031,858

Those are the top 10 BW users. All measurements are in MB (from SQL query),
darkstat data is in bytes. As you can see, the first line it's 1.9GB vs
1.4GB and so on ...

Any ideas how to track such errors ?
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to