JonnyQuags
08-28-2001, 08:50 PM
Any one know of a good bandwidth tracker - not bandmin either. I use MRTG right now, but I am looking for something that could be installed on a server and monitor the per GB used / month.
Free would be best :D
cperciva
08-28-2001, 08:54 PM
Originally posted by Tcoy
I use MRTG right now, but I am looking for something that could be installed on a server and monitor the per GB used / month.
And your point is???
CagedTornado
08-28-2001, 10:37 PM
You can track bandwidth per IP using ipchains accounting...
/sbin/ipchains -N [vsname]
/sbin/ipchains -I input -j [vsname]
/sbin/ipchains -I output -j [vsname]
/sbin/ipchains -A [vsname] -s [vsip]/255.255.255.255 -p all
/sbin/ipchains -A [vsname] -d [vsip]/255.255.255.255 -p all
Replacing [vsname] with the name of a virtual server (or any other name) and [vsip] with its IP address.
"/sbin/ipchains -L [vsname] -v" will now give you info on bytes in/out since the chain was created (you can output this to a script or whatever.)
"/sbin/ipchains -Z [vsname]" will reset the counter to zero.
Everytime ipchains is shutdown (e.g. rebooting host server) the info will be lost so you better make sure your scripts account for this! Alternatively, check this (http://va.samba.org/netfilter/ipchains/HOWTO-2.html#permanent)out.
Has anyone tried out IPmeter (http://www.ipmeter.com) before? Quite tempted to give it a try but would like to hear some comments about it first :)
mkaufman
09-05-2001, 05:35 PM
I will give it a try right now - on RedHat 7.1 (btw..off topic but redhat just sent me a really cool hat ;))
mkaufman
09-05-2001, 05:39 PM
Ah..I just read that it does not work too good with Linux (only free/open bsd..) and it can take up 1-4 gb :)
maybe later..