Hi Paolo and all,

here comes the next one. ;-)

I'm using the memory table plugin for port statistics. To regularily
extract that information, I'm doing:

/usr/local/bin/pmacct -c src_port -N "80;21;20;22;53;25;443;*" -r -p
/tmp/pmacct_dport.pipe

As I observed, the counter reset (-r) is done for each of the ports in the
list. As long they are exclusive, there is no problem, it's important to
know, though, that the * refers to the rest of the traffic, and not the
total sum.

But to make sure, that no packets are counted in the wrong bin, the memory
table has to be locked as long as the port list is processed. Otherwise
packets that arrive during processing with, for example, port 80, would
also match the * and got reset, too. Is this handled correctly?


Cheers,

Sven

-- 
Sven Anderson
Institute for Informatics - http://www.ifi.informatik.uni-goettingen.de
Georg-August-Universitaet Goettingen
Lotzestr. 16-18, 37083 Goettingen, Germany

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to