+ Responder ao Tópico



  1. #1

    Padrão Snmp e mrtg

    Pessoal estou tentando configurar o SNMTP no Debian Squeeze e nao estou conseguindo, aparece o erro:

    root@gw:~# /etc/init.d/snmpd status
    snmpd is running.
    snmptrapd is not running ... failed!

    Ai quando executo o comando do MRTG:


    root@gw:~# cfgmaker "teste"@127.0.0.1 > /etc/mrtg.cfg
    SNMP Error:
    no response received
    SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
    community: "teste"
    request ID: -1812739261
    PDU bufsize: 8000 bytes
    timeout: 2s
    retries: 5
    backoff: 1)
    at /usr/share/perl5/SNMP_util.pm line 629
    SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected]::::::v4only
    at /usr/bin/cfgmaker line 961
    WARNING: Skipping [email protected]: as no info could be retrieved


    Alguém ja viu esse problema?

    Existe algum manual para a instalação do SNMP e MRTG para Debian 6 Squeeze?

    Obrigado

    Leandro Dutra

  2. #2

    Padrão Re: Snmp e mrtg

    Pessoal consegui resolver.

    Configurando o SNMPD.conf


    #vim /etc/snmp/snmpd.conf

    agentAddress udp:161,udp6:[::1]:161
    view systemonly included .1.3.6.1.2.1.1
    view systemonly included .1.3.6.1.2.1.25.1
    rocommunity public localhost

    Sair salvando e reinicia o serviço:

    #/etc/init.d/snmpd restart

    MRTG

    #cfgmaker "public"@127.0.0.1 > /etc/mrtg.cfg

    Editar o arquivo mrtg.cfg se estiver com erro

    MaxBytes[127.0.0.1_2]: 0

    Troque pela linha

    MaxBytes[127.0.0.1_2]: 1250000

    Agora adicione a linha:

    Options[127.0.0.1_2]: bits

    E execute o comando:

    #indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html


    Pronto agora aguarde 5 minutos.


    Obrigado