Hi, the snmptrapd V5.5 seems to have a problem with the notification-log- mib: # my snmptrapd.conf: disableAuthorization yes doNotRetainNotificationLogs NO # I do NOT disable support for the NOTIFICATION-LOG-MIB.
Normally the snmptrapd program keeps a record of the traps received, which can be retrieved by querying the nlmLogTable and nlmLogvariableTable tables. But the current version does not work: $ /usr/local/sbin/snmptrapd -C -c c:/usr/etc/snmp/snmptrapd.conf -f - Le -x localhost -Dnotification,nlm,initialize_table_nl registered debug token notification, 1 registered debug token nlm, 1 registered debug token initialize_table_nl, 1 notification_log: registering with 'snmptrapd' context initialize_table_nlmLogVariableTable: adding index nlmLogName of type ASN_OCTET_STR to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding index nlmLogIndex of type ASN_UNSIGNED to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding index nlmLogVariableIndex of type ASN_UNSIGNED to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableIndex (#1) of type ASN_UNSIGNED to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableID (#2) of type ASN_OBJECT_ID to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableValueType (#3) of type ASN_INTEGER to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableCounter32Val (#4) of type ASN_COUNTER to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableUnsigned32Val (#5) of type ASN_UNSIGNED to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableTimeTicksVal (#6) of type ASN_TIMETICKS to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableInteger32Val (#7) of type ASN_INTEGER to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableOctetStringVal (#8) of type ASN_OCTET_STR to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableIpAddressVal (#9) of type ASN_IPADDRESS to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableOidVal (#10) of type ASN_OBJECT_ID to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableCounter64Val (#11) of type ASN_COUNTER64 to table nlmLogVariableTable initialize_table_nlmLogVariableTable: adding column nlmLogVariableOpaqueVal (#12) of type ASN_OPAQUE to table nlmLogVariableTable initialize_table_nlmLogTable: adding index nlmLogName of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding index nlmLogIndex of type ASN_UNSIGNED to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogTime (#2) of type ASN_TIMETICKS to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogDateAndTime (#3) of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogEngineID (#4) of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogEngineTAddress (#5) of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogEngineTDomain (#6) of type ASN_OBJECT_ID to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogContextEngineID (#7) of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogContextName (#8) of type ASN_OCTET_STR to table nlmLogTable initialize_table_nlmLogTable: adding column nlmLogNotificationID (#9) of type ASN_OBJECT_ID to table nlmLogTable NET-SNMP version 5.5 2010-09-07 16:52:48 localhost [UDP: [127.0.0.1]:3616->[0.0.0.0]]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (56) 0:00:00.56 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MISNMPv2- MIB::snmpTrapEnterprise.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.255 notification_log: logging something notification_log: adding a row to the variables table notification_log: adding a row to the variables table notification_log: logged notifications 1; max 1000 notification_log: done logging something NET-SNMP version 5.5 AgentX subagent connected ############################################### $ snmpbulkwalk.exe -r 0 -n snmptrapd localhost NOTIFICATION-LOG-MIB::nlmConfigGlobalEntryLimit.0 = Gauge32: 1000 NOTIFICATION-LOG-MIB::nlmConfigGlobalAgeOut.0 = Gauge32: 1440 minutes NOTIFICATION-LOG-MIB::nlmStatsGlobalNotificationsLogged.0 = Counter32: 1 notifications NOTIFICATION-LOG-MIB::nlmStatsGlobalNotificationsBumped.0 = Counter32: 0 notifications NOTIFICATION-LOG-MIB::nlmLogTime.\"default\".1 = Timeticks: (1743) 0:00:17.43 NOTIFICATION-LOG-MIB::nlmLogDateAndTime.\"default\".1 = STRING: 2010-9-7,16:52:48.0 ############################################### $ snmptable -C b -r 0 -n snmptrapd localhost nlmLogTable SNMP table: NOTIFICATION-LOG-MIB::nlmLogTable Time DateAndTime EngineID EngineTAddress EngineTDomain ContextEngineID ContextName NotificationID 0:0:00:17.43 2010 -9 -7,16 : 52 : 48.0 ? ? ? ? ? ? $ snmptable -C b -r 0 -n snmptrapd localhost nlmLogvariableTable NOTIFICATION-LOG-MIB::nlmLogVariableTable: No entries ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users