Hello!
I'm use zabbix_trap_receiver.pl for deliver SNMP traps to Zabbix. It's works fine, but after I'm add MIBs to net-snmp i get partially translated data.
In /var/log/messages I'm see:
Jun 10 11:51:02 host snmptrapd[23121]: 2014-06-10 11:51:02 localhost [127.0.0.1] (via UDP: [x.x.x.x]:48107->[x.x.x.x]) TRAP, SNMP v1, community ZBX#012#011ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange Enterprise Specific Trap (17) Uptime: 61 days, 0:48:01.06#012#011ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1 = INTEGER: onlinePending(2)
But, zabbix_trap_receiver.pl produces translated OID, but untranslated value (see ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1):
11:51:02 2014/06/10 ZBXTRAP x.x.x.x
PDU INFO:
notificationtype TRAP
version 0
receivedfrom UDP: [x.x.x.x]:48107->[x.x.x.x]
errorstatus 0
messageid 0
community ZBX
transactionid 1
errorindex 0
requestid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance
Timeticks: (527328106) 61 days, 0:48:01.06
SNMPv2-MIB::snmpTrapOID.0
OID: ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange.0.17
ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1
INTEGER: 2
SNMP-COMMUNITY-MIB::snmpTrapAddress.0
IpAddress: 127.0.0.1
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0
STRING: "ZBX"
SNMPv2-MIB::snmpTrapEnterprise.0
OID: ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange
Anyone know how to fix it?
I'm use zabbix_trap_receiver.pl for deliver SNMP traps to Zabbix. It's works fine, but after I'm add MIBs to net-snmp i get partially translated data.
In /var/log/messages I'm see:
Jun 10 11:51:02 host snmptrapd[23121]: 2014-06-10 11:51:02 localhost [127.0.0.1] (via UDP: [x.x.x.x]:48107->[x.x.x.x]) TRAP, SNMP v1, community ZBX#012#011ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange Enterprise Specific Trap (17) Uptime: 61 days, 0:48:01.06#012#011ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1 = INTEGER: onlinePending(2)
But, zabbix_trap_receiver.pl produces translated OID, but untranslated value (see ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1):
11:51:02 2014/06/10 ZBXTRAP x.x.x.x
PDU INFO:
notificationtype TRAP
version 0
receivedfrom UDP: [x.x.x.x]:48107->[x.x.x.x]
errorstatus 0
messageid 0
community ZBX
transactionid 1
errorindex 0
requestid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance
Timeticks: (527328106) 61 days, 0:48:01.06
SNMPv2-MIB::snmpTrapOID.0
OID: ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange.0.17
ADIC-TAPE-LIBRARY-MIB::logicalLibraryState.1
INTEGER: 2
SNMP-COMMUNITY-MIB::snmpTrapAddress.0
IpAddress: 127.0.0.1
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0
STRING: "ZBX"
SNMPv2-MIB::snmpTrapEnterprise.0
OID: ADIC-TAPE-LIBRARY-MIB::logicalLibraryStateChange
Anyone know how to fix it?
Comment