net snmp TUT:编写MIB模块不起作用
我只是循序渐进地学习网络snmp教程,我真的不能得到正确的结果。 这里是链接 我也面临同样的问题,我甚至没有通过教程 以下是我的详细资料: 我的配置命令:net snmp TUT:编写MIB模块不起作用,snmp,net-snmp,Snmp,Net Snmp,我只是循序渐进地学习网络snmp教程,我真的不能得到正确的结果。 这里是链接 我也面临同样的问题,我甚至没有通过教程 以下是我的详细资料: 我的配置命令: ./configure --with-default-snmp-version="3" --with-sys-contact="@@no.where" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="
./configure --with-default-snmp-version="3" --with-sys-contact="@@no.where" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-mib-modules="nstAgentModuleObject"
配置后:
配置输出的一部分
checking for and configuring mib modules to use... nstAgentModuleObject default_modules.
nstAgentModuleObject default_modules snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx dism
毕竟:
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
SNMP Versions Supported: 1 2c 3
Building for: linux
Net-SNMP Version: 5.7.2.1
Network transport support: Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase
SNMPv3 Security Modules: usm
Agent MIB code: nstAgentModuleObject default_modules => snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
MYSQL Trap Logging: unavailable
Embedded Perl support: enabled
SNMP Perl modules: building -- embeddable
SNMP Python modules: disabled
Crypto support from: internal
Authentication support: MD5 SHA1
Encryption support: DES AES
Local DNSSEC validation: disabled
我使用nm检查函数是否已编译到库中
akamai@JNdev:~/Workspace/net-snmp-5.7.2.1/net-snmp-5.7.2.1/agent/.libs$ nm libnetsnmpmibs.so | grep init_nst
00000000000331c0 T init_nstAgentModuleObject
您实际上是在编写MIB模块,还是只是在尝试编译教程中的nstAgentModuleObject.h和nstAgentModuleObject.c?如果是后者,可能会将此作为文档中的一个可能错误报告给net snmp用户邮件列表?Hi Jolta:我只是按照官方教程在代理中插入了一个额外的OID,我还尝试添加一个子代理,但两者都不起作用。我正在使用Ubuntu14服务器和NetSNMP包5.7和5.6。我的工作是添加一些OID来监视一些设备。你知道这是一个错误还是我错过了什么?您以前使用过哪种snmp软件包?谢谢。嗨,Jolta,你知道添加或更改OID的更简单的方法吗?我只需要用它来检查我的ARM板GPIO状态。如果有其他方法可以做到这一点,对我来说也没问题。我在这里呆了大约两个星期,我在网上发现有人说有一个bug,但我不确定这是Ubuntu 14服务器还是ARM debianARMv7。你试过联系网络snmp用户邮件列表吗?嗨,Jolta,最后我放弃了,现在我将使用电子邮件报告状态,而不是网络snmp,我花了两周时间在snmp上,只想实现这么简单的功能。我认为使用网络snmp没有任何意义。