Bandwidth monitoring


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Bandwidth monitoring
# 1  
Old 07-18-2006
Bug Bandwidth monitoring

Hi Gurus,

Need to have a way to monitor Bandwidth utilization on Linux servers, running squid .

Have worked on 3rd party monitoring tools like Bandwidth d, Nagios etc.
But we are working to find out a way to monitor this through Sitescope, for which we need to find a file [if any] where the Bandwidth utlization can be logged.

As per my expertise we can do this through iptables. But not very sure how to have a log of the Bandwidth utilization which is required to get this monitored through Sitescope.

Pls. forward me to any of the available threads, Since I could not find anything relevant in my search.

An early response is very much apreciated...

Thanx.. Smilie
# 2  
Old 07-18-2006
The best way is to use pcap library and write small programm (look at http://www.tcpdump.org/pcap.htm) that monitors all packets which have HTTP header with url of the target site (you can skip parsing all protocols, just look into packet's header for url of the site). But this will not work for SSL Smilie

Also try tc (traffic control from iproute2 package). I dont know whether this is appropriate for you but with tc you can create different filters (e.g. according to IP adresses, TCP ports, etc.) and get statistics for that filters, i.e. something similar to

$ tc -s qdisc
qdisc htb 1: dev eth0 r2q 10 default 1 direct_packets_stat 0
Sent 21655 bytes 62 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0


A realize that all approaches above are very 'low-level', then just search on sf.net Smilie
# 3  
Old 07-19-2006
iptraf, bwmon, ifstat can be useful if your system is only running Squid. Else to find out protocol/application specific b/w usage there is MUST to write your own small program/script using pcap,tc,iptables
# 4  
Old 07-21-2006
Bug

Thanks for the info. Guys, On Googling came to know that we can implement through iptables. But was not pretty sure as how to achieve this.
But I wud like to use iptables facility to implement this, Since we want to do this using only the existing features [and no 3rd party ] on RHEL AS 3 and 4.

Can some one guide me how wud I do this.

Thank you... Smilie
# 5  
Old 07-21-2006
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Bandwidth monitoring using python

I wish to develop an application to monitor the network traffic of my system. I wish to know which computer networked to me is using most of the bandwidth. I know the basics of python but do not know how to start the work.. please suggest some good methods to follow. (7 Replies)
Discussion started by: coderhs
7 Replies

2. IP Networking

Bandwidth montor

Hi all I have been running iptraf on a linux box for a few months monitoring bandwidth utilization realtime from mac address with port mirroring. Now I want to graph these bandwidth utilization. Is MRTG the right software? Any ideas? (4 Replies)
Discussion started by: palm101
4 Replies

3. IP Networking

bandwidth

Hi, 1-What is bandewidth ? 2-How to calculate ? 3-How to measure ? Any free software to measure it ? Many thanks. (4 Replies)
Discussion started by: big123456
4 Replies

4. UNIX for Dummies Questions & Answers

Bandwidth Monitoring.

Hi, I'm looking for some way to bring up in a shell window a realtime (or something that updates at 10 second intervals or whatever) bandwidth monitor. I just want something that shows me how much kbps is going in and how much is going out of each interface. Is there something that might... (2 Replies)
Discussion started by: d11wtq
2 Replies

5. IP Networking

Bandwidth Regulation

Hello, I was wondering how one would go about regulating bandwidth of a server running RH Linux 8.0 and Apache. I am running a webserver, and want only one person to be able to download one file at a time. So, they can't click about 10 files and soak up lots of bandwidth. Plus, I would like to cap... (2 Replies)
Discussion started by: Phobos
2 Replies

6. UNIX for Advanced & Expert Users

AFP & FTP Bandwidth Monitoring?

Is there a way to monitor FTP and AFP bandwidth on a per user basis? AFP = AppleFilesharingProtocol, and by monitor, I don't mean graphs, I mean getting raw byte counts I can use in my scripts any way I choose. I am attempting to use mod_watch to monitor virtual domain bandwidth usage, but I really... (0 Replies)
Discussion started by: l008com
0 Replies

7. UNIX for Dummies Questions & Answers

User Bandwidth Monitoring

What are my options for monitoring bandwidth on a per user basis? Ideally, I'd like something thats easy to configure (like a webmin module pleeeease?), and that could monitor ALL bandwidth. Not just web bandwidth but also ftp/afp uploading and downloading, and email traffic. I know this is a... (4 Replies)
Discussion started by: l008com
4 Replies

8. IP Networking

Bandwidth Caping With PF

i have two questions actually... i need to block certain ports with openbsd and PF in a large lan, the firewall is supposed to be a router between the internet and the first lan switch. first of all, would this work at all in theory? second, i tried doing this a few days ago at a huge lan but i... (2 Replies)
Discussion started by: nocturnal
2 Replies

9. UNIX for Dummies Questions & Answers

bandwidth check?

I'm on T1, is there any way i can check my acctual bandwidth? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies
Login or Register to Ask a Question

Featured Tech Videos