Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know how much bandwidth is being used on my server. Not HTTP bandwidth, but all protocols. Basically iftop data over time continuously logged. Then I could write a simple python script to process it and provide aggregate info.

share|improve this question
Have you tried ntop? – llua Nov 15 '12 at 13:13
Take a look at vnstat. – jw013 Nov 15 '12 at 14:34
That looks promising, trying now – Ronaldo Nascimento Nov 15 '12 at 20:07
Are you already logging with sysstat's sar? You might have everything you need already. – Jodie C Nov 19 '12 at 23:07

instead of writing it all new,
you could use tools like cacti.
With it you can analyze your network.

share|improve this answer

I use ntop for things like this. There are a few ways you can store and generate reports with it.

share|improve this answer
I will look into this, I think I avoided ntop because it installed too much stuff. – Ronaldo Nascimento Nov 15 '12 at 20:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.