I hope you appreciate this one, because I really scraped to find this and get it working.
That’s net-acct, or as some refer to it, nacctd. And rather than bore you with my travails, I’ll just cue you into the important points.
- The home page is apparently gone. The Freecode page is up, but has barely any information. Their link to the home page just sits and spins.
- What I learned, I got out of the Ubuntu man pages from Dapper Drake.
- It’s in Debian though, so you can yank the source code if you want to build it outside the Debian distro chain.
- I didn’t see this in Arch or AUR.
nacctdis the actual executable, even if it’s in your distro as “net-acct.”
- There are only three command-line flags. Everything else appears to be managed in the /etc/naccttab configuration file. I found no /etc/nacctd.conf, regardless of what the man page says.
- Once configured, nacctd just dumps into a log file at /var/log/net-acct/net-acct.log. Page through that to see what you’re after.
- Be prepared to do some number crunching; that log has a reasonable amount of data, but isn’t arranged or explained much. I don’t see totals or averages or anything other than raw requests.
- I think that’s all you can get out of this. Let me know if I overlooked something.
Name confusion and all other complaints aside, I suppose net-acct (or is it nacctd?) does a reasonable job dumping network transfer data.
Now, whether the final product is in a usable form, or if the means is a bit obtuse, you can decide those points. 😐