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/snmpd
and
setMIBS=UCD-SNMP-MIB
(this
is the key fix)
5.
Restart snmpd :/etc/init.d/snmpd
restart