netacctd-mysql installieren

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
baldy
Posts: 8
Joined: 2007-02-19 22:06

netacctd-mysql installieren

Post by baldy » 2007-10-02 20:00

Hallo ihr alle,

ich habe eben versucht netacced-mysql zu installieren. Ich habe es soweit alles per hand compiled und habe auch keine Fehler bekommen.

Wenn ich nun nacctd starten woll bekomme ich folgende Fehler mim log:


ct 2 21:50:24 77-37-0-144 nacctd: net accounting daemon started
Oct 2 21:50:24 77-37-0-144 nacctd: config: sniff set to 1
Oct 2 21:50:24 77-37-0-144 nacctd: config file: unknown keyword in line 6, Ignoring ...
Oct 2 21:50:24 77-37-0-144 nacctd: config file: unknown keyword in line 8, Ignoring ...
Oct 2 21:50:24 77-37-0-144 nacctd: config file: unknown keyword in line 10, Ignoring ...
Oct 2 21:50:24 77-37-0-144 nacctd: config file: unknown keyword in line 12, Ignoring ...
Oct 2 21:50:24 77-37-0-144 nacctd: config file: unknown keyword in line 13, Ignoring ...
Oct 2 21:50:24 77-37-0-144 nacctd: config: pid_file set to /var/run/nacctd.pid
Oct 2 21:50:24 77-37-0-144 nacctd: config: set flushing to 120
Oct 2 21:50:24 77-37-0-144 nacctd: config: set delay on error to 2
Oct 2 21:50:24 77-37-0-144 nacctd: config: set fdelay to 60
Oct 2 21:50:24 77-37-0-144 nacctd: config: added notdevice eth0
Oct 2 21:50:24 77-37-0-144 nacctd: config: added listen device eth1
Oct 2 21:50:24 77-37-0-144 nacctd: config: debug level 0
Oct 2 21:50:24 77-37-0-144 nacctd: config: set debug to /tmp/nacctd.debug
Oct 2 21:50:24 77-37-0-144 nacctd: FIXME: add header info and use it (dont panic this is just msg-reminder
Oct 2 21:50:24 77-37-0-144 nacctd: net accounting daemon forked
Oct 2 21:50:24 77-37-0-144 kernel: device eth1 entered promiscuous mode
Oct 2 21:50:24 77-37-0-144 nacctd: unimplememented database type
Oct 2 21:50:24 77-37-0-144 nacctd: Error starting writting thread
Oct 2 21:50:24 77-37-0-144 kernel: device eth1 left promiscuous mode


Zeile 6 bis 13 sind die mysql settings. Ich habe ganz sicher netacctd mit mysql support compiled.

Hat jemand noch eine Idee was das sein könnte?

Grüsse

baldy

captaincrunch
Userprojekt
Userprojekt
Posts: 7225
Joined: 2002-10-09 14:30
Location: Dorsten

Re: netacctd-mysql installieren

Post by captaincrunch » 2007-10-02 21:49

Zeig uns doch einfach mal die Config?!?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc

baldy
Posts: 8
Joined: 2007-02-19 22:06

Re: netacctd-mysql installieren

Post by baldy » 2007-10-02 22:32

Ja natürlich ;)
sniff 1 # 0 = not setting PROMISC mode
# 1 = put interface in PROMISC mode

database mysql # must be mysql for now

mysql_user acct # usually you don't need to change this

mysql_pass # change this to your password

mysql_host localhost # sometimes you need to change this to
# 127.0.0.1 instead of localhost
mysql_port 0 # mysql port, 0 if you are using a socket
mysql_database netacct # usually you don't need to change this

pidfile /var/run/nacctd.pid # set pid file
# tis will help if you want to
# two (or more) nacctd on same machine

compactnet 192.168.1.0 255.255.255.0

# log traffic only for these networks
# all other packets are NOT logged

#ournet 127.0.0.0 255.255.255.0

# Ours IP nets for diferenciation of
# peering traffic types

# log traffic between 2 or more regional ISP-s

flush 120 # flush every 5 minutes
# this gives the interval in seconds
# when the accumulated data is flushed
# to the output file

errdelay 2
fdelay 60

notdev eth0 # Dont log entries for this device
# Use this on routers that you dont
# log forwarded packets twice.

device eth1 # device to put into promiscous mode
# you can specify as many as you want
# and you don't have to specify one
# (e.g. if this runs on your router)
#
# if you plan to use it on some *BSD
# system put here apropriate device
# i.e. - device ep0

# iflimit eth0 # on machines with multiple interfaces,
# log only packets on this interface
# mutually exclusive with hostlimit

# ignoremask 255.255.255.0 # Ignore traffic on same class C net
# This means traffic that is on
# your local LAN is not counted.
# This is useful for NFS etc.
# Not giving this option causes everything
# to be counted.
# This can degrade performance seriously!

ignorenet 127.0.0.0 255.0.0.0 # ignore loopback net
# You can define as many ignorenets as
# you want. Ignoring a net with
# ignorenet is not as efficient as
# ignoremask. Thus you should exclude
# your local network with ignoremask,
# not with ignorenet (although this is
# is possible).

debug 0 # set debugging level
debugfile /tmp/nacctd.debug # where to put debugging info


Das ist die config so wie sie auch als example geliefert wird.

grüsse