Ad Widget

Collapse

SNMP Trap Handling Setup.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TQ72
    Junior Member
    • Jul 2012
    • 5

    #1

    SNMP Trap Handling Setup.

    Hi All,

    Standing up a my first Zabbix instance and have seen this problem/issue reported elsewhere on the forum with no solution, and I'm pretty sure it something I'm doing incorrectly.

    Trying to get trap handling setup using the method in the 2.0 documentation (http://www.zabbix.com/documentation/...types/snmptrap) and am having an issue getting snmptt to process the traps recieved by snmptrapd.

    Basically when I send a trp manually via...

    snmptrap -v 1 -c public 10.10.10.118 '.1.3.6.1.6.3.1.1.5.3' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.3 s TEST

    I see an entry in syslog...

    Jul 31 09:04:04 localhost snmptrapd[16516]: 2012-07-31 09:04:04 0.0.0.0(via UDP: [10.10.10.118]:37747->[10.10.10.118]) TRAP, SNMP v1, community public#012#011iso.3.6.1.6.3.1.1.5.3 Enterprise Specific Trap (33) Uptime: 0:00:00.55#012#011iso.3.6.1.6.3.1.1.5.3 = STRING: "TEST"

    ...but nothing appears in /var/sppol/snmptt/

    ...nothing gets logged in /tmp/my_zabbix_traps.tmp

    snmpttsystem.log gives nothing away either...

    19:10:02 2012/07/30 SNMPTT v1.3 started
    19:10:02 2012/07/30 Loading /etc/snmp/snmptt.conf
    19:10:02 2012/07/30 Finished loading 67 lines from /etc/snmp/snmptt.conf
    19:10:02 2012/07/30 Changing to UID: snmptt (109)


    snmptrapd.conf looks like this...

    authCommunity execute public
    authCommunity execute PUBLIC

    traphandle default /usr/sbin/snmptt

    disableAuthorization yes


    Any pointers would be greatfully accepted!

    Cheers.

    TQ
    Last edited by TQ72; 31-07-2012, 13:04.
  • TQ72
    Junior Member
    • Jul 2012
    • 5

    #2
    Past this now...

    Maybe useful for someone else with as little knowledge as myself...

    Had to set net_snmp_perl_enable = 1 in snmptt.ini to enable the test to work.

    Comment

    • sneha.bhat
      Junior Member
      • Aug 2012
      • 8

      #3
      I too am facing issues with Traps in Zabbix 2.0

      The snmptt service is running as a daemon. The test trap gets successfully logged in /var/log/messages. It is always processed by the snmptt as i always see a temporary file in /var/spool/snmptt.

      But the trap is not showing on the TGIM portal. We are stuck in this place since 1 month now and its getting very frustrating

      If feel that we are missing something in the snmpttconf file. Any help will be hugely appreciated!!!

      The test trap being sent is :
      snmptrap -v 1 -c public 172.17.69.62 '.1.3.6.1.6.3.1.1.5.3' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.3 s teststring000

      The entry in the snmpttconf file is:

      EVENT Enterprise Specific Trap IF-MIB::linkDown "teststring000" Normal
      FORMAT Trap agent IP Address: $aA Trap Community String: $C Host of the system running SNMPTT: $H

      Comment

      Working...