You are not logged in.

#1 2005-01-28 02:52:58

chane
Member
Registered: 2003-12-02
Posts: 93

Bandwidth Monitor

I am running arch in a data center and got a call about excessive bandwidth being consumed by my server today (actually over the last 3 weeks).  I have done a bit of research to try and identify an application(s) which I can use to monitor what is actually going out over my NIC.

We serve large files to customers (about 5-10MB so maybe not that large) and from what I gather from my web logs we serve around 30GB a week.  The ISP is seeing around 120GB/week.  Obviously there is a large difference.  I am looking for a tool that can monitor the bandwidth usage of my machine (much better than the apache logs - which is only for http traffic anyway) so that I can measure/identitfy the total bandwidth usage.

We've also thought about whether we have been hacked and are pretty sure (nothing is 100%) that we have not been comprimised.  We run only http / ssh /smtp and nothing else for open ports.  We downloaded the chkrootkit and that came out ok.  Sometime in the next weeks we will "rebuild" the server and install tripwire (although I didn't see an arch package in the repos).

The isp is running more in depth traffic monitoring at the switch; I just wanted something that I could use to look at the traffic on my machine. 

Before I dive into a specific application (I'm thinking of using ntop as a quick monitoring tool), I was wondering what other people thought about this and other tools.

Any advice or direction pointing would be much appreciated.

Chris....

Offline

#2 2005-01-28 04:18:50

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: Bandwidth Monitor

rddtool
ntop (not sure if that is how it is spelled--basically it is network top)
mrtg

I have used mrtg before, with snmp. Works fine.
rddtool apparently can generate nicer graphs, and is more flexible.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-01-29 17:17:50

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Bandwidth Monitor

I run vnstat on my router and have it update the figures every 5 minutes. I don't know if it's very accurate since I get 3 different numbers for my interfaces:

        rx      /     tx      /    total    /  estimated
 eth0:
     yesterday    832.96 MB  /   2,325 MB  /   3,158 MB
         today    864.36 MB  /   1,363 MB  /   2,227 MB  /   2,928 MB

 eth1:
     yesterday     2,371 MB  /  862.99 MB  /   3,234 MB
         today     1,396 MB  /  885.23 MB  /   2,282 MB  /   2,998 MB

 ppp0:
     yesterday     3,011 MB  /   3,724 MB  /   6,735 MB
         today     1,311 MB  /  787.56 MB  /   2,099 MB  /   2,758 MB

Unfortunately (more like OMFG YES IT'S GOD'S GIFT!!!!) my ISP's traffic monitor is totally screwed up so I have no way of comparing these numbers.

I don't think it eats up a lot of resources tho, so you could run it together with other apps.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#4 2005-01-29 23:51:35

Mith
Member
From: out there
Registered: 2004-10-05
Posts: 163

Re: Bandwidth Monitor

I alsco recomment vnstat

http://humdi.net/vnstat/

easy to use and since it runs in the background it really is no pain  :twisted:


ArchLinux (x86_64) w/ kdemod

Offline

#5 2005-01-30 00:33:32

chane
Member
Registered: 2003-12-02
Posts: 93

Re: Bandwidth Monitor

Thanks for the pointers.  I used both vnstat and ntop and they were both very helpful.

Now that we have resolved the consumption issue, my next step is to find an application that can monitor the bandwidth usage and issue warning emails if we exceed user defined thresholds.

Any pointers on such a monitoring app?

Thanks in advance again,
Chris....

Offline

#6 2005-02-04 22:02:38

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 547

Re: Bandwidth Monitor

Don't know if this is of use or whether its overkill:

http://www.nagios.org/about.php

Offline

#7 2005-02-04 22:44:53

chane
Member
Registered: 2003-12-02
Posts: 93

Re: Bandwidth Monitor

Yup - I've heard of it and am probably going to build it next week.

That is unless someone has a package build they would like to share.

Chris....

Offline

Board footer

Powered by FluxBB