Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248 Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
abhishek singh wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
You may wish to look into SNMP in combination with some graphing software such as Cacti. However, you'll get per-interface stats, rather then per-address stats.
try bandwidthd. I use it. it works fine for me.
It is very easy to setup .
Step by step How to given below.
rpm -ivh bandwidthd-2.0.1-1.i386.rpm
[root@netmonitor ~]# cat /etc/bandwidthd.conf #################################################### # Bandwidthd.conf # # Commented out options are here to provide # documentation and represent defaults
# Subnets to collect statistics on. Traffic that # matches none of these subnets will be ignored. # Syntax is either IP Subnet Mask or CIDR #subnet 10.0.0.0 255.0.0.0 #subnet 192.168.0.0/16 #subnet 172.16.0.0/12 subnet 192.168.101.0 255.255.255.0 subnet 192.168.102.0 255.255.255.0 subnet 192.168.100.0 255.255.255.0
# Device to listen on # Bandwidthd listens on the first device it detects # by default. Run "bandwidthd -l" for a list of # devices. #dev "eth0" dev "eth0"
################################################### # Options that don't usually get changed
# An interval is 2.5 minutes, this is how many # intervals to skip before doing a graphing run #skip_intervals 0 skip_intervals 1
# Graph cutoff is how many k must be transfered by an # ip before we bother to graph it #graph_cutoff 1024 graph_cutoff 1024
#Put interface in promiscuous mode to score to traffic #that may not be routing through the host machine. #promiscuous true promiscuous true
#Log data to cdf file htdocs/log.cdf #output_cdf false output_cdf true
#Read back the cdf file on startup #recover_cdf false recover_cdf true
#Libpcap format filter string used to control what bandwidthd see's #Please always include "ip" in the string to avoid strange problems #filter "ip" filter "ip"
#Draw Graphs - This default to true to graph the traffic bandwidthd is recording #Usually set this to false if you only want cdf output or #you are using the database output option. Bandwidthd will use very little #ram and cpu if this is set to false. #graph true graph true
#Set META REFRESH seconds (default 150, use 0 to disable). #meta_refresh 150 meta_refresh 150
[root@netmonitor ~]# cat /etc/httpd/conf.d/bandwidthd.conf Alias /bandwidth /usr/share/bandwidthd/htdocs
<Location /htdocs> Order deny,allow Deny from all Allow from all </Location>
/etc/init.d/bandwidthd start
then browse as below
On 1/4/07, abhishek singh abhishek.rhce@yahoo.co.in wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
If that router/firewall/proxy is connected to a managed switch, monitor the switch via SNMP with RRD, or MRTG or Cacti. If you want ease of setup, MRTG is the way to go, if you want tons of cool features Cacti is for you but it requires a mysql database.
Matt
On 1/4/07, abhishek singh abhishek.rhce@yahoo.co.in wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
abhishek singh wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
Not sure if this will help you or not, but I have a small guide for using MRTG to set up graphs for various things. MRTG is easy to install and use and doesn't require a database at all. Setup for only watching traffic is almost automatically generated. It's not very detailed though and is a more simplistic approach to watching traffic.
This basic setup will get you a daily, weekly, monthly, and yearly graph page for traffic on the eth interfaces.
http://www.maxsworld.org/index.php/how-tos/mrtg/
Hope this helps.
Max
I've got two questions that I'm curious about. One of for the maintainers of CentOS and the others is for the community at large.
1) At what point does a third party app get rolled into the production repository (not sure if I said that correctly)? Example: At what point is it OK for the OS maintainers to adopt a newer version or PHP, MySQL, Apache, etc.?
2) I have read mixed opinions with how to install a database server. Some articles say install it via YUM for compatibility purposes; while others say install it from a tar ball or source to ensure other packages do not try to upgrade and break the database. What are your thoughts? I plan on running a web server farm for a CMS/DB that needs to have a five 9 uptime.
- At what point does a third party app get rolled into the production
repository (not sure if I said that correctly)? Example: At what point is it OK for the OS maintainers to adopt a newer version or PHP, MySQL, Apache, etc.?
This is completely up to the admin. Some are forced to adopt newer packages because of feature/function requirements. I would say 'when you trust it to be stable, and not eat your data' followed by 'after very rigorous testing'.
- I have read mixed opinions with how to install a database server.
Some articles say install it via YUM for compatibility purposes; while others say install it from a tar ball or source to ensure other packages do not try to upgrade and break the database. What are your thoughts? I plan on running a web server farm for a CMS/DB that needs to have a five 9 uptime.
This is the concept of an enterprise level distribution. If you build from source, you have no method of knowing what files come from which package, or how they're linked without doing extensive digging. Using a package manager such as yum&rpm you're quickly able to see these details and perform file audits to see if things have been modified, removed, etc since install.
With source, you're on your own for staying on top of security updates, patches, bugs etc, not only for every package individually, but also in how the packages operate together as a unit. With a package based distro, you don't have to worry about this. The concern becomes 'what changes with the new package', and in centos (with very few exceptions) the answer is NOTHING. This is why security fixes and bug patches are backported to current versions instead of replacing them with the 'latest and greatest'. The bug gets fixed, but your operation never changes.
Now, 5 9's is basically PHB-speak for "We want bragging rights", and is fairly unrealistic unless you're setting up a server farm and clustered services. You will need to test every update before you roll it out, and you'll have other work that you need to do.
Now, 5 9's is basically PHB-speak for "We want bragging rights", and is fairly unrealistic unless you're setting up a server farm and clustered services. You will need to test every update before you roll it out, and you'll have other work that you need to do.
indeed, and note that clusters introduce more complexity, and every piece of complexity is another possible avenue of failure.
Todd Reed spake the following on 1/8/2007 9:03 PM:
I've got two questions that I'm curious about. One of for the maintainers of CentOS and the others is for the community at large.
- At what point does a third party app get rolled into the production
repository (not sure if I said that correctly)? Example: At what point is it OK for the OS maintainers to adopt a newer version or PHP, MySQL, Apache, etc.?
With CentOS, nothing gets rolled into the production repositories unless it is done at the source( IE... RedHat does it for the upstream product). The only exceptions are things added to the optional repos, like the CentOS Plus repo. But these are not enabled by default, and you are warned that it could (might) break things, and will definitely not be the same as upstream.
- I have read mixed opinions with how to install a database server.
Some articles say install it via YUM for compatibility purposes; while others say install it from a tar ball or source to ensure other packages do not try to upgrade and break the database. What are your thoughts? I plan on running a web server farm for a CMS/DB that needs to have a five 9 uptime.
5 9's is the holy grail of system stability. Be prepared to pay for it! I wouldn't expect five nine's from a free product. Yes, it can be done, but if you need five nine's, you need to pay for support, and have some top end hardware! Four nine's is more achievable, and probably a hell of a lot cheaper! And four nine's adds up to only 52 minutes a year of downtime.Five nine's is about 7 minutes a year.
Just like if you want to race at LaMans, you can buy any car, but if you want to even come close to winning, you need to spend some $$$.
abhishek singh wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
you might also look at ntop (ntop.org)..
IMHO, ipaudit/ipaudit-web is the easiest by far.
On 04/01/07, Cameron Showalter cameron@gwschool.com wrote:
abhishek singh wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
you might also look at ntop (ntop.org).. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 2007-01-04 at 05:12 +0000, abhishek singh wrote:
Hi,
I m using linux as a router and proxy on same machine , i want to monitor bandwidth usage per ipaddress , so plz suggest me the tool that i can use to monitor bandwidth used by which every ipaddress.
thanks in advance
Abhishek Kr. Singh System Administrator DSC. LTD. Mob.No. +91-9871563248
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
If you want an per ip monitoring (or even port), then ntop is your tool. In addition you ca use RRD to provide an monitoring history. I use it for quite some time now and it never failed me.
Cacti is also pretty neat, but only if you have an SNMP enabled host, to capture infos from.
So my opinion: stick with ntop.
Calin
================================================= If you are what you eat, does that mean Euell Gibbons really was a nut?