+ Responder ao Tópico



  1. #1

    Padrão Monitorando o StarOS (MRTG + SNMP)

    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. #2
    xargs -n 1 kill -9 Avatar de sergio
    Ingresso
    Jan 2004
    Localização
    Capital do Triângulo
    Posts
    5.201
    Posts de Blog
    9

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)


  3. #3

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)

    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.

  4. #4

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)

    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]: 1[email protected]:
    # 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]: 2[email protected]:
    # 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]: 3[email protected]:
    # 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]: 4[email protected]:
    # 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]: 5[email protected]:
    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>[email protected]</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]: 6[email protected]:
    # 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]: 7[email protected]:
    # 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]: 8[email protected]:
    # 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]: 9[email protected]:
    # 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]: 10[email protected]:
    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>[email protected]</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]: 11[email protected]:
    # 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



  5. #5

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)

    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]:[email protected]:

    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.

  6. #6

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)

    na verdade faço todo controle nos servidores "terrestres" ... o staros fica apenas como bridge ... apenas repassando o trafego para o servidor e o servidor controlando...

    aproveitando..

    voce tem os MIBS que pegam os clientes online ? e o mib do sinal ?


    consegui os mibs do ap2000 e da terabeam ap plus... no staros nao sei quais.. e com o snmpwalk nao consegui achar...

  7. #7

    Padrão Re: Monitorando o StarOS (MRTG + SNMP)

    Alexandre,

    É realmente assim pra mim não irá funcionar... hehehe...

    O MIB eu não tenho mas no forum internacional do StarOS tem vários scripts para fazer essas verificações usando o StarUtil (muito bom o software) e integrar os resultados do StarUtil ao MRTG. Faz 1001 coisas esse StarUtil.