/usr/local/share/snmp/snmpd.conf: linha 5: Erro: OID de payload desconhecido

4

usando o ubuntu com net-snmp trabalho snmp mas em sys.log eu vejo um monte de erros sobre snmpd.conf

snmpd.conf :

rwcommunity community 10.0.0.1
rwcommunity community 10.0.0.2
agentAddress  udp:10.0.0.1:161

view   systemonly  included   .1.3.6.1.2.1.1
view   systemonly  included   .1.3.6.1.2.1.25.1


                                                 #  Default access to basic system info
rocommunity public  default    -V systemonly

rouser   authOnlyUser

sysLocation    Sitting on the Dock of the Bay
sysContact     Me <[email protected]>

sysServices    72

proc  mountd                          
proc  ntalkd    4                        
proc  sendmail 10 1

disk       /     10000
disk       /var  5%
includeAllDisks  10%

load   12 10 5

trapsink     localhost public

iquerySecName   internalUser       
rouser          internalUser

defaultMonitors          yes

linkUpDownNotifications  yes

master          agentx

erros :

Sep 12 16:35:00 test snmpd[5485]: payload OID: prNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: prNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: prErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: prErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: prErrorFlag
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: memErrorName
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: memErrorName
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: memSwapErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: memSwapErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: memSwapError
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: extNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: extNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: extOutput
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: extOutput
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: extResult
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: dskPath
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: dskPath
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: dskErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: dskErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: dskErrorFlag
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: laNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: laNames
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: laErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: laErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: laErrorFlag
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: fileName
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: fileName
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: fileErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: fileErrorMsg
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: fileErrorFlag
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: payload OID: snmperrErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: Unknown payload OID: snmperrErrMessage
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: Unknown payload OID
Sep 12 16:35:00 test snmpd[5485]: trigger OID: snmperrErrorFlag
Sep 12 16:35:00 test snmpd[5485]: /usr/local/share/snmp/snmpd.conf: line 5: Error: unknown monitor OID
Sep 12 16:35:00 test snmpd[5485]: Turning on AgentX master support.
Sep 12 16:35:00 test snmpd[5485]: net-snmp: 33 error(s) in config file(s)
    
por Avihai Marchiano 12.09.2012 / 15:44

2 respostas

4

Para o Ubuntu 12.04 (que estava causando as mesmas mensagens para mim), as etapas completas para o funcionamento do SNMP parecem ser as seguintes:

  1. Instale o snmpd: apt-get install snmpd
  2. Certifique-se de que o repositório multiverse esteja ativado:

    apt-get install python-software-properties
    add-apt-repository 'deb http://archive.ubuntu.com/ubuntu precise multiverse'
    apt-get update
    
  3. Instale o snmp-mibs-downloader: apt-get install snmp-mibs-downloader

  4. Edite /etc/default/snmpd/ e defina MIBS=UCD-SNMP-MIB (essa é a correção principal)

  5. Reinicie o snmpd: /etc/init.d/snmpd restart

por 01.08.2013 / 13:33
0

De acordo com a documentação Debian , tente comentar a seguinte linha em /etc/default/snmpd :

export MIBS=/usr/share/snmp/mibs

Fonte: link

    
por 12.09.2012 / 16:26