Ad Widget

Collapse

Cisco snmptrap problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waveworksmatt
    Junior Member
    • Jul 2007
    • 4

    #1

    Cisco snmptrap problems

    Hi,

    I've been trying to setup snmptraps with a Cisco router to capture BGP state change information for a while and i'm having some problems.

    My snmptrap.sh script is configured as the forums advise and i've setup net-snmptrapd to pass on the SNMP information to the script which it is successfully doing as i have seen this in my log file. The two problems i'm getting are as follows...

    1) The value $str that is being constructed by the snmptrap.sh script reads as follows...

    home/zabbix/bin/zabbix_sender zabbix 10051 snmptrapper snmptraps '<UNKNOWN> SNMPv2-SMI::mib-2.15.3.1.14.195.6*.***.*** "02 02" 1 85.2**.**.* '

    In my eyes the string is in the wrong order and the hostname and community information is missing even though it's being defined in the $str string and logged by net-snmptrapd as that log file shows the corresponding entry...

    2007-12-08 17:51:41 fe0.ww-***-***.***s.uk.net [85.2**.**.*]
    (via UDP: [85.2**.**.*]:54877) TRAP, SNMP v1
    , community public
    mib-2.15 Enterprise Specific Trap (2) Uptime: 60:13:45:27.43
    mib-2.15.3.1.14.195.6*.***.*** = "02 02 "
    mib-2.15.3.1.2.195.6*.***.*** = 1


    I'm not sure whether there is a problem with how the script interprets the SNMP message from the Cisco router but i've tried playing round to get the correct data in the right place within the string but it doesnt seem to work still.

    2) The second problem is the fact zabbix_sender will not pass the information to Zabbix itself. I've even ran a test from the command line but this still didn't report...

    zabbix_sender localhost 10051 localhost snmptraps test

    The HOST i have in Zabbix is configured as follows...

    Name: snmptrapper
    IP: 0.0.0.0
    Connect to: IP
    Port 10051


    Any help of the above issues would be greatly appreciated as i've trawled through the forums reading all the snmp posts yet i havent managed to find someone having the same issues as me regarding problem 1 especially.

    Thanks,

    Matt
Working...