Página 1 de 2 12 ÚltimoÚltimo
+ Responder ao Tópico



  1. Povo,

    como eu faço para monitorar o StarOS? Eu já tentei várias configurações do MRTG e nada funciona direito. Sempre dá esse retorno pro MRTG:

    Código :
    WARNING: could not match&get 172.20.0.11:/ifInOctets for Descr 'wpcm0'
    ERROR: Target[ema.wpcm0][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
    ERROR: Target[ema.wpcm0][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data

    Esse erro acontece aleatoriamente para cada interface do sistema. Isso é estressante porque as vezes a gente acha que tá com uma velocidade a conexão e na realidade é outra velocidade.

    Se alguem sabe uma outra forma de monitorar me avise...




  2. Sergio,

    Sim e não. Aquela forma é para monitorar a qualidade do enlace (eu estou testando um script parecido) o que eu preciso é monitorar o consumo de banda no backbone e nos cartões wlan que vão para os clientes.

  3. Nataniel,

    monitoro o consumo do staros em um pop meu aqui assim:


    ### Global Config Options
    EnableIPv6: no
    XSize[_]: 350
    YSize[_]: 150
    Title[_]: Onda Internet - Pop08 - AP01
    WorkDir: /www/stats
    Options[_]: growright, bits
    SetEnv[_]: MRTG_INT_IP="" MRTG_INT_DESCR=""
    MaxBytes[_]: 1250000

    ######################################################################
    # System: router
    # Description:
    # Contact: Not Configured
    # Location: Not Configured
    ######################################################################


    ### Interface 1 >> Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is a Software Loopback interface
    #
    # Target[111.222.333.444_1]: 1ublic@111.222.333.444:
    # SetEnv[111.222.333.444_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
    # MaxBytes[111.222.333.444_1]: 1250000
    # Title[111.222.333.444_1]: Traffic Analysis for 1 -- router
    # PageTop[111.222.333.444_1]: <H1>Traffic Analysis for 1 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>lo </TD></TR>
    # <TR><TD>ifType:</TD> <TD>softwareLoopback (24)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
    # <TR><TD>Ip:</TD> <TD>127.0.0.1 (localhost.localdomain)</TD></TR>
    # </TABLE>


    ### Interface 2 >> Descr: 'br0' | Name: '' | Ip: '111.222.333.444' | Eth: '' ###
    ### The following interface is commented out because:
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_2]: 2ublic@111.222.333.444:
    # SetEnv[111.222.333.444_2]: MRTG_INT_IP="111.222.333.444" MRTG_INT_DESCR="br0"
    # MaxBytes[111.222.333.444_2]: 0
    # Title[111.222.333.444_2]: Traffic Analysis for 2 -- router
    # PageTop[111.222.333.444_2]: <H1>Traffic Analysis for 2 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>br0 </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # <TR><TD>Ip:</TD> <TD>111.222.333.444 ()</TD></TR>
    # </TABLE>


    ### Interface 3 >> Descr: 'tunl0' | Name: '' | Ip: '0.0.0.0' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_3]: 3ublic@111.222.333.444:
    # SetEnv[111.222.333.444_3]: MRTG_INT_IP="0.0.0.0" MRTG_INT_DESCR="tunl0"
    # MaxBytes[111.222.333.444_3]: 0
    # Title[111.222.333.444_3]: Traffic Analysis for 3 -- router
    # PageTop[111.222.333.444_3]: <H1>Traffic Analysis for 3 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>tunl0 </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # <TR><TD>Ip:</TD> <TD>0.0.0.0 ()</TD></TR>
    # </TABLE>


    ### Interface 4 >> Descr: 'gre0' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_4]: 4ublic@111.222.333.444:
    # SetEnv[111.222.333.444_4]: MRTG_INT_IP="" MRTG_INT_DESCR="gre0"
    # MaxBytes[111.222.333.444_4]: 0
    # Title[111.222.333.444_4]: Traffic Analysis for 4 -- router
    # PageTop[111.222.333.444_4]: <H1>Traffic Analysis for 4 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>gre0 </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # </TABLE>


    ### Interface 5 >> Descr: 'eth0' | Name: '' | Ip: '' | Eth: '00-02-b3-1c-2b-ac' ###

    Target[OndaPop02B-StarOS-eth0]: 5ublic@111.222.333.444:
    SetEnv[OndaPop02B-StarOS-eth0]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
    MaxBytes[OndaPop02B-StarOS-eth0]: 1250000
    Title[OndaPop02B-StarOS-eth0]: Traffic Analysis for 5 -- router
    PageTop[OndaPop02B-StarOS-eth0]: <H1>Traffic Analysis for 5 -- router</H1>
    <TABLE>
    <TR><TD>System:</TD> <TD>StarOS 2.10.0 (4693)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>alexandre@ondainternet.com.br</TD></TR>
    <TR><TD>Description:</TD><TD>eth0 </TD></TR>
    <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
    <TR><TD>ifName:</TD> <TD>eth0</TD></TR>
    <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
    </TABLE>


    ### Interface 6 >> Descr: 'ecb' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_6]: 6ublic@111.222.333.444:
    # SetEnv[111.222.333.444_6]: MRTG_INT_IP="" MRTG_INT_DESCR="ecb"
    # MaxBytes[111.222.333.444_6]: 0
    # Title[111.222.333.444_6]: Traffic Analysis for 6 -- router
    # PageTop[111.222.333.444_6]: <H1>Traffic Analysis for 6 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>ecb </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # </TABLE>


    ### Interface 7 >> Descr: 'ipacct' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_7]: 7ublic@111.222.333.444:
    # SetEnv[111.222.333.444_7]: MRTG_INT_IP="" MRTG_INT_DESCR="ipacct"
    # MaxBytes[111.222.333.444_7]: 0
    # Title[111.222.333.444_7]: Traffic Analysis for 7 -- router
    # PageTop[111.222.333.444_7]: <H1>Traffic Analysis for 7 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>ipacct </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # </TABLE>


    ### Interface 8 >> Descr: 'beacon' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_8]: 8ublic@111.222.333.444:
    # SetEnv[111.222.333.444_8]: MRTG_INT_IP="" MRTG_INT_DESCR="beacon"
    # MaxBytes[111.222.333.444_8]: 0
    # Title[111.222.333.444_8]: Traffic Analysis for 8 -- router
    # PageTop[111.222.333.444_8]: <H1>Traffic Analysis for 8 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>beacon </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # </TABLE>


    ### Interface 9 >> Descr: 'wlanbr' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    #
    # Target[111.222.333.444_9]: 9ublic@111.222.333.444:
    # SetEnv[111.222.333.444_9]: MRTG_INT_IP="" MRTG_INT_DESCR="wlanbr"
    # MaxBytes[111.222.333.444_9]: 1250000
    # Title[111.222.333.444_9]: Traffic Analysis for 9 -- router
    # PageTop[111.222.333.444_9]: <H1>Traffic Analysis for 9 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>wlanbr </TD></TR>
    # <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
    # </TABLE>


    ### Interface 10 >> Descr: 'wpcm0' | Name: '' | Ip: '' | Eth: '' ###

    Target[OndaPop02B-StarOS-wlan0]: 10ublic@111.222.333.444:
    SetEnv[OndaPop02B-StarOS-wlan0]: MRTG_INT_IP="" MRTG_INT_DESCR="wpcm0"
    MaxBytes[OndaPop02B-StarOS-wlan0]: 1250000
    Title[OndaPop02B-StarOS-wlan0]: Traffic Analysis for 10 -- router
    PageTop[OndaPop02B-StarOS-wlan0]: <H1>Traffic Analysis for 10 -- router</H1>
    <TABLE>
    <TR><TD>System:</TD> <TD>StarOS 2.10.0 (4693)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>alexandre@ondainternet.com.br</TD></TR>
    <TR><TD>Description:</TD><TD>wpcm0 </TD></TR>
    <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
    <TR><TD>ifName:</TD> <TD>wpcm0</TD></TR>
    <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
    </TABLE>


    ### Interface 11 >> Descr: 'cbq' | Name: '' | Ip: '' | Eth: '' ###
    ### The following interface is commented out because:
    ### * it is administratively DOWN
    ### * it is operationally DOWN
    ### * has a speed of 0 which makes no sense
    #
    # Target[111.222.333.444_11]: 11ublic@111.222.333.444:
    # SetEnv[111.222.333.444_11]: MRTG_INT_IP="" MRTG_INT_DESCR="cbq"
    # MaxBytes[111.222.333.444_11]: 0
    # Title[111.222.333.444_11]: Traffic Analysis for 11 -- router
    # PageTop[111.222.333.444_11]: <H1>Traffic Analysis for 11 -- router</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>router in Not Configured</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Not Configured</TD></TR>
    # <TR><TD>Description:</TD><TD>cbq </TD></TR>
    # <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
    # <TR><TD>ifName:</TD> <TD></TD></TR>
    # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
    # </TABLE>


    funciona... onde eh 111.222.333.444 eh o ip do staros





  4. Alexandre,

    O problema é que assim você está usando o sistema de análise de tráfego pelo número da interface o que não me serve já que eu trabalho com PPPoE e as interfaces vivem mudando de número...

    Código :
    Target[OndaPop02B-StarOS-wlan0]: [b]10[/b]:public@111.222.333.444:

    Eu gostaria de monitorar o tráfego nas interfaces que aceitam conexões PPPoE mas estou chegando a conclusao de que é impossível e terei que controlar apenas pela interface do backbone mesmo.






Tópicos Similares

  1. MRTG - SNMP Error no response received
    Por MrJoe no fórum Servidores de Rede
    Respostas: 1
    Último Post: 14-09-2009, 13:21
  2. Cacti monitorando WLA 5000 via snmp
    Por Colt no fórum Servidores de Rede
    Respostas: 0
    Último Post: 27-01-2009, 21:11
  3. mrtg com ucd-snmp
    Por thelinux no fórum Servidores de Rede
    Respostas: 0
    Último Post: 02-10-2003, 16:51
  4. mrtg com ucd-snmp
    Por thelinux no fórum Servidores de Rede
    Respostas: 0
    Último Post: 02-10-2003, 16:51
  5. MRTG + IPTABLES SEM SNMP
    Por rafaelpazcolles no fórum Servidores de Rede
    Respostas: 2
    Último Post: 05-09-2003, 00:43

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L