* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
@ 2001-01-11 14:38 Rick
2001-01-11 14:46 ` bert
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Rick @ 2001-01-11 14:38 UTC (permalink / raw)
To: lartc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="iso-8859-1", Size: 233 bytes --]
How does one know if the traffic to a machine has indeed being limited to say 64Kbps?
What software are you using to gauge this? Can this software show graphically in real-time the amount of data to this machine?
Regards.
[-- Attachment #2: Type: text/html, Size: 1013 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
@ 2001-01-11 14:46 ` bert
2001-01-11 18:34 ` Guy
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bert @ 2001-01-11 14:46 UTC (permalink / raw)
To: lartc
<PRE>On Thu, Jan 11, 2001 at 10:38:15PM +0800, Rick Goh Siow Mong wrote:
><i> How does one know if the traffic to a machine has indeed being limited to say 64Kbps?
</I>><i>
</I>><i> What software are you using to gauge this? Can this software show graphically in real-time the amount of data to this machine?
</I>
'iptraf' is very good for 'now' measurements. 'mrtg' takes 5 minute
averages, which is also very useful.
--
PowerDNS Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
2001-01-11 14:46 ` bert
@ 2001-01-11 18:34 ` Guy
2001-01-11 19:37 ` bert
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Guy @ 2001-01-11 18:34 UTC (permalink / raw)
To: lartc
<PRE>bert hubert wrote:
><i> On Thu, Jan 11, 2001 at 10:38:15PM +0800, Rick Goh Siow Mong wrote:
</I>><i>
</I>>><i> How does one know if the traffic to a machine has indeed being limited to say 64Kbps?
</I>>><i>
</I>>><i> What software are you using to gauge this? Can this software show graphically in real-time the amount of data to this machine?
</I>><i>
</I>><i>
</I>><i> 'iptraf' is very good for 'now' measurements. 'mrtg' takes 5 minute
</I>><i> averages, which is also very useful.
</I>
Bert,
MRTG works with SNMP to get traffic statistics from remote routers.
How did you get SNMP to work on a Linux box? Have you already used MRTG
to monitor linux routers?
(for those unfamiliar with SNMP: SNMP is short for Simple Network
Management Protocol, an IETF standardised protocol, widely used by ISP's
and enterprises for monitoring and managing their IP networks. It is
invented for managing large networks, so it is actually of no use for
the home user.)
Regards,
Guy
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
2001-01-11 14:46 ` bert
2001-01-11 18:34 ` Guy
@ 2001-01-11 19:37 ` bert
2001-01-12 13:31 ` Rick
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bert @ 2001-01-11 19:37 UTC (permalink / raw)
To: lartc
<PRE>On Thu, Jan 11, 2001 at 07:34:46PM +0100, Guy Van Den Bergh wrote:
><i> MRTG works with SNMP to get traffic statistics from remote routers.
</I>><i> How did you get SNMP to work on a Linux box? Have you already used MRTG
</I>><i> to monitor linux routers?
</I>
Yes. You can install an snmp daemon on your Linux box, which will make it
respond to snmp commands a router would respond to as well. I don't like
this approach because my 8MB 486 router didn't have enough memory to run an
snmp daemon concurrently with mrtg.
The second way, which I like a lot better, is to have mrtg call an external
program which then creates the right numbers. Very easy to do:
export PATH=$PATH:/usr/sbin
ipchains -vx -L output | grep $1 | cut -b 9-19
ipchains -vx -L input | grep $1 | cut -b 9-19
uptime
echo $1-router
This creates output mrtg can understand.
Regards,
bert hubert
--
PowerDNS Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
` (2 preceding siblings ...)
2001-01-11 19:37 ` bert
@ 2001-01-12 13:31 ` Rick
2001-01-12 14:37 ` bert
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Rick @ 2001-01-12 13:31 UTC (permalink / raw)
To: lartc
<PRE>I have tried IPCHAINS IP Accounting.
However, the amount of traffic as accounted for by IPCHAINS for the amount
of bandwidth going through the ports of my linux box, is not accurate at
all. In fact, the number is completely off!
Could u send me your ipchains scripts? thanks in advance.
*******************************************
Below is what i did, which give me the wrong figures. Am I missing something
here??
In rc.firewall, i added the following lines:
# To accept traf-stats for MRTG
/sbin/ipchains -N web
/sbin/ipchains -A web -j ACCEPT
/sbin/ipchains -N ftp
/sbin/ipchains -A ftp -j ACCEPT
/sbin/ipchains -N dns
/sbin/ipchains -A dns -j ACCEPT
/sbin/ipchains -N telnet
/sbin/ipchains -A telnet -j ACCEPT
/sbin/ipchains -A input -p tcp --dport www -j web
/sbin/ipchains -A output -p tcp --sport www -j web
/sbin/ipchains -A input -p udp --dport www -j web
/sbin/ipchains -A output -p udp --sport www -j web
/sbin/ipchains -A input -p tcp --dport ftp -j ftp
/sbin/ipchains -A output -p tcp --sport ftp -j ftp
/sbin/ipchains -A input -p tcp --dport domain -j dns
/sbin/ipchains -A output -p tcp --sport domain -j dns
/sbin/ipchains -A input -p udp --dport domain -j dns
/sbin/ipchains -A output -p udp --sport domain -j dns
/sbin/ipchains -A input -p tcp --dport telnet -j telnet
/sbin/ipchains -A output -p tcp --sport telnet -j telnet
traffic.sh --> the script to be run under MRTG.
#!/bin/sh
#Courtesy of xidus.net.
statname=$1
uptime=unused
stat=`cat /proc/net/ip_fwchains | grep $statname | tail -1 | awk '{print
$10}'`
echo $stat
echo $stat
echo $statname
echo $uptime
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
` (3 preceding siblings ...)
2001-01-12 13:31 ` Rick
@ 2001-01-12 14:37 ` bert
2001-01-12 14:57 ` Rick
2001-01-12 15:27 ` bert
6 siblings, 0 replies; 8+ messages in thread
From: bert @ 2001-01-12 14:37 UTC (permalink / raw)
To: lartc
<PRE>On Fri, Jan 12, 2001 at 09:31:32PM +0800, Rick Goh Siow Mong wrote:
><i> I have tried IPCHAINS IP Accounting.
</I>><i>
</I>><i> However, the amount of traffic as accounted for by IPCHAINS for the amount
</I>><i> of bandwidth going through the ports of my linux box, is not accurate at
</I>><i> all. In fact, the number is completely off!
</I>
I suspect that you will find that it works perfectly. However, MRTG can be
misconfigured. MRTG expects either 'absolute', 'direct' or 'gauge' data.
Investige if you are supplying it with the right data.
Regards,
bert hubert
--
PowerDNS Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
` (4 preceding siblings ...)
2001-01-12 14:37 ` bert
@ 2001-01-12 14:57 ` Rick
2001-01-12 15:27 ` bert
6 siblings, 0 replies; 8+ messages in thread
From: Rick @ 2001-01-12 14:57 UTC (permalink / raw)
To: lartc
<PRE>Is this correct?
# trafstat.sh is available at <A HREF="http://mrtg.xidus.net/run/trafstat.sh">http://mrtg.xidus.net/run/trafstat.sh</A>
# returns byte counters based on ipchains stats
# see the script for more info on the setup
Target[traf-web]: `/www/mrtg/run/trafstat.sh web`
Options[traf-web]: nopercent,growright,noinfo
Title[traf-web]: Web traffic
PageTop[traf-web]: <h1>Web traffic</h1>
MaxBytes[traf-web]: 1000000
YLegend[traf-web]: Bytes/s
ShortLegend[traf-web]: B/s
LegendI[traf-web]: &nbsp;Traffic
LegendO[traf-web]:
Legend1[traf-web]: Traffic in Bytes per Second
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
` (5 preceding siblings ...)
2001-01-12 14:57 ` Rick
@ 2001-01-12 15:27 ` bert
6 siblings, 0 replies; 8+ messages in thread
From: bert @ 2001-01-12 15:27 UTC (permalink / raw)
To: lartc
<PRE>On Fri, Jan 12, 2001 at 10:57:35PM +0800, Rick Goh Siow Mong wrote:
><i> Is this correct?
</I>
Well, I'm not your personal helpdesk, I would advice truly understanding
MRTG. But, at a guess, add 'gauge' to Options. You probably see ever growing
bandwidth usage now.
Regards,
bert hubert
--
PowerDNS Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</PRE>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-01-12 15:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
2001-01-11 14:46 ` bert
2001-01-11 18:34 ` Guy
2001-01-11 19:37 ` bert
2001-01-12 13:31 ` Rick
2001-01-12 14:37 ` bert
2001-01-12 14:57 ` Rick
2001-01-12 15:27 ` bert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.