fad*_*bee 23 snmp ubuntu-12.04
我已经全新安装了 Ubuntu 12.04LTS,并安装了 snmpd 和 snmp 软件包。
如果我输入:
snmpwalk -m ALL -v2c -c public localhost 1.3
我收到大量错误,形式如下:
Cannot adopt OID in SQUID-MIB: cacheClients ::= { cacheProtoAggregateStats 15 }
Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendLineIndex ::= { nsExtendOutput2Entry 1 }
Cannot adopt OID in NET-SNMP-EXTEND-MIB: nsExtendOutLine ::= { nsExtendOutput2Entry 2 }
Cannot adopt OID in UCD-SNMP-MIB: laIndex ::= { laEntry 1 }
Cannot adopt OID in UCD-SNMP-MIB: laNames ::= { laEntry 2 }
Cannot adopt OID in UCD-SNMP-MIB: laLoad ::= { laEntry 3 }
Cannot adopt OID in UCD-SNMP-MIB: laConfig ::= { laEntry 4 }
Cannot adopt OID in UCD-SNMP-MIB: laLoadInt ::= { laEntry 5 }
Cannot adopt OID in UCD-SNMP-MIB: laLoadFloat ::= { laEntry 6 }
Cannot adopt OID in UCD-SNMP-MIB: laErrorFlag ::= { laEntry 100 }
Cannot adopt OID in UCD-SNMP-MIB: laErrMessage ::= { laEntry 101 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::= { netSnmpNotifications 3 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyShutdown ::= { netSnmpNotifications 2 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyStart ::= { netSnmpNotifications 1 }
Run Code Online (Sandbox Code Playgroud)
字面上有数百个。
如果 snmp 甚至不喜欢发行版包含的 MIB,我有什么机会自己使用?(我在另一台机器上使用自己的 MIB 遇到了相同形式的错误,这就是为什么我设置了全新安装来测试发行版的健全性。)
其他发行版有这个问题吗?我在这里忽略了一些明显的东西吗?
fad*_*bee 40
apt-get install snmp-mibs-downloader
上面的命令下载免费 MIB(包含在发行版中)需要工作的各种非免费 MIB。
安装这个非免费包后,仍然有一些错误,但snmpwalk
现在可以工作了。