Hi K.L, pmacct 0.11.x can work as a NetFlow probe no problems. You can read the "Quickstart guide to setup a NetFlow agent/probe" section of the EXAMPLES document (which is included in the distribution tarball) to get started. You will need two distinct pmacct processes (they could reside on the same box; performances being the only potential issue on larger scales):
a) a pmacctd with a nfprobe plugin (pointing the IP address and port where the nfacctd daemon is listening. b) a nfacctd with a pgsql plugin which will store the aggregates in the PostgreSQL database. Cheers, Paolo On Thu, Jun 28, 2007 at 12:24:57PM +0200, K L wrote: > On 6/28/07, Paolo Lucente <[EMAIL PROTECTED]> wrote: > >Hi K.L., > > > >which method are you collecting your traffic (ie. libpcap, NetFlow, > >sFlow)? I see your point and i think it could make sense collecting > >NetFlow datagrams - and a similar case, ie. each aggregate is written > >down to the database independly, is handled by the nfacctd_sql_log > >directive. Under normal operations, sql_history doesn't scale below > >the minutes. Hope this helps. > > > >Cheers, > >Paolo > > > > Thanks for your answer Paolo. I'm using libcap to collect the traffic. > In the configuration you suggest, I suppose I need a netflow probe > (different from pmacct) running on my machine, right ? Or can I use > pmacct as a netflow probe and at the same time write the aggregates to > the DB ? > > Regards, > K.L. > > > > >On Wed, Jun 27, 2007 at 12:07:50PM +0200, K L wrote: > >> Hello, > >> > >> I want to configure pmacct to log accounting informations to a > >> database (PostgreSQL) every second. I mean, creating one line in the > >> table for every active aggregate, each second (insert only, never > >> update). > >> > >> Is that possible ? I tried with the following configuration file > >> parameters without success : > >> > >> sql_refresh_time: 1 > >> sql_dont_try_update: true > >> > >> Regards, > >> K.L. _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
