Hi, Has anybody any clue ?
On Tue, Mar 29, 2011 at 3:55 PM, Nilesh karle <nilskarl...@gmail.com> wrote: > Hi, > > I am using net-snmp version 5.4.1. and notification-Log mib for logging the > Notifications. > > When I create trap and send to targets, I can receive the same at targets. > But, > the traps are not getting logged in > nlmLogTable/nlmLogVariableTable .[Notification-Log mib] > > With some debugging, I found that the callbacks functions are not valid > after startup trap is send. > > > int > netsnmp_send_traps(int trap, int specific, > oid * enterprise, int enterprise_length, > netsnmp_variable_list * vars, > char * context, int flags) > { > -- > -- > -- > -- > if (template_v1pdu) > snmp_call_callbacks(SNMP_CALLBACK_APPLICATION, > SNMPD_CALLBACK_SEND_TRAP1, template_v1pdu); > if (template_v2pdu) > snmp_call_callbacks(SNMP_CALLBACK_APPLICATION, > SNMPD_CALLBACK_SEND_TRAP2, template_v2pdu); > -- > } > > > Can anybody tell me what is wrong here. Who disables/controls the callbacks > ? > If this works well, i should be able to get the traps logged in the tables. > > Thanks, > Nils > > > >
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders