On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: > 1- I'm thinking of extending the agent with a .so, is this the right approach?
There are four ways of extending the agent. a) Compiling the MIB module into the main agent binary. b) Compiling the MIB module into a .so file, and loading this dynamically at runtime c) Compiling the MIB module into a separate subagent (perhaps embedded within another application), and connecting to the master agent at run time. d) Invoking some sub-command or script to return the necessary information. The MIB module code is effectively the same for the first three options (by deliberate design), and the first two are pretty much identical once the agent is up and running. The first approach is probably the easiest for initial development. You can always switch to b) or c) once you're happy that the module is working properly. > 2- how should I get the application data from the .so? Should I just > choose a suitable IPC mechanism (sockets, etc)? Use whatever mechanism feels most appropriate for that information. It's outside the scope of SNMP how you obtain the management information - we're really only in the business of passing that information around between SNMP entities. If there isn't a suitable "public API", then that would tend to push you towards embedding an AgentX subagent within your application (where it could take advantage of private internal APIs, or global data, etc). If there is a public API, then that leaves your options open. Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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