wanted A tool to measure bandwidth....
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its working wonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG] I used iptraf on my linux box, but it only measures the bandwidth on interface basis only....
I tried installing traffic-vis, its not working properly and there is know documentation of how to get it running.....
I also tried ntop, it installs, but dosent work.....
I have been scratching my head for the past one week....
So my problem: I am in search of a tool that measures bandwidth consumed by each host on my LAN without requiring SNMP to run on the hosts...
Now, is there any tool....
Any input regarding the matter is a welcome.....
Infinite Thanx in Advance.....
Regards
KartheeK
Yahoo! India Matrimony: Find your life partneronline.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
U can configure MRTG to measure traffic counted by iptables FORWARD chain. This way u will measure how much each host is taking without installing snmp.
Quoted 31 lines · KartheeK
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its working wonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG]
I used iptraf on my linux box, but it only measures the bandwidth on interface basis only....
I tried installing traffic-vis, its not working properly and there is know documentation of how to get it running.....
I also tried ntop, it installs, but dosent work.....
I have been scratching my head for the past one week....
So my problem: I am in search of a tool that measures bandwidth consumed
by each host on my LAN without requiring SNMP to run on the hosts...
Now, is there any tool....
Any input regarding the matter is a welcome.....
Infinite Thanx in Advance.....
Regards
KartheeK*Yahoo! India Matrimony*<http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/>:
Find your life partner online<http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/> ._______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 2 lines
Miłego Dnia Krystian Antoni
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 9 lines · KartheeK
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its working wonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG] I used iptraf on my linux box, but it only measures the bandwidth on interface basis only....
I tried installing traffic-vis, its not working properly and there is know documentation of how to get it running.....
I also tried ntop, it installs, but dosent work.....
I have been scratching my head for the past one week....So my problem: I am in search of a tool that measures bandwidth consumed by each host on my LAN without requiring SNMP to run on the hosts...
Quoted 7 lines
Now, is there any tool....
Any input regarding the matter is a welcome.....
Infinite Thanx in Advance.....
Regards
KartheeKYahoo! India Matrimony: Find your life partneronline.
I have written some scripts just for me -- I'll be glad if you find it useful in any sense.
http://www2.ldc.net/~dor/py-htbstat/
But probably that's not right what you need.
Signature · 9 lines
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartcQuoted 16 lines · Dmytro O. Redchuk
Quoted 15 lines · KartheeK
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its working wonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG] I used iptraf on my linux box, but it only measures the bandwidth on interface basis only....
I tried installing traffic-vis, its not working properly and there is know documentation of how to get it running.....
I also tried ntop, it installs, but dosent work.....
I have been scratching my head for the past one week....So my problem: I am in search of a tool that measures bandwidth consumed by each host on my LAN without requiring SNMP to run on the hosts...
Now, is there any tool....
Any input regarding the matter is a welcome.....
Infinite Thanx in Advance.....
Regards
KartheeK
Quoted 8 lines
Quoted 1 line
Yahoo! India Matrimony: Find your life partneronline.
I have written some scripts just for me -- I'll be glad if you find it useful in any sense.
http://www2.ldc.net/~dor/py-htbstat/
But probably that's not right what you need.
Maybe not what he needed, but this is excellent.
Thank you!
Quoted 12 lines
--
_,-=._ /|_/|
-.}=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
G.m-"^mm' Dmytro O. Redchuk_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 7 lines
Kenneth Kalmer [email protected] http://opensourcery.blogspot.com _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 1 line · KartheeK
Hello Everybody,
hi
Quoted 1 line
Now i want to measure the bandwidth consumed by each of my hosts....
Probably also not exactly what you want, but I have a Linux distribution "Route Hat" which is optimised for this sort of usage (also traffic control). A screenshot of IP accounting can be found here:
http://shurdeek.routehat.org/tmp/ipacct.png
Installation HOWTO can be found here:
http://docs.routehat.org/doku.php?id=rh:howto
It's 100% open source so you can use the scripts without Route Hat as well. It uses ipt_ACCOUNT and rrdtool's perl libraries for high performance accounting (largest tested LAN has ~1400 machines).
Bye,
Peter Surda (Shurdeek) <[email protected]>, ICQ 10236103, +436505122023
Signature · 6 lines
Microsoft does write "free" software. Not free as in "free
beer," or "free speech," but "Free Tibet."
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartcQuoted 25 lines · Kenneth Kalmer
Quoted 3 lines · Dmytro O. Redchuk
Quoted 2 lines · KartheeK
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its workingwonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG]
Quoted 1 line
Quoted 1 line
I used iptraf on my linux box, but it only measures the bandwidth on
interface basis only....
Quoted 1 line
Quoted 1 line
I tried installing traffic-vis, its not working properly and there is
know documentation of how to get it running.....
Quoted 4 lines
Quoted 4 lines
I also tried ntop, it installs, but dosent work..... I have been scratching my head for the past one week....
So my problem: I am in search of a tool that measures bandwidth
consumed by each host on my LAN without requiring SNMP to run on the hosts...
Quoted 9 lines
Quoted 8 lines
Now, is there any tool....
Any input regarding the matter is a welcome..... Infinite Thanx in Advance.....
Regards
KartheeKYahoo! India Matrimony: Find your life partneronline.
Quoted 8 lines
Quoted 6 lines
I have written some scripts just for me -- I'll be glad if you find it useful in any sense.
http://www2.ldc.net/~dor/py-htbstat/
But probably that's not right what you need.
Maybe not what he needed, but this is excellent.
Indeed! Looks very good, I will definately be looking at using that for helping to analyze the performance of HTB.
However one comment - reading byte counters from TC (assuming thats what it does - I havn't studied it or installed it yet) for the purposes of billing customer usage is not recommended, as the HTB docs specifically say that they are not completely accurate due to rounding. (And we have also found they are a bit inaccurate)
What we do is set up firewall rules based on customer IP address(es) and then monitor the byte counters. This can be read from MRTG without any SNMP. So for example: (ip's changed to protect the innocent ;)
/sbin/ipchains -A input -i eth0 -s 192.168.1.10/sbin/ipchains -A output -i eth0 -d 192.168.1.10
The above rules will match for byte counting purposes but still allow following rules to be processed for firewalling purposes. Something similar should be possible with iptables.
Then in a shell script:
ipchains -xvnL output | grep -w "eth0" | grep -w "192.168.1.10" |
awk '{print $2}'
ipchains -xvnL input | grep -w "eth0" | grep -w "192.168.1.10" | awk '{print $2}'
echo ""
echo "Customer Name"
Then in mrtg.cfg:
Target[CustomerName]: /root/mrtg/bin/get-radiolink-use
This is a simplified example that doesn't take into account more than one customer. To scale up you would want the various scripts to be automatically generated...
We find byte counting using ipchains/iptables to be very accurate, and no SNMP is needed provided the byte counting is done on the same machine as mrtg is run...
Regards,
Simon
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Simon
For billing have a look at pmacct. It's very stable, reliable and accurate.
<from the website>
pmacct is a small set of passive network monitoring tools to measure, account and aggregate IPv4 and IPv6 traffic; aggregation revolves around the key concept of primitives (VLAN id, source and destination MAC addresses, hosts, networks, AS numbers, ports, IP protocol and ToS/DSCP field are supported) which may be arbitrarily combined to build custom aggregation methods; support for historical data breakdown, triggers and packet tagging, filtering, sampling. Aggregates can be stored into memory tables, SQL databases (MySQL or PostgreSQL) or simply pushed to stdout. Data is collected either using libpcap (and optionally promiscuous mode of the listening interface) or reading Netflow v1/v5/v7/v8/v9 packets coming from the network. </from the website>
http://www.ba.cnr.it/~paolo/pmacct/ for more info
You can do extremely powerful analysis on the captured data, give it a shot!
HTH
Quoted 81 lines · Simon Byrnand
Quoted 25 lines · Kenneth Kalmer
Quoted 3 lines · Dmytro O. Redchuk
Quoted 2 lines · KartheeK
Hello Everybody,
I have configured a Linux box that does traffic shaping. Its workingwonderfully fine, just as expected...Now i want to measure the bandwidth consumed by each of my hosts....But I dont want SNMP to run on all the hosts[as required by MRTG]
Quoted 1 line
Quoted 1 line
I used iptraf on my linux box, but it only measures the bandwidth on
interface basis only....
Quoted 1 line
Quoted 1 line
I tried installing traffic-vis, its not working properly and there is
know documentation of how to get it running.....
Quoted 4 lines
Quoted 4 lines
I also tried ntop, it installs, but dosent work..... I have been scratching my head for the past one week....
So my problem: I am in search of a tool that measures bandwidth
consumed by each host on my LAN without requiring SNMP to run on the hosts...
Quoted 9 lines
Quoted 8 lines
Now, is there any tool....
Any input regarding the matter is a welcome..... Infinite Thanx in Advance.....
Regards
KartheeKYahoo! India Matrimony: Find your life partneronline.
Quoted 8 lines
Quoted 6 lines
I have written some scripts just for me -- I'll be glad if you find it useful in any sense.
http://www2.ldc.net/~dor/py-htbstat/
But probably that's not right what you need.
Maybe not what he needed, but this is excellent.
Indeed! Looks very good, I will definately be looking at using that for helping to analyze the performance of HTB.
However one comment - reading byte counters from TC (assuming thats what it does - I havn't studied it or installed it yet) for the purposes of billing customer usage is not recommended, as the HTB docs specifically say that they are not completely accurate due to rounding. (And we have also found they are a bit inaccurate)
What we do is set up firewall rules based on customer IP address(es) and then monitor the byte counters. This can be read from MRTG without any SNMP. So for example: (ip's changed to protect the innocent ;)
/sbin/ipchains-A input -i eth0 -s 192.168.1.10/sbin/ipchains-A output -i eth0 -d 192.168.1.10The above rules will match for byte counting purposes but still allow following rules to be processed for firewalling purposes. Something similar should be possible with iptables.
Then in a shell script:
ipchains -xvnL output | grep -w "eth0" | grep -w "192.168.1.10" | awk '{print $2}' ipchains -xvnL input | grep -w "eth0" | grep -w "192.168.1.10" |awk '{print $2}'
echo ""
echo "Customer Name"Then in mrtg.cfg:
Target[CustomerName]:
/root/mrtg/bin/get-radiolink-useThis is a simplified example that doesn't take into account more than one customer. To scale up you would want the various scripts to be automatically generated...
We find byte counting using ipchains/iptables to be very accurate, and no SNMP is needed provided the byte counting is done on the same machine as mrtg is run...
Regards,
Simon
Signature · 7 lines
Kenneth Kalmer [email protected] http://opensourcery.blogspot.com _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 5 lines · Simon Byrnand
However one comment - reading byte counters from TC (assuming thats what it does - I havn't studied it or installed it yet) for the purposes of billing customer usage is not recommended, as the HTB docs specifically say that they are not completely accurate due to rounding. (And we have also found they are a bit inaccurate)
Sure, it's not for billing. But one can analyze HTB "feeling and behaviour" with these scripts anyway. It's great if I can tell my customer something like "yes, right you are, you are experiencing delays (up to 10 seconds BTW), and that's because your bandwidth exhausted; no, no, no drops, just delaying..."
:-)
Quoted 11 lines
Then in mrtg.cfg:
Target[CustomerName]:
/root/mrtg/bin/get-radiolink-useThis is a simplified example that doesn't take into account more than one customer. To scale up you would want the various scripts to be automatically generated...
We find byte counting using ipchains/iptables to be very accurate, and no SNMP is needed provided the byte counting is done on the same machine as mrtg is run...
Once more: mrtg can deal with rrd bases, I believe you assume such setup, dont you?-)
You can store rrd bases regularly and fetch the data with scripts.
ps. I like rrd bases and work with them directly very often, with no mrtg.
As you can see :-) That's why py-htbstat uses py-rrdtool.
Quoted 3 lines
Regards,
Simon
Signature · 9 lines
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc