On 18/08/06, Jenny Paul <[EMAIL PROTECTED]> wrote:
>         I need to embed net-snmp agent within my application. I have
> generated the code for my MIB using mib2c. The problem is that, all the
>  values for the SNMP parameters is provided by my application.

Does your application include some form of API to supply this
information to external applications.  (e.g. a status file, or a
/proc-style interface, or a socket that can be read to retrieve this
information).   If so, then you could write a standalone MIB module
that used this API, and link this in with the net-snmp agent.

If there isn't such an API, and the necessary information is purely
internal to your application, then you're really looking at AgentX.
You can embed an agentX subagent within your application, and have
this register with the Net-SNMP (or any other) master agent.

The MIB module code is much the same in either case, but in the latter
scenario, you'd be able to use internal APIs to retrieve the necessary
information.

The on-line tutorial (http://www.net-snmp.org/tutorial/tutorial-5)
includes the basic framework for a subagent - you should be able to
use this as a model for the code that would need to be added to your
application.

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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to