I am having some strange problems with pmacctd that I have not been able to 
figure out. I have the following config file

interface: tunnel0
interface_wait: true
debug: true
daemonize: false
aggregate[dbin]: proto,src_host,dst_host,src_port,dst_port,flows
aggregate[dbout]: proto,src_host,dst_host,src_port,dst_port,flows
aggregate_filter[dbin]: dst net 10.11.0.0/16
aggregate_filter[dbout]: src net 10.11.0.0/16
plugins: pgsql[dbin], pgsql[dbout]
sql_table[dbin]: acctin
sql_table[dbout]: acctout
sql_db: database
sql_table_version: 4
sql_passwd: password
sql_user: pmacct
sql_host: localhost
sql_refresh_time: 1
sql_history: 1m
sql_history_roundoff: mh


When I launch pmacctd on SUSE 10.0 on x86_64 it does the following (but never 
connects to or writes to the database)

# pmacctd -f pmacctd.conf -d
INFO ( dbin/pgsql ): 131070 bytes are available to address shared memory 
segment; buffer size is 120 bytes.
INFO ( dbin/pgsql ): Trying to allocate a shared memory segment of 1965960 
bytes.
INFO ( dbout/pgsql ): 131070 bytes are available to address shared memory 
segment; buffer size is 120 bytes.
INFO ( dbout/pgsql ): Trying to allocate a shared memory segment of 1965960 
bytes.
OK ( default/core ): link type is: 113


If I use the same config file on SUSE 10.0 on x86 it works fine (the only 
difference being I use "interface: eth0" on the 32 bit box).

Both machines are running pmacct-0.10.0 from rpms which I built myself. 
(initial RPM is built on the 32bit machine and then the resulting source rpm 
is rebuilt on the 64bit machine).

Now, if instead I use the following config on the 64bit machine everything 
works as it should:

interface: tunnel0
interface_wait: true
debug: true
daemonize: false
aggregate[db]: proto,src_host,dst_host,src_port,dst_port,flows
plugins: pgsql[db]
sql_table[db]: acct
sql_db: database
sql_table_version: 4
sql_passwd: password
sql_user: pmacct
sql_host: localhost
sql_refresh_time: 1
sql_history: 1m
sql_history_roundoff: mh


If i add extra postgresql plugins they don't work... memory plugins work 
fine..

Any ideas?

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

Attachment: pgp27a5uUaQVN.pgp
Description: PGP signature

Reply via email to