Subject: RE: ipf counting and rrdtool
To: NetBSD User's Discussion List <netbsd-users@NetBSD.ORG>
From: Gwilym Evans <meatgroup@iprimus.com.au>
List: netbsd-users
Date: 07/12/2001 15:56:47
> > For my purposes ipf/ipfstat allows me to manage rules such as the ones
> > above. It allows me to figure the total downloads and uploads and also
> > allows me to figure out how much each pc is using. The cost of this net
> > connection is shared so in the rare that case we get charged
> for using over
> > the 3gb cap, this extra info will come in handy.
>
> I didn't realize at first that you were splitting the usage out like
> that!
>
> Which begs the question even more -- why don't you think ipacct will
> work for you.  It sounds like it's the very best match for your
> requirements.

Well mainly because I couldn't get it to work properly. I found it resetting
the usage stats it keeps occasionally, couldn't pin down why. It wasn't
starting a new log, just resetting em to 0. It mainly happened on machine
reset or link down (my old box is running a little unstable). But I was
updating it every 5 mins via cron hence I couldn't figure out why it was
resetting.

Another thing is it didn't parse the ipfstat output properly. I put
ppp0|ppp0|internet in ipnames.db but it wouldn't find it in the ipfstat line
for 'count in/out on ppp0 from any to any' etc.

Like I said, I'm pretty much a beginner and netbsd/unix stuff in general so
I wouldn't be surprised if I'd configured something wrong.

I'll probably end up writing an ipacct-like pl script anyway for
hourly/daily/monthly totals and averages from ipfstat.

-Gwilym