A mai incercat cineva sa foloseasca netacct-mysql pe o masina linux cu kernel 2.4.20 ? Daca da, poate ma lamureste si pe mine dc nu vrea softu' asta sa contorizeze corect numarul de MB in/out ! Tot ce imi da in momentul de fata sunt niste rezultate muuuult mai mici decit cele reale. Am stat si am facut trafic pina mi-a iesit pe urechi...50 mb, apoi 100 apoi 5mb dar netacctd inregistreaza citiva mb, 2,3,4 ceva de genu asta. Am testat lucrul asta si pe un ruter cu ip-uri false si SNAT cit si pe un server separat care iese numai prin squid in ext. Same story :( Poate imi scapa totusi ceva..... Am citit totusi ca pentru kernel 2.4 e mai bine de folosit netacct-ulog dar totusi nu scrie nicaieri ca nu ar merge deloc pe 2.4 deci...... Configuratia pe care o folosesc:
sniff 0 database mysql mysql_user acct mysql_password xxxxx mysql_host 192.168.254.1 mysql_port 3306 mysql_database netacct pidfile /var/run/nacctd.pid compactnet 192.168.254.0 255.255.255.0 flush 330 fdelay 70 device eth1 device eth2 ignorenet 127.0.0.0 255.0.0.0 debug 5 debugfile /tmp/nacctd.debug headers tr 40 38 headers lo 14 12 headers eth 14 12 Apoi /tmp/nacctd.debug arata cam asa: ......... 28/06 14:18:23 [STATE] analis for src 192.168.254.125, dst 192.168.254.150, src_flg 128/06 14:18:23 [STATE] , peer_flg 0 28/06 14:18:23 [STATE] analis for src 192.168.254.150, dst 192.168.254.125, src_flg 128/06 14:18:23 [STATE] , peer_flg 0 28/06 14:18:23 [STATE] analis for src 192.168.254.150, dst 192.168.254.125, src_flg 128/06 14:18:23 [STATE] , peer_flg 0 28/06 14:18:23 [STATE] analis for src 192.168.254.125, dst 192.168.254.150, src_flg 128/06 14:18:23 [STATE] , peer_flg 0 28/06 19:17:07 [STATE] entering daemon_stop 28/06 19:17:07 [STATE] write_log called 28/06 19:17:07 [STATE] lck = 1 28/06 19:17:07 [STATE] dump child: synchronized with parent 28/06 19:17:07 [STATE] * dump process 8448 forked 28/06 19:17:07 [STATE] parent: synchronized with dump child ------ /var/log/messages: Jun 28 19:49:03 compaq nacctd: net accounting daemon started Jun 28 19:49:03 compaq netacctd: nacctd startup succeeded Jun 28 19:49:03 compaq nacctd: net accounting daemon forked
