bandwidthd.tgz - Monitor your network bandwidth 5/10/08 [INACTIVE]

Here we discuss compilation and how to build an addon for BFW.

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor kc0idi » Seg Nov 24, 2008 10:06 pm

Código: Selecionar todos
addoninstaller.tgz  ipupdate.tgz        pkgbackup.tgz
advroute.tgz        l7filter.tgz        pkginst.tgz
apache.tgz          l7qos.tgz           root.tgz
bandwidthd.tgz      ldlinux.sys         rrdstats.tgz
config              libgd.tgz           rrdtool.tgz
dhcpd.tgz           libiconv.tgz        simon.tgz
dnscache.tgz        libpng.tgz          syslinux.cfg
etc.tgz             libxml2.tgz         syslinux.dpy
hdparm.tgz          linux               webadmin.tgz
iptraf.tgz          modules.tgz


Here are all the packages i have installed
kc0idi
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor El guapo Dan » Seg Nov 24, 2008 11:34 pm

kc0idi escreveu:
Código: Selecionar todos
addoninstaller.tgz  ipupdate.tgz        pkgbackup.tgz
advroute.tgz        l7filter.tgz        pkginst.tgz
apache.tgz          l7qos.tgz           root.tgz
bandwidthd.tgz      ldlinux.sys         rrdstats.tgz
config              libgd.tgz           rrdtool.tgz
dhcpd.tgz           libiconv.tgz        simon.tgz
dnscache.tgz        libpng.tgz          syslinux.cfg
etc.tgz             libxml2.tgz         syslinux.dpy
hdparm.tgz          linux               webadmin.tgz
iptraf.tgz          modules.tgz


Here are all the packages i have installed

Hi, I'm suspecting about RRDSTATS if you see in this topic http://www.brazilfw.com.br/forum/viewtopic.php?f=15&t=66349&st=0&sk=t&sd=a#p154526 that user having problems have that add-on too, I'm wondering if your BFW system is for testing purposes and if you can uninstall RRDSTATS and RRDTOOL and try again, that will be helpful for us.

Daniel.
El guapo Dan
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor kc0idi » Ter Nov 25, 2008 2:55 am

I removed both packages and did not see an improvement
kc0idi
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor kc0idi » Ter Nov 25, 2008 7:38 pm

It seems to be working right now. Here is my current configuration. It makes me think it's something in the recover option.

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
#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 false

#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
kc0idi
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Seg Mar 02, 2009 7:36 pm

Senhores,

Estou com dificuldades para que o bandwidth escute em 3 diferentes placas de rede.
quando nao se define o DEV ele funciona mas só para a rede 192.168.0.0/24.
Sendo minha ETH3 - Internet e as outras 3 redes internas.
Estou em bancada com o bfw com 1 micro em cada placa navegando nos mesmos (atualizando)
(tentei usar o bandwidthd -l mas só retornou erro. funciona? como?)
Segue o conf para alguem me dar uma luz!!
Tkts

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 192.168.0.0/24
subnet 192.168.1.0/24
subnet 192.168.2.0/24

# 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 "eth1"
dev "eth2"

#dev "eth3"

###################################################
# 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
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor El guapo Dan » Seg Mar 02, 2009 10:28 pm

nexus escreveu:Senhores,

Estou com dificuldades para que o bandwidth escute em 3 diferentes placas de rede.
quando nao se define o DEV ele funciona mas só para a rede 192.168.0.0/24.
Sendo minha ETH3 - Internet e as outras 3 redes internas.
Estou em bancada com o bfw com 1 micro em cada placa navegando nos mesmos (atualizando)
(tentei usar o bandwidthd -l mas só retornou erro. funciona? como?)
Segue o conf para alguem me dar uma luz!!
Tkts


Necesitara iniciar varios bandwidthds uno para cada placa de red.

Saludos.
El guapo Dan
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor andrefellows » Seg Mar 02, 2009 10:56 pm

e se colocar uma mascara mais abrangente?
tipo 192.168.0.0/16
vai pegar todas as redes de 192.168.0.0 até 192.168.255.255 (teoricamente)

será?
andrefellows
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Ter Mar 03, 2009 8:19 am

Cavernícola, obrigado pela resposta!!
Mas, la vão as dúvidas...
Como inicio mais de um bandwidth?? (é... ser newbie é f.... kkkk)
Vou ter que criar um conf para cada placa? Neste caso posso deixar lá no partition mesmo e não teria problema de ele não entrar no backup do sistema?

Andrefellows obrigado pela resposta, vou tentar colocar essa mascara mais abrangente para testar, mas como cada rede está alocada em uma placa fisica diferente não sei se vai funcionar. Vou mecher e postar os resultados aqui.

Obrigado mais uma vez ao dois!
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Ter Mar 03, 2009 8:32 am

Andrefellows, testei com a máscara que sugeriu e não mudou nada. Creio que pelo processo bandwidth não escutar todas as placas de rede.
Menos uma alternativa para testar!! kkk
TktS!
APPendando o post, testei tambem com a mascara, mas forçando o bandwidth a escutar minha ETH3 que é a interface com a internet e... nada... (que frustração...) kkk

Seguindo a dica do cavernicola, fiz o seguinte:
Pesquisando na net e fuçando um pouquinho no BFW achei os scripts do Bandiwidthd e criei mais duas instancias do bandwidth e botei pra rodar.
1) copiei a pasta bandwidthd para bandwidthd1 e bandwidthd2
2) Alterei o conf e o start de cada uma para as redes e ETH especifica.
ETH0 - ip 192.168.0.0/24 listen 10003
ETH1 - ip 192.168.1.0/24 listen1 10004
ETH2 - ip 192.168.2.0/24 e ip 192.168.3.0/24 listen2 10005

Fui la no rc.bandwidth e mudei conforme abaixo.

. /etc/coyote/coyote.conf
. /partition/bandwidthd/etc/bandwidthd.start
. /partition/bandwidthd1/etc/bandwidthd.start
. /partition/bandwidthd2/etc/bandwidthd.start
/partition/bandwidthd/bandwidthd
/partition/bandwidthd1/bandwidthd
/partition/bandwidthd2/bandwidthd

thttpd -p $LISTEN -d /partition/bandwidthd/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN1 -d /partition/bandwidthd1/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN2 -d /partition/bandwidthd2/htdocs -h $LOCAL_IPADDR


Backup (ajeitei o bandwidthd.list pra conter os arquivos conf da partition)
reiniciei
e tenho várias instancias do bandwidth rodando, mas elas nao estao captando nada...
exceto a primeira.

Algue tem alguma ideia?? >| :mrgreen:
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor El guapo Dan » Ter Mar 03, 2009 5:04 pm

Nexus, no tengo idea de que es lo que pasa, yo nunca he utilizado mas de una ethernet con Bandwidthd, pero voy a investigar a ver que encuentro...

Saludos.
El guapo Dan
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor El guapo Dan » Ter Mar 03, 2009 5:07 pm

nexus escreveu:
. /etc/coyote/coyote.conf
. /partition/bandwidthd/etc/bandwidthd.start
. /partition/bandwidthd1/etc/bandwidthd.start
. /partition/bandwidthd2/etc/bandwidthd.start
/partition/bandwidthd/bandwidthd
/partition/bandwidthd1/bandwidthd
/partition/bandwidthd2/bandwidthd

thttpd -p $LISTEN -d /partition/bandwidthd/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN1 -d /partition/bandwidthd1/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN2 -d /partition/bandwidthd2/htdocs -h $LOCAL_IPADDR

No puedes tener mas de un thttpd en el mismo puerto "$LISTEN", existe el puerto $LISTEN2 y $LISTEN3 ?...
El guapo Dan
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Seg Mar 09, 2009 5:04 pm

Cavernicola escreveu:
nexus escreveu:
. /etc/coyote/coyote.conf
. /partition/bandwidthd/etc/bandwidthd.start
. /partition/bandwidthd1/etc/bandwidthd.start
. /partition/bandwidthd2/etc/bandwidthd.start
/partition/bandwidthd/bandwidthd
/partition/bandwidthd1/bandwidthd
/partition/bandwidthd2/bandwidthd

thttpd -p $LISTEN -d /partition/bandwidthd/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN1 -d /partition/bandwidthd1/htdocs -h $LOCAL_IPADDR
thttpd -p $LISTEN2 -d /partition/bandwidthd2/htdocs -h $LOCAL_IPADDR

No puedes tener mas de un thttpd en el mismo puerto "$LISTEN", existe el puerto $LISTEN2 y $LISTEN3 ?...


Sim.
Eu defini cada um em cada pasta separada do bandwidth, como criei bandwidth1 e bandwidth2, tambem ajustei os arquivos que tem a associaçao do LISTEN com a porta para o LISTEN1=10004 e listen2=10005.

Se tiveres curiosidade, a maquina nao ta em produção e pode ser acessada de fora. Me passa um MP se tiver interesse.
Obrigado pela ajuda!
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Qui Mar 12, 2009 7:12 pm

Senhores, consegui monitorar mais de uma ETH

Simplesmente coloquei a opção DEV "ANY" e dai ele monitora todas as placas disponiveis.

Eu achei essa documentaçao no site http://www.vivaolinux.com.br/artigo/Instalacao-e-configuracao-do-Bandwidthd-no-Conectiva-Linux-9/?pagina=2

Segue abaixo as configurações comentadas - Sugiro colocar no post do add-on para consulta.

Abraço a todos.

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
#
# AQUI VOCÊ DEVE COLOCAR AS REDES QUE VOCÊ QUER MONITORAR,
# EX: SE VOCÊ QUER MONITORAR A ETH1 QUE ESTÁ COM A CLASSE DE
# IPS 10.250.0.X VOCÊ DEVE COLOCAR AQUI EXATAMENTE O IP E A
# MASCARA QUE TEM NA SUA PLACA DE REDE, PARA CADA SUBNET
# VOCÊ DEVE ADICIONAR UMA ENTRADA subnet.
subnet 10.250.0.0 255.255.0.0
subnet 192.168.0.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.
# AQUI VOCÊ DEVE COLOCAR A INTERFACE A SER ESCUTADA, SE VOCÊ
# QUER ESCUTAR MAIS DE 1 INTERFACE ENTÃO COLOQUE any, SE VAI
# ESCUTAR APENAS 1 ENTÃO COLOQUE Ex: ETH1
dev "any"
# dev "eth1"

# ABAIXO ALGUMAS POUCAS OPÇÕES PRECISAM SER ALTERADAS
# 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.
# VOCÊ SÓ PRECISA ALTERAR ESSA OPÇÃO PARA true CASO QUEIRA
# QUE ELE TAMBÉM MONITORE IPS QUE NÃO PASSAM DIRETAMENTE POR
# ESSE COMPUTADOR, TRAFEGO DE IPS QUE CHEGAM A SUA INTERFACE
# MAS QUE NÃO PASSAM DIRETAMENTE POR ELA.
promiscuous true

# Log data to cdf file htdocs/log.cdf
# ATIVAR O LOG DO BANDWIDTHD PARA UM ARQUIVO
output_cdf true

# Read back the cdf file on startup
# LER O LOG NOVAMENTE AO SER REINICIADO PARA QUE O MESMO
# SAIBA QUAIS FORAM AS #ULTIMAS MODIFICAÇÕES, SENÃO AO SER
# REINICIADO OS GRÁFICOS TAMBÉM REINICIARÃO DO #0.
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.
# ATIVA A GERAÇÃO DE GRÁFICOS PARA CADA IP, LEMBRA DO LIBPNG NO INICIO
# DO ARTIGO? ELE QUE GERA OS GRÁFICOS.
graph true

# Set META REFRESH seconds (default 150, use 0 to disable).
# TEMPO PARA REFRESH AUTOMÁTICO DA PAGINA QUE SERÁ GERADA PELO BANDWIDTHD.
meta_refresh 150
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor El guapo Dan » Qui Mar 12, 2009 10:28 pm

nexus escreveu:Senhores, consegui monitorar mais de uma ETH

Simplesmente coloquei a opção DEV "ANY" e dai ele monitora todas as placas disponiveis.

Eu achei essa documentaçao no site http://www.vivaolinux.com.br/artigo/Instalacao-e-configuracao-do-Bandwidthd-no-Conectiva-Linux-9/?pagina=2

Segue abaixo as configurações comentadas - Sugiro colocar no post do add-on para consulta.

Abraço a todos.

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
#
# AQUI VOCÊ DEVE COLOCAR AS REDES QUE VOCÊ QUER MONITORAR,
# EX: SE VOCÊ QUER MONITORAR A ETH1 QUE ESTÁ COM A CLASSE DE
# IPS 10.250.0.X VOCÊ DEVE COLOCAR AQUI EXATAMENTE O IP E A
# MASCARA QUE TEM NA SUA PLACA DE REDE, PARA CADA SUBNET
# VOCÊ DEVE ADICIONAR UMA ENTRADA subnet.
subnet 10.250.0.0 255.255.0.0
subnet 192.168.0.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.
# AQUI VOCÊ DEVE COLOCAR A INTERFACE A SER ESCUTADA, SE VOCÊ
# QUER ESCUTAR MAIS DE 1 INTERFACE ENTÃO COLOQUE any, SE VAI
# ESCUTAR APENAS 1 ENTÃO COLOQUE Ex: ETH1
dev "any"
# dev "eth1"

# ABAIXO ALGUMAS POUCAS OPÇÕES PRECISAM SER ALTERADAS
# 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.
# VOCÊ SÓ PRECISA ALTERAR ESSA OPÇÃO PARA true CASO QUEIRA
# QUE ELE TAMBÉM MONITORE IPS QUE NÃO PASSAM DIRETAMENTE POR
# ESSE COMPUTADOR, TRAFEGO DE IPS QUE CHEGAM A SUA INTERFACE
# MAS QUE NÃO PASSAM DIRETAMENTE POR ELA.
promiscuous true

# Log data to cdf file htdocs/log.cdf
# ATIVAR O LOG DO BANDWIDTHD PARA UM ARQUIVO
output_cdf true

# Read back the cdf file on startup
# LER O LOG NOVAMENTE AO SER REINICIADO PARA QUE O MESMO
# SAIBA QUAIS FORAM AS #ULTIMAS MODIFICAÇÕES, SENÃO AO SER
# REINICIADO OS GRÁFICOS TAMBÉM REINICIARÃO DO #0.
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.
# ATIVA A GERAÇÃO DE GRÁFICOS PARA CADA IP, LEMBRA DO LIBPNG NO INICIO
# DO ARTIGO? ELE QUE GERA OS GRÁFICOS.
graph true

# Set META REFRESH seconds (default 150, use 0 to disable).
# TEMPO PARA REFRESH AUTOMÁTICO DA PAGINA QUE SERÁ GERADA PELO BANDWIDTHD.
meta_refresh 150

Parabens Nexus!!! :o! .
En el post principal habra un link y una referencia a tu descubrimiento, gracias por compartir esto con el foro :aplause:
El guapo Dan
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor ramzo » Qua Jul 15, 2009 11:26 am

Bom dia,

Após a instalação do Bandwidthd o meu IMspector parou de funcionar.

Alguem sabe com resolver isso?
ramzo
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor nexus » Qua Set 09, 2009 3:35 pm

Senhores,

Também tive incompatibilidade entre o Bandwidthd e a série TINY, em especial o IMSpector.
Assim, estou colocando uns 10 neurônios aqui pra trabalhar e tentar compatibilizar os dois para podermos ter a vantagem de ambos. (band e tinys)
Bom, vontade só não ajuda, então aventei as seguintes hipóteses de incompatibilidade:
1) o imspector e o Bandwidth utilizam os mesmos módulos e "portas" para capturar os pacotes
2) A necessidade de mudar o host das paginas web pelo IMSPECTOR levaram a incompatibilidade.

Não sei como buscar a solução para a primeira hipótese, mas estou abrindo os pacotes do bandwidthd para ver se nao tem alguma referencia ao thttp "antigo" que a série tiny substitui na sua instalação.
Quando tiver resultados volto a postar.
abraços.
nexus
 

Re: bandwidthd.tgz - Monitor your network bandwidth 5/10/08

Mensagempor rodrigoadachi » Ter Set 15, 2009 12:24 am

Olhem este link: viewtopic.php?f=15&t=67667&p=187970&hilit=sqstat#p187711

O macinho já está dando uma força quanto a isso.
skype adachi.rodrigo

"E conhecerão a verdade, e a verdade os libertará". João 8:32

Doe para o BrazilFW e ajude a mante-lo no Ar e Atualizado!
Avatar do usuário
rodrigoadachi
BFW Very Participative
 
Mensagens: 460
Registrado em: Qui Mar 27, 2008 5:15 pm
Localização: Bahia - Brasil
BrazilFW Box:

Anterior

Voltar para Add-On Factory

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 2 visitantes