On 24/04/07, rama p <[EMAIL PROTECTED]> wrote:
> The error is coming only when both trapsink and trap2sink lines are present
> in snmpd.conf file.
OK - I've found the problem.
It's a bug in 5.3.1, that has since been fixed
(which is why I wasn't seeing it).
Patch is as follows:
--- branches/V5-3-patches/net-snmp/agent/agent_trap.c 2007/01/09 10:08:36
15742
+++ branches/V5-3-patches/net-snmp/agent/agent_trap.c 2007/01/16 10:03:04
15757
@@ -865,6 +865,9 @@
if (sess->version == SNMP_VERSION_1 &&
(template_pdu->command != SNMP_MSG_TRAP))
return; /* Skip v1 sinks for v2 only traps */
+ if (sess->version != SNMP_VERSION_1 &&
+ (template_pdu->command == SNMP_MSG_TRAP))
+ return; /* Skip v2+ sinks for v1 only traps */
#endif
template_pdu->version = sess->version;
pdu = snmp_clone_pdu(template_pdu);
or see SVN revision 15757
(http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/branches/V5-3-patches/net-snmp/agent/agent_trap.c?r1=15742&r2=15757)
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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