sending traps

"dan anderson" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
In an attempt to send traps from a standalone, I've done the following:

create_trap_session("localhost", 0, "public", 1, SNMP_MSG_TRAP2);
init_traps();
[ populate notification_vars ]
send_v2trap(notification_vars);

But without success. When I step through in gdb, the sinks list is
empty. I've tried using netsnmp_config("trap2sink localhost"); as
well. (Also, snmpd_parse_config_trap2sink("", "localhost");, but that
segfaults in a tokenizer - even when there's whitespace around
localhost - and I can't really see why.)

Am I doing something ludicriously wrong somewhere? Does anyone happen
to have sample code (I've searched!) for sending a trap from a
standalone? Or even for create_trap_session?

Cheers,
-Dan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.