[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On 20/10/06, Patai Tamás <[EMAIL PROTECTED]> wrote:
> So if I understand correctly the common way for processing SNMP traps in
> net-snmp is to pass the trap content in a string format to an
> user-application, that parses this string, get the MIB variables from it and
> stores them in its local variables associated with the ones in the trap.
The simplest way to process SNMP traps with the Net-SNMP tools is
to pass the trap content in a string format to a user application.
What that application then chooses to do with this information is up to it.
That's not the only way to handle things - it would be quite feasible to
code a new trap handler, following the model of the standard handlers
in 'apps/snmptrapd_handler.c', and registering this using
netsnmp_add_global_traphandler() or netsnmp_add_traphandler()
[See 'apps/snmptrapd.c' for examples].
But that would involve tweaking the code of the snmptrapd daemon, and
recompiling. We haven't yet tackled dynamic loading of trap handler code.
I've never really looked at 'snmptt', so have no idea how easy that would
be to extend.
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