Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a program or a service I can run that will monitor my total bandwidth use over a period of a time?
My problem is that I rent a dedicated server, and I have a limited amount of total bandwidth I'm allowed to use per month. The company doesn't provide me with information on how much bandwidth I'm using in a control panel, so want to find a way to monitor it myself. Mainly because if I go over the allowed bandwidth amount they'll slap me with a hefty fee, and lately I know I've been coming pretty close to using it all.
I use gkrellm. It's not the most fancy looking applet, but it can monitor pretty much anything. I've never tried, but it's probably possible to get it to shut down your network connection when you reach a certain limit.
Although this is not ideal, I have found it to work:
If you run ifconfig, you will notice that it gives you the amount of data transfered (in two parts, RX and TX, for received data and transmitted data, respectively) since the last reboot. If you were to write this value down at the end of every month, and subtract the current value from the recorded value, it would tell you the amount of data transfered during that month.
So you want to monitor the server from another computer? I think perhaps gkrellm can do that to. Or you could try ntop. There everything is displayed and configured through a web interface, although it might be a bit bloated for your needs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.