Ad Widget

Collapse

SNMP Traps - Not translating OID's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GP1
    Junior Member
    • Oct 2015
    • 1

    #1

    SNMP Traps - Not translating OID's

    Hi Zabbix Experts,

    I've recently been tasked with re-creating a zabbix server on my network. I'm attempting to set up SNMP Traps on the server using https://www.zabbix.org/wiki/Start_wi...raps_in_Zabbix

    I have gotten to the point where I need to send the SNMP Traps to a temporary file. I have gotten to this part, but the SNMP Traps are being saved without translating the OIDs.

    Example:

    16:33:33 2015/10/15 ZBXTRAP 127.0.0.1
    PDU INFO:
    notificationtype TRAP
    errorstatus 0
    requestid 0
    messageid 0
    receivedfrom UDP: [127.0.0.1]:53313->[127.0.0.1]:162
    errorindex 0
    community public
    transactionid 1
    version 0
    VARBINDS:
    iso.3.6.1.2.1.1.3.0 type=67 value=Timeticks: (55) 0:00:00.55
    iso.3.6.1.6.3.1.1.4.1.0 type=6 value=OID: iso.3.6.1.6.3.1.1.5.4.0.33
    iso.3.6.1.6.3.1.1.5.4 type=4 value=STRING: "eth0"
    iso.3.6.1.6.3.18.1.4.0 type=4 value=STRING: "public"
    iso.3.6.1.6.3.1.1.4.3.0 type=6 value=OID: iso.3.6.1.6.3.1.1.5.4


    Does anyone know how I can translate the Varbind's to become human readable?

    Thank you for your time,
    GP1
  • Steveo
    Member
    • Jun 2013
    • 31

    #2
    Did you complile the required MIBs?

    If so, then you should get the human readable format you are looking for. See a trap from my tmp file below....

    PDU INFO:
    notificationtype TRAP
    version 0
    receivedfrom UDP: [10.XX.XX.XX]:65534->[172.XX.XX.XX]
    errorstatus 0
    messageid 0
    community trap
    transactionid 782
    errorindex 0
    requestid 0
    VARBINDS:
    DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (1003137) 2:47:11.37
    SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: BJ-ALARMS-MIB::bjClearAlarmNotification
    BJ-ALARMS-MIB::bjAlarmSeverity.4.2.client.143 type=2 value=INTEGER: 1
    BJ-ALARMS-MIB::bjAlarmDateTime.4.2.client.143 type=4 value=Hex-STRING: 07 B5 02 06 15 1A 00 00
    BJ-ALARMS-MIB::bjAlarmDescription.4.2.client.143 type=4 value=STRING: "Client RX power above high power threshold"
    BJ-ALARMS-MIB::bjAlarmId.4.2.client.143 type=66 value=Gauge32: 10
    BJ-ALARMS-MIB::bjAlarmServiceAffecting.4.2.client.143 type=2 value=INTEGER: 1
    BJ-ALARMS-MIB::bjAlarmSysName.4.2.client.143 type=4 value=STRING: "BJK220CEL"
    BJ-ALARMS-MIB::bjAlarmAid.4.2.client.143 type=4 value=STRING: "1-3-2-C"
    BJ-ALARMS-MIB::bjAlarmDateTimeString.4.2.client.143 type=4 value=STRING: "Tue Feb 06, 1973 21:26:00"
    SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 10.XX.XX.XX
    SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "trap"
    SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: WR-BRIGHTJACK200-MIB::bjTraps

    11:20:49 2015/12/14 ZBXTRAP XX.XX.XX.XX

    Comment

    Working...