What's required for a non-threaded AgentX++ subagent?

James Brokenbek jbrokenbek____celion.com
Mon Apr 28 17:48:34 CEST 2003


Frank et al.,

I've got a working, single-threaded, v3.5.10c Agent++ agent that I now
want to run as a v1.4.7 AgentX++ subagent "underneath" a v5.0.8 net-snmp
master agent on FreeBSD 4.3.  I've made the changes in my code
prescribed by the AgentX++ manual on page 25 (e.g., #includes,
AgentXSlave usage, etc.) but compilation generates the following errors:

include/agentx_def.h:31: #error AGENTPP_USE_THREAD_POOL must be defined
in agent++.h of AGENT++ >= v3.5c

include/agentx_threads.h:30: #error "To use AgentX++ threads must be
enabled in AGENT++"

Since AgentX++ *sub*agents are supposed to support single-threaded
architectures, I was just going to work around this by changing some of
the agentx++ includes, but I figured I'd better check first if there was
a recommended approach to this.  So, is there anything in particular I
should be doing here?  

Thanks for your help.  (BTW, the seg fault problem I had a while back
was due to linking to some stale libraries which I had overlooked.)

James Brokenbek
Celion Networks, Inc.
Richardson, TX USA



More information about the AGENTPP mailing list