This is a discussion on Modules not being included within the SNMP Users forums, part of the Networking and Network Related category; Hi all, After months away from SNMP, I decided to modularize my MIB, which was getting a bit chaotic. The ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
After months away from SNMP, I decided to modularize my MIB, which was getting a bit chaotic. The problem I'm having is that I can't seem to get my modules included in the agent, and can't figure out what I'm doing wrong. I'm still using 5.1, and cross-compiling for ARM. Here's the relevant section of my configure script : --with-mib-modules="fourD/wifi" Selected output from running this configure script is given below : checking for and configuring mib modules to use... snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute fourD/wifi. checking for and configuring mib modules pieces to use... snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute fourD/wifi snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmUser util_funcs mibII/vacm_context. Net-SNMP Version: 5.1 Building for: linux Network transport support: Callback Unix TCP UDP SNMPv3 Security Modules: usm Agent MIB code: snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute fourD/wifi SNMP Perl modules: disabled Embedded perl support: disabled Authentication support: MD5 SHA1 Encryption support: DES AES128 AES192 AES256 The .h file (fourD.h in ../agent/mibgroup) currently contains a single line (in future it should conatin several, but for starters ...) : config_require(fourD/wifi) Under the subdirectory fourD, the wifi.h file contains : config_require(util_funcs) extern void init_fourD_wifi(void); extern FindVarMethod var_fourD_wifi; extern WriteMethod write_wifi; In the .c file I call REGISTER_MIB("fourD/wifi", ... ); When I list agent/mibgroup/mib_modules_init.h, I do not find my init routine (init_fourD_wifi) listed. Obviously, when I then compile the agent, my sub-agent is not included. It is however compiled. Any suggestions would be greatly appreciated.... Best regards Steve Comfort ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |