[erlang-questions] Sending SNMP traps
Cameron Kerr
ckerr@REDACTED
Thu May 14 21:43:13 CEST 2009
Do you perhaps need a call to snmp:start/0 or snmp:start_agent/0 ?
When you say the agent is running, are you referring to a net-snmp
agent, or an Erlang snmp: or snmpa: agent?
On 15/05/2009, at 2:40 AM, Attila Rajmund Nohl wrote:
> Hello!
>
> I try to send an SNMP trap from erlang to an external manager
> (snmptrapd from net-snmp), but it doesn't want to work. I've
> configured the agent using snmp:config(), but when I try to send the
> trap, I get this:
> 3> snmpa:send_notification(snmp_master_agent, coldStart, no_receiver,
> "standard trap", []).
> ** exception exit: {noproc,{gen_server,call,
> [snmp_master_agent,
> {send_trap,coldStart,"standard
> trap",[],no_receiver,[]},
> infinity]}}
> in function gen_server:call/3
>
> The SNMP agent seems to be running, because I can run snmpwalk against
> it, so what's the problem?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list