Frequently Asked Questions about netacct-mysql
----------------------------------------------

Please read this before ask questions :)

Q: When I run 'make' on *BSD I've got error. How can I fix it?
A: Use gmake (gnu make) instead of BSD make

Q: When I start nacctd there is message "can't connect through socket 
   /tmp/mysql.sock"
A: First of all make sure that you don't have several versions of mysql
   installed on some different dirs .. ie. mysql i /usr, in /usr/local,
   /usr/local/mysql .. if you have such install make sure that nacctd is
   linked with current running mysql server. You can see this using command:
   ldd `which nacctd`. Output is like this:
    libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x00176000)
    libc.so.6 => /lib/libc.so.6 (0x001ab000)
    ....
   and if you have compiled mysql and installed in /usr/local/mysql and 
   current running version is from this dir most probably you'll get error
   so make sure to remove all other version or to configure and reompile with
   current running version of mysql server (./configure --with-mysql=/usr/local/
   mysql)

Q: Which netstat version should I use?
A: For 0.73 release use latest of 1.x version of netstat. Otherwise use latest
   version of netacct with latest version of netstat from 3.x

Q: Promiscuous mode not set?! I can't see it with ifconfig:

A: Strange problem when using pcap_open_live() to set device in promicuous
   mode. When nacctd is started and type 'ifconfig eth0' there is no PROMISC
   in eth0. If I replace pcap_open_live() with pcap_open_old() everything
   seems ok. I've searched the mailing list and this is what I've found:
 
   [ tcpdump-workers@tcpdump.org ]
 
   > This is a problem with ifconfig in net-tools package I believe, not
   > tcpdump, as the kernel log shows:
   >
   > device eth0 entered promiscuous mode
   > device eth0 left promiscuous mode
 
   Just to make things clear:
 
   the >= 2.2 kernels have a new way of setting promiscous mode via
   setsockopt(). We use this sicne a few month in pcap. It has the advantage
   of thread-safeness. The usage of ioctl() is depreciated. ifconfig doesnt
   show the flag, b/c kernel filters it out. Dont know why.
 
   Administrators should note that they dont see sniffers anymore on >= 2.2
   kernels!
 
   Sebastian

   [ msg source http://www.tcpdump.org/lists/workers/2001/01/msg00207.html ]

   So I think that everything is ok, just you can't see PROMISC flag with
   ifconfig.


