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
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to