jonnystorm / snmp-elixir

An SNMP client library for Elixir
Mozilla Public License 2.0
33 stars 12 forks source link

Possibility to send snmp traps #55

Closed D4no0 closed 2 years ago

D4no0 commented 2 years ago

Is it possible to send currently snmp traps using this library? I couldn't find much information in erlang documentation about this either.

jonnystorm commented 2 years ago

This library is only intended for use by SNMP clients. However, see these Erlang agent examples, particularly the bottom section, "Trap Sending."

Note that, while the above example is instructive, send_trap has been replaced by send_notification, and only the latter should be used. The documentation may be found here.

By all means, take whatever you can from snmp_ex to fill in the gaps. I wish you luck!