Date: Thu, 18 Jan 1996 10:20:25 -0600 (CST) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: ts@NetSurfer.PolyNet.Lviv.UA (Terletsky Slavik) Cc: hackers@FreeBSD.ORG Subject: Re: ACCOUNTING counters? Message-ID: <199601181620.KAA22499@brasil.moneng.mei.com> In-Reply-To: <199601180848.KAA07787@NetSurfer.PolyNet.Lviv.UA> from "Terletsky Slavik" at Jan 18, 96 10:48:01 am
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi, I want to ask someone on size of Accounting Counters > and why there is two counters per line? > Accounting chain entries: > 6028: 114 sA [HOST][0.0.0.0/0][sl0] > 21654: 120 sA [0.0.0.0/0][HOST][sl0] > -----? ---? > Thanx. >From one of my routers.. [....] 66682819: 169944 bA [0.0.0.0/0][0.0.0.0/0][204.95.219.1] ^^^^^^^^ ^^^^^^ bytes pkts. I'm not interested in precise utilization which is why I tally both directions under the same counter - I'm only interested in approximate utilization. Has anybody written up a nice accounting package? I've got a quick'n'dirty hack that consists of #! /bin/sh - PATH=/bin:/sbin:/usr/bin:/usr/local/bin; export PATH cd /var/netaccount ( ipfw -s -a -n l > `date +%H` ipfw z ) 2>&1 > /dev/null exit 0 run once an hour out of cron... it allows me to look back on the last 24 hours on a per-hour basis. I have a cheapie set of grep/awk/etc scripts that go through and generate GNUplot data (whooopie!). I monitor traffic to about 10 different major subnets here. I'd really like to keep much more detailed statistics with a much finer resolution (5 min?)... but the tools to do this in a practical way don't exist. I'd like, for example, to be able to pull up a graphic showing off-site NNTP traffic for the last 30 days, just by clicking a few buttons. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601181620.KAA22499>