Hi,
I'm currently experimenting with pmacct and I think I have found a good
configuration that works but there is one problem:
In order to account all local hosts I aggregate like this:
aggregate[in]: dst_host
aggregate[out]: src_host
I'm testing this on my local net at home and my networks file only contains
the net 192.168.2.0/24 and the net only contains my desktop system and the
DSL router. As a result I only expected to see traffic from 192.168.2.118
-> 0.0.0.0 and 0.0.0.0 -> 192.168.2.118 but I'm also seeing traffic
aggregated as 0.0.0.0 -> 0.0.0.0.
After looking at the counters it became clear that this was basically the
traffic flowing in the "other" direction relative to the aggregation
instance ("in" and "out").
All of this is fine but since accounting this traffic isn't really useful I
am wondering if there is a way to prevent this from being written to the
database? As I understand it this is what the aggregate_filter directive is
for but as I've read in this thread this directive has a significant
negative performance impact:
http://www.mail-archive.com/pmacct-discussion%40pmacct.net/msg01984.html
Is there a better way to filter this? Also I'm wondering if it would be
useful to have a directive that would allow to discard packet early that
basically result in a NULL record. By that I mean entries where all the
aggregated fields end up being zero. There may be cases where you still
want to have these naked counters but in my trivial accounting case I'm
only interested in traffic incoming where dst_host is actually useful
information rather than 0.0.0.0.
Regards,
Dennis
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists