Hi Thomas,

On Wed, Aug 30, 2006 at 04:44:58PM +0200, Thomas Stegbauer wrote:

> ./nfacctd -c src_host,dst_host -f /etc/pmacct/nfacctd.conf
>
> (i give -c on commandline, cause i dont know how to write it correctly
> to the logfile.)

Well, '-c' corresponds to 'aggregate' configuration directive. You
should write it down the same way, ie.:

aggregate: src_host, dst_host

> ...
> sql_refresh_time: 90
> ...
> sql_history: 10m
> ...

> what i don't understand, why information get updated? cause it should

Data gets updated basically because of the above settings; what you are
telling here is: purge data from the memory cache to the SQL database
each 90 secs; and enable historical accounting on a 10mins breakdown.

To avoid updates, the straightforward strategy (but definitely not the
only one) is to make sql_refresh_time and sql_history to match, ie.:

sql_dont_try_update: true
sql_refresh_time: 300
sql_history: 5m

> is there a way to check if data get lost? as this was possible with
> netflow2mysql?

What kind of checks were you able to do? Sequence number based? 

Cheers,
Paolo


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

Reply via email to