On Wed, 2005-01-12 at 01:47, Christopher Fowler wrote: > I've written a traphandler in C that is executed by snmptrapd when a > trap comes in. snmptrapd spits out all information via STDOUT. Is > there a way to get the actual data instead of the ASCII version of the > trap.
You should be able to wrap your code within an 'netsnmp_trapd_handler' API framework, and link this into the snmptrapd receiver. See 'apps/snmptrapd_handlers.c' for examples. Unfortunately, this would currently need to be done by recompiling snmptrapd - it doesn't support the same sort of "dynamically loadable module" mechanism that the agent does. Dave ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
