On Wed, 15 Jun 2005 10:17:58 +0100 Dave wrote: DS> On Mon, 2005-06-13 at 23:12, Robert Story wrote: DS> > [...]. Unfortunately, there is no way DS> > to configure snmptrapd to not be a sub-agent. I think this is a bug. DS> DS> I'm not sure that I'd categorise this as a bug. But there should DS> definitely be some way to configure the trap daemon to run standalone. DS> DS> a) At run time (don't initialise the AgentX code) DS> [...] DS> > The current default is on. I think, like the master agent, DS> > it should be off DS> DS> Ummm.... DS> Not sure. My gut reaction is to keep things as they are by default, DS> and just add the flexibility to exclude this facility.
Turns out that this isn't as easy as I'd hoped. The only way to do this would be a command line option, since config file parsing happens *after* the sub-agent int needs to be called. So I'm thinking I may just leave the agentx stuff enabled, and deal with disabling the notification log module (the source of the leak). But, to play the devil's advocate, snmpd requires configuration to turn on the AgentX master agent. Wouldn't it make sense that snmptrapd wouldn't assume it was configured, and also require configuration to enable sub-agent functionality? DS> b) At compile time (don't include the AgentX code at all) DS> DS> Where b) is a separate decision from whether AgentX support is included DS> in the agent libraries (though this would obviously be pre-requisite) DS> [...] DS> Plus a "configure" option to disable this from the build completely. What's the difference between a configure option and b? I've done the configure option, and I think that's the same as b. DS> > probably makes sense to have a cmd line flag and a conf file token. DS> DS> Agreed. except, as I mentioned above, conf file tokens get processed to late. The is the same reason there is no snmpd token that works with should_init(). -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
