web-dev-qa-db-ja.com

/usr/local/share/snmp/snmpd.conf:5行目:エラー:不明なペイロードOID

net-snmp snmpでubuntuを使用すると動作しますが、sys.logで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

エラー

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)
4

Ubuntu 12.04(私に同じメッセージを表示させていた)の場合、SNMPを機能させるための完全な手順は次のようになります。

  1. Snmpdをインストールします:apt-get install snmpd
  2. マルチバースリポジトリが有効になっていることを確認します。

    apt-get install python-software-properties
    add-apt-repository 'deb http://archive.ubuntu.com/ubuntu precise multiverse'
    apt-get update
    
  3. Snmp-mibs-downloaderをインストールします:apt-get install snmp-mibs-downloader

  4. 編集/etc/default/snmpd/そして設定MIBS=UCD-SNMP-MIB(これが重要な修正です)

  5. Snmpdを再起動します:/etc/init.d/snmpd restart

4
lstg

Debianドキュメント によると、/etc/default/snmpdの次の行をコメント化してみてください:

export MIBS=/usr/share/snmp/mibs

出典: http://ubuntuforums.org/showpost.php?p=12087748&postcount=2

0
quanta