Ad Widget

Collapse

Zabbix history has duplicate snmptraps?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jared
    Junior Member
    • Dec 2007
    • 4

    #1

    Zabbix history has duplicate snmptraps?

    I am getting two duplicates of each SNMP trap sent to Zabbix. Am I overlooking something?

    I am using the following snmptrap.sh:
    Code:
    #!/usr/local/bin/bash
    
    # CONFIGURATION
    
    ZABBIX_SERVER="-z kestrel";
    ZABBIX_PORT="-p 10051";
    
    ZABBIX_SENDER="/usr/local/bin/zabbix_sender";
    
    KEY="-k snmptraps";
    HOST="-s Kestrel";
    
    # END OF CONFIGURATION
    
    read hostname
    read ip
    read uptime
    read oid
    read address
    read community
    read enterprise
    
    oid=`echo $oid|cut -f2 -d' '`
    address=`echo $address|cut -f2-10 -d' '`
    community=`echo $community|cut -f2 -d' '`
    enterprise=`echo $enterprise|cut -f2 -d' '`
    
    oid=`echo $oid|cut -f11 -d'.'`
    community=`echo $community|cut -f2 -d'"'`
    
    str="$hostname $address $community $enterprise $oid"
    
    $ZABBIX_SENDER $ZABBIX_SERVER $ZABBIX_PORT $HOST $KEY -o "$str"
Working...