• ubuntu snmp Error: unknown payload OID


    ubuntu snmp Error: unknown payload OID
    2013-11-12 15:51:48

    ubuntu12.04.3中安装snmpd后,启动snmpd服务时报错:

    Nov 12 15:34:50 ubuntu snmpd[929]: Received TERM or STOP signal... shutting down...
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: prNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: prNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: prErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: prErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: prErrorFlag
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: memErrorName
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: memErrorName
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: memSwapErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: memSwapErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: memSwapError
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: extNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: extNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: extOutput
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: extOutput
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: extResult
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: dskPath
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: dskPath
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: dskErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: dskErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: dskErrorFlag
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: laNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: laNames
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: laErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: laErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: laErrorFlag
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: fileName
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: fileName
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: fileErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: fileErrorMsg
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: fileErrorFlag
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: payload OID: snmperrErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Unknown payload OID: snmperrErrMessage
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: Unknown payload OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: trigger OID: snmperrErrorFlag
    Nov 12 15:34:52 ubuntu snmpd[1544]: /etc/snmp/snmpd.conf: line 143: Error: unknown monitor OID
    Nov 12 15:34:52 ubuntu snmpd[1544]: Turning on AgentX master support.
    Nov 12 15:34:52 ubuntu snmpd[1544]: net-snmp: 33 error(s) in config file(s)
    Nov 12 15:34:52 ubuntu snmpd[1544]: NET-SNMP version 5.4.3


    解决办法:

    http://serverfault.com/questions/426754/usr-local-share-snmp-snmpd-conf-line-5-error-unknown-payload-oid


    1. Install snmpd :apt-get install snmpd

    2. Ensure the multiverse repository is enabled :

    apt-get install python-software-properties
    add-apt-repository 'deb http://archive.ubuntu.com/ubuntu precise multiverse'
    apt-get update

    3. Install the snmp-mibs-downloader :apt-get install snmp-mibs-downloader

    4. Edit/etc/default/snmpdand setMIBS=UCD-SNMP-MIB(this is the key fix)

    5. Restart snmpd :/etc/init.d/snmpd restart

     




  • 相关阅读:
    【React】哪些数据应该放到state中?
    React组件生命周期及组件之间的通信
    【Flex布局教程】语法篇
    jQuery动态创建二级下拉菜单
    Web前端工程师成长之路——知识汇总
    Jpcap使用指南
    安装/重装tomcat(组图)
    贪吃蛇小游戏(含详细思路及源代码)
    servlet中如何操作数据库
    svn的使用方法
  • 原文地址:https://www.cnblogs.com/aserlinux/p/3765459.html
Copyright © 2020-2023  润新知