+ Responder ao Tópico



  1. #1
    eicke
    Visitante

    Padrão Instalacao MRTG (2)

    Galera acabei de instalar o mrtg e o net-snmp em uma servidor (Obrigado pela ajuda).
    Minha maquina tem duas interfaces de rede, inclusive o ifconfig mostra isto, mas o mrtg.cfg gerado tem muitas interfaces e a maioria delas ta assim:

    ### Interface 0 >> Descr: '' | Name: '' | Ip: '12.0' | Eth: '' ###
    ### The following interface is commented out because:
    ### * has a speed of which makes no sense
    ### * got 'Received SNMP response with error code
    ### error status: noSuchName
    ### index 1 (OID: 1.3.6.1.2.1.2.2.1.10.0)
    ### SNMPv1_Session (remote host: "192.168.0.1" [192.168.0.1].161)
    ### community: "public"
    ### request ID: 1360320837
    ### PDU bufsize: 8000 bytes
    ### timeout: 2s
    ### retries: 5
    ### backoff: 1)' from interface when trying to query
    #
    # Target[192.168.0.1_0]: 0[email protected]:
    # SetEnv[192.168.0.1_0]: MRTG_INT_IP="12.0" MRTG_INT_DESCR=""
    # MaxBytes[192.168.0.1_0]: 0
    # Title[192.168.0.1_0]: Traffic Analysis for 0 -- demo
    # PageTop[192.168.0.1_0]: <H1>Traffic Analysis for 0 -- demo</H1>
    # <TABLE>
    # <TR><TD>System:</TD> <TD>demo in Unknown (edit /etc/snmp/snmpd.conf)</TD></TR>
    # <TR><TD>Maintainer:</TD> <TD>Root &lt;[email protected]&gt; (configure /etc/snmp/snmp.local.conf)</TD></TR>
    # <TR><TD>Description:</TD><TD> </TD></TR>
    # <TR><TD>ifType:</TD> <TD> ()</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>12.0 ()</TD></TR>
    # </TABLE>

    A unica que nao esta comentada ta assim:

    ### Interface 2 >> Descr: '' | Name: '' | Ip: '22.1.1.2.192.168.0.9' | Eth: '00-e0-7d-f8-36-ea' ###

    Target[192.168.0.1_2]: 2[email protected]:
    SetEnv[192.168.0.1_2]: MRTG_INT_IP="22.1.1.2.192.168.0.9" MRTG_INT_DESCR=""
    MaxBytes[192.168.0.1_2]: 1250000
    Title[192.168.0.1_2]: Traffic Analysis for 2 -- demo
    PageTop[192.168.0.1_2]: <H1>Traffic Analysis for 2 -- demo</H1>
    <TABLE>
    <TR><TD>System:</TD> <TD>demo in Unknown (edit /etc/snmp/snmpd.conf)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>Root &lt;[email protected]&gt; (configure /etc/snmp/snmp.local.conf)</TD></TR>
    <TR><TD>Description:</TD><TD> </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>
    <TR><TD>Ip:</TD> <TD>22.1.1.2.192.168.0.9 ()</TD></TR>
    </TABLE>

    O IP ta sei la o que!!!
    alguem tem ideia do q esta acontecendo?
    Eicke.

  2. #2
    Spelk
    Visitante

    Padrão Instalacao MRTG (2)

    Se vc for utilizá-lo para monitorar apenas esse servidor, dê uma olhada nesse artigo:

    http://brlinux.linuxsecurity.com.br/...is/001627.html

    Além de ser de fácil configuração, não é preciso utilizar o service SNMP