Hi,

A while ago I used to run pmacct version 10.2 quite happily, but I have now
downloaded 11.4 and for the life of me cannot get mysql to work with it.

I have searched the archives and have seen all of the other mistakes that
people have made to get this error, but I can't seem to see why my efforts
are failing!

Below is my configure, make, make install, and then an attempt to run nfacct
where I get the unknown plugin error.

Help!

Thanks,
Jon


[EMAIL PROTECTED] pmacct-0.11.4]# ./configure --enable-mysql --enable-64bit
loading cache ./config.cache
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking OS... Linux
checking hardware... i686
checking for ranlib... (cached) ranlib
checking whether to enable debugging compiler options... no
checking for gmake... (cached) make
checking whether make sets ${MAKE}... (cached) yes
checking for __progname... yes
checking for extra flags needed to export symbols... --export-dynamic
checking for static inline... yes
checking endianess... little
checking unaligned accesses... ok
checking whether to disable L2 features... no
checking whether to enable IPv6 code... no
checking default locations for pcap.h... found in /usr/include
checking default locations for libpcap... no
checking for pcap_dispatch in -lpcap... (cached) yes
checking for pcap_setnonblock in -lpcap... (cached) yes
checking packet capture type... linux
checking whether to enable MySQL support... checking how to run the C
preprocessor... (cached) gcc -E
yes
checking default locations for libmysqlclient... found in /usr/lib/mysql
checking default locations for mysql.h... found in /usr/include/mysql
checking whether to enable PostgreSQL support... no
checking whether to enable SQLite3 support... no
checking whether to disable shared objects... no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for getopt.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for u_int64_t in sys/types.h... yes
checking for u_int32_t in sys/types.h... yes
checking for u_int16_t in sys/types.h... yes
checking for u_int8_t in sys/types.h... yes
checking for uint64_t in sys/types.h... no
checking for uint32_t in sys/types.h... no
checking for uint16_t in sys/types.h... no
checking for uint8_t in sys/types.h... no
checking whether to enable 64bit counters... yes
checking whether to enable multithreading in pmacctd... no
checking return type of signal handlers... (cached) void
checking for strlcpy... (cached) no
checking for vsnprintf... (cached) yes
checking for setproctitle... (cached) no

PLATFORM ..... : i686
OS ........... : Linux 2.6.20-ARCH (archer)
COMPILER ..... : gcc
CFLAGS ....... : -O2
LIBS ......... : -lpcap  -L/usr/lib/mysql -lmysqlclient -ldl -lm -lz
-lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin -Lsfprobe_plugin/
LDFLAGS ...... : -Wl,--export-dynamic

Now type 'make' to compile the source code.

Are you willing to get in touch with other pmacct users ?
Join the pmacct mailing-list by sending a message to
[EMAIL PROTECTED]


creating ./config.status
creating Makefile
creating src/Makefile
creating src/nfprobe_plugin/Makefile
creating src/sfprobe_plugin/Makefile
[EMAIL PROTECTED] pmacct-0.11.4]#

[EMAIL PROTECTED] pmacct-0.11.4]# make
Making all in src
make[1]: Entering directory `/home/jon/Desktop/pmacct-0.11.4/src'
Making all in nfprobe_plugin
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4
/src/nfprobe_plugin'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4
/src/nfprobe_plugin'
Making all in sfprobe_plugin
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4
/src/sfprobe_plugin'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4
/src/sfprobe_plugin'
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[1]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[1]: Entering directory `/home/jon/Desktop/pmacct-0.11.4'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4'

[EMAIL PROTECTED] pmacct-0.11.4]# make install
Making install in src
make[1]: Entering directory `/home/jon/Desktop/pmacct-0.11.4/src'
Making install in nfprobe_plugin
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4
/src/nfprobe_plugin'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4
/src/nfprobe_plugin'
Making install in sfprobe_plugin
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4
/src/sfprobe_plugin'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4
/src/sfprobe_plugin'
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[3]: Entering directory `/home/jon/Desktop/pmacct-0.11.4/src'
/bin/sh ../mkinstalldirs /usr/local/bin
 /bin/install -c  pmacct /usr/local/bin/pmacct
 /bin/install -c  pmmyplay /usr/local/bin/pmmyplay
/bin/sh ../mkinstalldirs /usr/local/sbin
 /bin/install -c  pmacctd /usr/local/sbin/pmacctd
 /bin/install -c  nfacctd /usr/local/sbin/nfacctd
 /bin/install -c  sfacctd /usr/local/sbin/sfacctd
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[1]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4/src'
make[1]: Entering directory `/home/jon/Desktop/pmacct-0.11.4'
make[2]: Entering directory `/home/jon/Desktop/pmacct-0.11.4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4'
make[1]: Leaving directory `/home/jon/Desktop/pmacct-0.11.4'

[EMAIL PROTECTED] pmacct-0.11.4]# /usr/local/sbin/nfacctd -f
/home/jon/Desktop/pmacct-0.11.4/examples/blah
ERROR ( /home/jon/Desktop/pmacct-0.11.4/examples/blah ): Unknown plugin
type: mysql. Ignoring.
WARN ( /home/jon/Desktop/pmacct-0.11.4/examples/blah ): No plugin has been
activated; defaulting to in-memory table.
INFO ( default/core ): waiting for data on UDP port '9996'
OK ( default/memory ): waiting for data on: '/tmp/collect.pipe'
INFO: connection lost to 'default-memory'; closing connection.
INFO: no more plugins active. Shutting down.
[EMAIL PROTECTED] pmacct-0.11.4]#



Here is my config file:-

daemonize: false
aggregate: src_as, dst_as
nfacctd_port: 9996
nfacctd_time_new: true
plugins: mysql
sql_db: pmacct
sql_table: acct_in
sql_table_version: 2
sql_passwd: passwd
sql_user: sqlusr
sql_refresh_time: 90
sql_history: 10m
sql_history_roundoff: mh
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to