I tried to add init_mib_modules() but I get an undefined reference in the build process of the subagent. So I think this is the reason why the tables are not working.
I am able to call: init_agent() init_snmp() init_master_agent() But not: init_mib_modules() Is there any info on how to compile/build/link net-snmp to work in the environment where it is called as a master_agent from within a subagent via init_master_agent(). Where it is not run as snmpd daemon? Apparently I am not compiling/linking it correctly. Most of what I read on the net-snmp web site describes how to make, and install a net-snmp daemon (snmpd), but I have not been able to locate the info on how to build it in a Linux environment where it is started up via init_master_agent. Any info on how to do this or where this information can be found would be greatly appreciated. thanks -----Original Message----- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Saturday, June 13, 2009 6:08 AM To: Joan Landry Cc: net-snmp-users@lists.sourceforge.net Subject: Re: How do you get the default mibs to work when the master agent is run via init_master_agent(); 2009/6/12 Joan Landry <joan.lan...@overturenetworks.com>: > When I run the master agent internally via init_master_agent(); I get > nothing for the default mibs - the master agent in this case does not > respond with any data for the objects in these tables. As if there are > no handlers being invoked. Are these modules actually being registered? Try turning on debugging, and see if the per-module initialisation code is being called. > I have tried numerous things such as calling mib_init() and nothing > works. I'm sorry, but that's not really a lot of help. "tried various things" is so vague as to be useless. We'd need to know the *exact* initialisation code that you're using. I'd suggest you start with the core of the snmpd.c main() routine, namely: init_agent() init_mib_modules() init_snmp() init_master_agent() and work from there. Dave ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ 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/listinfo/net-snmp-users