Hi Daniel,

your config is missing the imt_path directive for each of the
plugins - ie. add to your config the following lines:

imt_path[outbound]: /tmp/outbound.pipe
imt_path[inbound]: /tmp/inbound.pipe

You will be able to query each plugin's memory table with the
following commandline:

pmacct -s -p /tmp/outbound.pipe
pmacct -s -p /tmp/inbound.pipe

The memory table in your email appears to be just the "inbound"
one - which accounts traffic per destination IP address. You're
missing the "oubound" one in which you'll find the 10M flow
accounted to the host which is originating it (10.2.1.214).

Cheers,
Paolo

On Mon, Dec 03, 2007 at 03:05:41PM +0100, Daniel Netzer wrote:
> Hi!
> 
> I just found pmacct and tested a little bit with it. Sounds like a
> perfect match for my needs. But currently I got stuck in configuring the
> following solution: I need to account all flows per IP as sent and
> received traffic (per month). I do not know how to use the keys to
> achieve this. I tested by transferring 10 MB:
> 
> [EMAIL PROTECTED] scp 10M [EMAIL PROTECTED]:~
> 
> and measured:
> 
> [EMAIL PROTECTED] pmacct -s
> DST_IP           PACKETS     BYTES
> 10.2.1.4         7612        10819117
> 10.2.1.214       3967        214888
> 10.2.1.2         2           82
> 
> but I expected/need to see 10M of outgoing on 10.2.1214 and 10M of
> incoming on 10.2.1.4 - so how can I configure this? My actual
> configuration is:
> 
> ----8<--------------------------------------------------------
> daemonize: true
> pidfile: /var/run/pmacctd.pid
> syslog: daemon
> interface: eth0
> aggregate[inbound]: dst_host
> aggregate[outbound]: src_host
> !I only want to "account" on my LAN
> aggregate_filter[inbound]: dst net 10.2.0.0/16 
> aggregate_filter[outbound]: src net 10.2.0.0/16
> !Later use a db
> plugins: memory[inbound], memory[outbound]
> ----8<--------------------------------------------------------
> 
> And how to get totals over a certain period of time for example a month?
> Use the db to calculate?
> 
> Thank you very much for your help!
> 
> Best regards
> Daniel

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

Reply via email to