Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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
1  
Are you already logging with sysstat's sar? You might have everything you need already. –  JodieC Nov 19 '12 at 23:07

2 Answers 2

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

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

share|improve this answer

Your Answer

 
discard

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.