Ad Widget

Collapse

collect alerts snmp via external proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moshe
    Member
    • Jan 2019
    • 37

    #1

    collect alerts snmp via external proxy

    Hi,
    I collect SNMP TRAPS via external Proxy and not from origin device,
    Zabbix fail to associate traps to device - I think the reason is field "receivedfrom" is it not a original device IP but a proxy IP.

    I use zabbix_trap_receiver.pl

    ALL traps enter good to trap received file , for example :

    PDU INFO:
    notificationtype TRAP
    version 0
    receivedfrom UDP: [172.25.239.101]:162->[172.25.239.25]:162
    errorstatus 0
    messageid 0
    community
    transactionid 487851
    errorindex 0
    requestid 0
    VARBINDS:
    DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (1733028) 4:48:50.28
    SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.9304.100.3128.9.0.9
    IF-MIB::ifIndex.1 type=2 value=INTEGER: 1
    SNMPv2-MIB::sysLocation.1 type=4 value=STRING: "storm control: Broadcast storm detected on port 28"
    SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 10.22.28.66
    SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: SNMPv2-SMI::enterprises.9304.100.3128.9
    14:24:21 2019/04/15 ZBXTRAP 172.25.239.101

    receivedfrom is proxy ip 172.25.239.101 when actually ip of host is 10.22.28.66

    Original source IP existing in VARBINDS , row "SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 10.22.28.66"

    Is there any possibility to manipulate with zabbix_trap_receiver.pl to take host ip from diferent field (not a receivedfrom)?
    Or any other option ?
    When I send trap from original device strait it is work OK
Working...