If an application which until now has no calls to net-snmp needs to send
out a trap to all the trap sinks defined, what is the proper way to do it?
I've found the following in agent_trap.h:
send_easy_trap(...)
send_trap_pdu(...)
send_v2trap(...)
send_trap_vars(...)
send_enterprise_trap_vars(...)
netsnmp_send_traps(...)
send_trap_to_sess(...)
But from what I found with Google, it seems these are specific to "agents",
which I think is something like AgentX? Or can I call these from any
running application with the varlist I need to send out?
Related: If there are multiple trapsinks defined, but I have a
netsnmp_session to completely different address, what happens if I call
send_trap_to_sess()? Will it really send a trap via that session even if
it isn't a proper trap sink?
Thanks!
Stéphane
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders