Hi Jamie,
 
Thank you for your quick replay. I'm using Fedora Core 4.  Lets take alook at my existing configuration;
 
WAN <---> [eth0-linuxbox-eth1] <---------> 192.168.1.1
 
What I want to do here is to compare traffic from and to 192.168.1.1 on both interface.
 
Here is my pmacctd.conf
 
! pmacctd configuration example
!
! Did you know CONFIG-KEYS contains the detailed list of all configuration keys
! supported by 'nfacctd' and 'pmacctd' ?
!
! debug: true
 
syslog:daemon
interface: eth0,eth1
daemonize: true
promisc: true
!plugins: memory
!aggregate: src_host,dst_host
 
sql_host:192.168.2.1
sql_user:pmacct
sql_passwd:pmacctpassword
sql_db:pmacctdb
sql_table_version:1
 
aggregate[inbound1]: dst_host
aggregate[outbound1]: src_host
aggregate_filter[inbound1]: dst host 192.168.1.1/32
aggregate_filter[outbound1]: src host 192.168.1.1/32
aggregate[inbound2]: dst_host
aggregate[outbound2]: src_host
aggregate_filter[inbound2]: dst host 192.168.1.1/32
aggregate_filter[outbound2]: src host 192.168.1.1/32
 
plugins: mysql[inbound1], mysql[outbound1],mysql[inbound2], mysql[outbound2]
plugin_pipe_size:1024000
plugin_buffer_size:8192
 
sql_table[inbound1]: acct_ineth0
sql_table[outbound1]: acct_outeth0
sql_table[inbound2]: acct_ineth1
sql_table[outbound2]: acct_outeth1
 
!sql_refresh_time:300
sql_history:5m
sql_history_roundoff: m
 
imt_buckets: 65537
imt_mem_pools_size: 1024000
 
My configuration not warking at all,  would you please let me know the right configuration for this purpose?
 
Thank you.
 
regards,
Zul 

Jamie Wilkinson <[EMAIL PROTECTED]> wrote:
This one time, at band camp, zulkarnain wrote:
>Hi all,
>
> I searched the "pmacct-discussion Archives" for configuring pmacct to monitor traffic in two interface, unfortunately no success.
>
> Probably somebody can point me in the right direction on how to setup pmacct to monitor traffic in two interface and store the data to mysql tables plugin.

You need to run a separate pmacct on each interface.

The debian package is set up to run multiple instances by naming the
configuration files after the interfaces you want to run on, if you choose
to.

If you're not using Debian, then I suggest you do something similar and
modify your startup scripts to start two instances with different config
files.


Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.


Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to