On Tue, 2010-09-07 at 09:20 +0530, Abraham Varricatt wrote:
> Following the tutorials in the wiki, I've figured out how to
> compile/build a new MIB to the snmpd agent. The main step is to
> configure it with this,
> 
> ./configure --with-mib-modules="nstAgentModuleObject"
> 
> (above line taken from wiki)
> 
> Suppose I want to bundle this MIB (nstAgentModuleObject) into the
> standard MIB list so that it would get included automatically when I
> run,
> 
> ./configure
> 
> How would I do it?

The standard mib list only contain one item, default_modules.

This corresponds to the file agent/mibgroup/default_modules.h

That file depends on all the default mibs, so you would have to add the
following line to that file:

config_require(nstAgentModuleObject)

No, there should not be a semicolon at the end of the line.

/MF


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to