debian snmp Error: unknown payload OID

debian中安装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

这是因为缺少snmp-mibs-downloader的缘故。下面是安装包:先要安装附加组件: smistrip

https://packages.debian.org/sid/all/snmp-mibs-downloader/download

安装完之后修改配置文件 /etc/default/snmpd 如下这行:

export MIBS=UCD-SNMP-MIB

重启snmpd,大功告成!

网友评论1

  1. 0楼
    ashu:

    好东西!!!

    2014-08-23 20:23 [回复]

发表评论

表情
还能输入210个字