Dear Dave and other Net-SNMP coders,
I am using Net-snmp 5.3.1 on 64 bit RHEL 4 linux os. My code is subagent.
I have been trying to debug the agent crash while sending a v2 trap. The stack trace shows that the args for send_enterprise_trap_vars are not as they are supposed to be. I think that the first two values should be -1, but they have different values. I am using send_v2trap function which basically calls the above function. I have given the stack trace for reference. 
I have few questions:
1. Should I be using the send_enterprise_trap_vars directly instead of send_v2trap.
2. I have not defined enterprise OID in the snmpd.conf and I have not compiled with that enterprise option. Would this be a problem. I always use v2 traps.
3. My snmpd.conf file has the line trap2sink  <dest-host-address-here> <community-string> 162. Is this right?

I greatly appreciate your help in solving this problem.

Thank you very much
Reddy

==========Stack Trace====================
#0  0x0000003460b0b76a in send () from /lib64/tls/libpthread.so.0
#1  0x00000000004a881e in netsnmp_unix_send (t=0x812cf0, buf=0xa4f410, size=528,
    opaque=0xffffffffffffffff, olength=0x0) at snmpUnixDomain.c:163
#2  0x0000000000485268 in snmp_sess_async_send (sessp=0x82d2f0, pdu=0xa49db0, callback=0, cb_data=0x0)
    at snmp_api.c:4876
#3  0x0000000000445d0a in send_trap_to_sess (sess=0x8308b0, template_pdu=0x835770) at agent_trap.c:883
#4  0x0000000000445f1d in netsnmp_send_traps (trap=8572784, specific=8607600, enterprise=0x5f0660,
    enterprise_length=10, vars=0x8500d0, context=0x0, flags=0) at agent_trap.c:783
#5  0x0000000000446293 in send_enterprise_trap_vars (trap=9, specific=10810384, enterprise=0x210,
    enterprise_length=-1, vars=0x0) at agent_trap.c:804
#6  0x0000000000423afd in send_pnuBadPBSStdVCurrent_trap (newAlarmEvent=0x7fbfffaee8)
    at notify_pnu.c:2254
#7  0x0000000000436e8d in CAlarmAgent::SendTrap (this=0x5f5700, pAlarmMessage=0x7fbfffaee8)
    at CAlarmAgent.cpp:228
#8  0x0000000000436920 in CAlarmAgent::GenerateAlarm (this=0x5f5700, pAlarmMessage=0x7fbfffaee8)
    at CAlarmAgent.cpp:83
#9  0x000000000040ddc7 in CNetmanTask::HandleLocalMsg (this=0x777a30, p_msg=0x7fbfffaee8)
    at CNetmanTask.cpp:81
#10 0x000000000043aa0c in CLocalTask::DispatchMessage (this=0x777a30) at CLocalTask.cpp:184
#11 0x0000000000405dbc in HandleNormalMsgThread () at netman.cpp:157
#12 0x00000000004062b0 in main (argc=9, argv=0x6) at netman.cpp:442


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to