Ad Widget

Collapse

Zabbix Appliance SNMP Traps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • relesys
    Junior Member
    • May 2013
    • 3

    #1

    Zabbix Appliance SNMP Traps

    Hello

    I try to get snmp traps into zabbix. i use for test reason the zabbix appliance.
    On the zabbix website (https://www.zabbix.com/documentation...tion/appliance) they say, that the zabbix appliance is fulfilling snmp feature build in. but when an agent sends snmp traps to zabbix appliance nothing will show…

    So I googled around and found the zabbix how to enable snmp and checked if zabbix snmp support is active (https://www.zabbix.com/documentation...types/snmptrap). So I opened zabbix_server.conf and there was no active snmp configuration.

    Next I enabled snmp traps in zabbix_server.conf:

    zabbix_server.conf - configure Zabbix to start SNMP trapper and set the trap file:
    StartSNMPTrapper=1
    SNMPTrapperFile=/tmp/my_zabbix_traps.tmp

    Now to continue, i should do these steps:

    1. snmptrapd.conf - add SNMPTT as the trap handler:
    traphandle default snmptt
    2. snmptt.ini - configure output file and time format:
    log_file = /tmp/my_zabbix_traps.tmp
    date_time_format = %H:%M:%S %Y/%m/%d
    3. snmptt.conf - define a default trap format:
    EVENT general .* "General event" Normal
    FORMAT ZBXTRAP $aA $ar
    4. Create an SNMP item TEST:
    Host's SNMP interface IP: 127.0.0.1
    Key: snmptrap["General"]
    Log time format: hh:mm:ss yyyy/MM/dd

    But I do not have a snmptrapd.conf, snmptt.ini and snmptt.conf.

    Can please anyone help to find out how to activate receiving snmp traps in zabbix?

    Best regards
    relesys
  • oalex
    Member
    • Jul 2009
    • 86

    #2
    not install snmptt

    Comment

    • relesys
      Junior Member
      • May 2013
      • 3

      #3
      Hello

      Do you mean, that snmptt is not installed on the appliance? do i have to install it or is there an other way to get snmp traps into zabbix appliance?

      thanks for reply
      relesys

      Comment

      • oalex
        Member
        • Jul 2009
        • 86

        #4
        i not know, type OS you use
        i have CentOS release 6.4
        rpm -aq | grep snmpt
        snmptt-1.4-0.6.beta2.el6.noarch
        ls /etc/snmp/
        snmpd.conf snmptrapd.conf snmptt.conf snmptt.ini snmptt.ini.rpm
        snmptt files were created after install snmptt package
        p.s.
        sorry for the bad English
        p.p.s
        for
        snmpd.conf snmptrapd.conf
        net-snmp package
        Last edited by oalex; 30-05-2013, 13:06.

        Comment

        • relesys
          Junior Member
          • May 2013
          • 3

          #5
          Thank you for your reply!

          Appliance version:

          Linux version 3.4.33-2.24-default (geeko@buildhost) (gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux) ) #1 SMP Tue Feb 26 03:34:33 UTC 2013 (5f00a32)

          I'm really sorry; unfortunately I'm not a Linux pro. Could you post the steps for installing snmptt? I think that i have to download some install files?

          Thank you very much!

          Regards
          Relsys

          Comment

          • angelhc
            Senior Member
            Zabbix Certified Specialist
            • Nov 2009
            • 226

            #6
            Hi!
            First do a search on your system rpm -qa | grep -i snmptt
            If there's no results you can download the snmptt from here:


            1.1-5.1.i586.rpm.html
            And install "rpm -i snmptt-1.1-5.1.i586.rpm"

            Hope this helps.
            Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

            http://zabbixes.wordpress.com/

            Comment

            • JS86
              Junior Member
              • May 2013
              • 11

              #7
              Where are the snmptt.ini and conf? After the installation with the rpm package?

              Comment

              • JS86
                Junior Member
                • May 2013
                • 11

                #8
                Can someone help me?

                Zabbix_server.conf
                StartSNMPTrapper=1
                SNMPTrapperFile=/var/log/snmptt/snmptt.log

                After this i make a folder /etc/snmp/
                and Copy snmptt.ini to /etc/snmp/

                Then i edit the snmptt.ini

                date_time_format = %H:%M:%S %Y/%m/%d
                log_file = /var/log/snmptt/snmptt.log

                snmptt.conf - define a default trap format:
                EVENT general .* "General event" Normal FORMAT ZBXTRAP $aA $ar

                snmptrapd.conf - add SNMPTT as the trap handler:
                traphandle default snmptt
                authCommunity log,execute,net public


                In /var/log/snmptt/ is no log file.

                zabbix01:/tmp/vmbix-read-only # /etc/init.d/snmptrapd start
                redirecting to systemctl
                zabbix01:/tmp/vmbix-read-only # /etc/init.d/snmptt start
                redirecting to systemctl
                zabbix01:/tmp/vmbix-read-only # snmptrap -v 1 -c public 127.0.0.1 '.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.

                Comment

                • duckdiver
                  Junior Member
                  • Aug 2010
                  • 7

                  #9
                  have you managed your troubles??
                  it seems i have the sam issue...
                  made my way through several SNMPTT and SNMPTRAP installations, get some logs but no Data into Zabbix

                  any ideas?

                  Comment

                  Working...