Ad Widget

Collapse

trap problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antonio92
    Junior Member
    • Jan 2016
    • 4

    #1

    trap problem

    Hello,

    I'm stuck in this problem using TRAPS.
    I cannot see traps in zabbix. Also, there is no file
    Code:
    "/tmp/zabbix_traps.tmp"
    I added the line perl do
    Code:
    perl do "/usr/bin/zabbix_trap_receiver.pl";
    and the
    Code:
    authCommunity execute public
    to the snmptrapd.conf file as well.

    I also have created the SNMP item "snmptrap.fallback"


    And I have followed the tutorial: https://www.zabbix.com/documentation...types/snmptrap

    I did find problems with the snmptt daemon using the embedded handler:
    Code:
     chkconfig --add snmptt
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `snmptt'
    insserv: warning: script 'snmptrapd' missing LSB tags and overrides
    insserv: script snmptrapd: service snmptrapd already provided!
    snmptt                    0:off  1:off  2:on   3:on   4:on   5:on   6:off

    After all, if I do the trap test:
    Code:
    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”
    I can't find the trap in the
    Code:
     /tmp/zabbix_traps.tmp
    . It doesn't even exist.
    I'm running zabbix on a Debian Wheezy, but I don't know if this is a relevant information.

    Please help me if possible!!
    Thanks beforehand!
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    What version of Zabbix are you using? You are referring to documentation of 2.0. Is that what you have?

    Here is a good tutorial for SNMP traps with that perl script.
    Join the friendly and open Zabbix community on our forums and social media platforms.


    Hope this helps!

    Best Regards,
    Ingus

    Comment

    • antonio92
      Junior Member
      • Jan 2016
      • 4

      #3
      First of all I want to say thanks for the quick answer. I haven't had access to the computer until now...

      I have the version 2.4.7 installed.

      I did follow that tutorial but didn't work. I followed that tutorial after trying the tutorial on the documentation webpage. But I didn't suceed either.


      If I follow the one I posted above I get stucked when I have to configure snmptt as a daemon using snmptthandler-embedded

      when It says I have to do this
      Code:
      cp snmptt-init.d /etc/rc.d/init.d/snmptt
      I couldn't find the folfer /etc/rc.d, so I copied the file into etc/init.d because I couldn't find the folder rc.d in my debian.
      I know this may be(it's) wrong, and that was why then I tried to follow the other snmpt trap tutorial( but I didn't suceed in the other one).

      In the next step I have to add the service with chkconfig but it says this:
      Code:
      root@TelMMA-Server:/etc/init.d# chkconfig --add snmptt
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Script snmptt is broken: incomplete LSB comment.
      insserv: missing `Default-Start:'  entry: please add even if empty.
      insserv: Default-Start undefined, assuming empty start runlevel(s) for script `snmptt'
      insserv: warning: script 'snmptrapd' missing LSB tags and overrides
      insserv: script snmptrapd: service snmptrapd already provided!
      snmptt                    0:off  1:off  2:on   3:on   4:on   5:on   6:off
      I don't know how to fix those inserv messages


      And after that when I have to run
      Code:
      service snmptt start
      it says that it doesn't recognise the daemon option.

      And then after configuring the rest doesn't work.

      Thanks you,
      Antonio

      Comment

      • antonio92
        Junior Member
        • Jan 2016
        • 4

        #4
        Please, could anyone help me?

        Thanks you!!

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          Hi Antonio,

          Where did you get stuck using the first manual/ Although it is written for CentOS, maybe you can try to adapt it to Debian?

          Best Regards,
          Ingus

          Comment

          Working...