Web Hosting Talk







View Full Version : Virtual IP BW monitoring


Wooly14
01-16-2004, 02:32 AM
I have a dedicated server that is not running any control panel such as cpanel etc. We have many virtual ips through one nic though and are in need of monitoring bw per ip. Any instructions on how to accomplish this task would be greatly appeciated. I have searched and searched and gotten pointed in a few directions, but never a straight answer of boom... here is how to do it.
Any help would be apprecaited.

demonmoo
01-16-2004, 09:40 AM
If you could try asking for MRTG graphs for each IP from your DC.
Although if your using linux you can do something with IP accounting (if you are using linux I will go dig out my book on IP accounting) .

kalash
01-16-2004, 09:45 AM
is there any linux based bandwidth soft that allows for users to be limited/cut of when over limit? (the bandwidth exceeded page for instance)
I don't have a cp that gives this function either.

rghf
01-16-2004, 09:55 AM
OK what you might want to look at is using iptables to count traffic to/from and IP and then have a script that runs to see if IP x is over bandwidth. If so put in an automatic iptables rules to block traffic

Rgds

Rus

kalash
01-16-2004, 10:31 AM
I think a more automated solution is what we're looking for. Does this exsist name-based too? IPtables is good option but you have to know it, and you can't screw around too much with it.

Wooly14
01-17-2004, 09:37 PM
Originally posted by jvds
OK what you might want to look at is using iptables to count traffic to/from and IP and then have a script that runs to see if IP x is over bandwidth. If so put in an automatic iptables rules to block traffic

Rgds

Rus

From everyone I have spoken to, IP chains are the way to go....after that though, is it graphable? And also I honestly have never worked with IP chains :(

demonmoo
01-17-2004, 10:07 PM
Originally posted by Wooly14
From everyone I have spoken to, IP chains are the way to go....after that though, is it graphable? And also I honestly have never worked with IP chains :(
Now might be a good time to higher a server admin ....
You can really screw stuff up working with IP chains if you dont know what you are doing.

sethgarnar
01-17-2004, 10:40 PM
if you really want control get a packet shapper. I got a packeteer 2000 from ebay for 600 bucks and its the best investment I have ever made. You can limit bandwidth by IP, do graphs bases on useage, and it will also provide you with total bandwidth per month. Using the PS combined with snmp + perl you can do auto shut off of IP's that go over lmit.

Not the cheap way to go, but it will work.

Wooly14
01-18-2004, 12:12 AM
I agree that things can get messed up easily, that is why I am testing it on a non production machine,but I do apprecaite the advice

othellotech
01-18-2004, 12:53 PM
anyone got an mrtg "hack" taht will calculate transfer based on average bandwidth utilisation ?

we charge for *real* bandwidth e.g. 1Mb/s not data-transfer (100Gb or whatever) but interetsed in monitorring b/width on 95%ile against average utilised transfer ...

Curto
01-18-2004, 04:27 PM
I use ntop (http://www.ntop.org/)... it gets some awesome statistics but it can take some work to get the right command line switches :)