Bandwidthd tutorial

Several tutorials

Bandwidthd tutorial

Mensagempor Wilfull » Ter Dez 02, 2008 8:49 am

So i will put all steps that i made. Maybe someone will need on English like me.

Ok first you find the downloads links here:

viewtopic.php?f=68&t=66590
Before you start anything to do, make sure you have second partition
Use "ps" command to see that. If you have second partition you should see something like this.

Código: Selecionar todos
13358 root        492 S   /partition/......
13429 root        492 S   /partition/.......
13430 root        492 S   /partition/.......


First install the libs (dunno but seams logical for me to do that, not to have any bug)
After that install the bandwidthd.tgz. Reboot your system and go partition/bandwidthd/etc/ and edit bandwidthd.conf like this

Código: Selecionar todos
####################################################
# 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 (here you edit the class you using, and personally i just used /24)
#subnet 172.16.0.0/12

# Device to listen on
# Bandwidthd listens on the first device it detects
# by default.  Run "bandwidthd -l" for a list of
# devices.
#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

# Graph cutoff is how many k must be transfered by an
# ip before we bother to graph it
#graph_cutoff 1024

#Put interface in promiscuous mode to score to traffic
#that may not be routing through the host machine.
promiscuous true

#Log data to cdf file htdocs/log.cdf
output_cdf true

#Read back the cdf file on startup
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"

#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

#Set META REFRESH seconds (default 150, use 0 to disable).
#meta_refresh 150



Dont forget to backup the system , and after reboot the computer.

Hope helps!
Wilfull
 

Voltar para Several tutorials

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante