Ad Widget

Collapse

snmptraps snmptt failing installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ytrewq
    Junior Member
    • Oct 2012
    • 1

    #1

    snmptraps snmptt failing installation

    Hello,

    I desperately want to be able to receive snmp traps.
    Currently I'm testing with the VMWare appliance from Zabbix 2.
    As I understand I have to isnstall SNMPTT (Embedded Handler) to do this I follow the SNMPTT overview but cannot manage to register is as a service.

    chkconfig --add snmptt gives the following result:

    insserv: script snmptt is broken: incomplete LSB comment.
    insserv: missing `Default-Start:' entry: please add even if empty.
    insserv: script snmptt is not an executable regular file, skipped!
    insserv: warning: script 'zabbix_appliance_postboot' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `zabbix_appliance_postboot'

    Note: This output shows SysV services only and does not include native
    systemd services. SysV configuration data might be overridden by native
    systemd configuration.


    As I am not a real linux guru I'm kind of stuck here and as there is not much result in Googleing kind of wonder if I'm not completely on the wrong track.

    Any help appreciated
  • jsantiago
    Member
    • May 2012
    • 39

    #2
    Hi Qwerty,

    I also have the same issues when I tried this command from http://snmptt.sourceforge.net/docs/snmptt.shtml. I'm also a newbie in all of the aspects of Zabbix, Linux, MySQL and PHP.

    Did you ever found a solution to this issue?

    Hope to hear from you soon.


    Regards,
    J

    Comment

    • jsantiago
      Member
      • May 2012
      • 39

      #3
      Tried google search and stumbled upon this:



      Added the following:

      # Default-Start:
      # Default-Stop:

      Somehow the error messages were fewer.

      I went on with the:
      chkconfig --add snmptt

      Then:
      chkconfig --level 2345 snmptt on

      Then:
      service snmptt start
      I have the following error:
      /etc/init.d/snmptt: line 26: .:/etc/init.d/functions: No such file of directory directory
      Starting snmptt: /etc/init.d/snmptt: line 34: daemon: command not found

      touch: cannot touch `/var/lock/subsys/snmptt`" No such file or directory

      Now, I'm stuck. If you ever solved this issue, could you please share it with me? It would be greatly appreciated. Thank you.

      Comment

      • matt
        Junior Member
        • Mar 2013
        • 2

        #4
        Originally posted by jsantiago
        Tried google search and stumbled upon this:



        Added the following:

        # Default-Start:
        # Default-Stop:

        Somehow the error messages were fewer.

        I went on with the:
        chkconfig --add snmptt

        Then:
        chkconfig --level 2345 snmptt on

        Then:
        service snmptt start
        I have the following error:
        /etc/init.d/snmptt: line 26: .:/etc/init.d/functions: No such file of directory directory
        Starting snmptt: /etc/init.d/snmptt: line 34: daemon: command not found

        touch: cannot touch `/var/lock/subsys/snmptt`" No such file or directory

        Now, I'm stuck. If you ever solved this issue, could you please share it with me? It would be greatly appreciated. Thank you.

        The 'daemon' command isn't a part of OpenSUSE, use the 'startproc' command instead. Also, you'll need to create the /var/lock/subsys directory. Here's the header of my snmptt init.d script

        Code:
        ### BEGIN INIT INFO
        # Provides: snmptt
        # Default-Start: 3 5
        # Default-Stop: 0 1 6
        # Required-Start: $syslog $local_fs
        # Required-Stop: $syslog $local_fs
        # Should-Start: $network snmptrapd
        # Should-Stop: $network snmptrapd
        # Short-Description: SNMP Trap Translator daemon
        ### END INIT INFO
        
        # source function library
        #. /etc/init.d/functions
        
        
        SNMPTT=/usr/sbin/snmptt
        OPTIONS="--daemon"
        RETVAL=0
        prog="snmptt"
        
        start() {
                echo -n $"Starting $prog: "
                startproc $SNMPTT $OPTIONS
                RETVAL=$?
                echo
                return $RETVAL
        }

        Comment

        • jsantiago
          Member
          • May 2012
          • 39

          #5
          Hi Matt,

          Thank you for the reply.

          Yes I did actually created a directory /var/lock/subsys.
          Will give the snmpt init.d a try.

          But may I know if you were you able to get this correctly? I mean the snmptt setup, I'm kinda close to giving up on this idea. I'm I on the correct path to have my Windows services monitored?

          Comment

          • matt
            Junior Member
            • Mar 2013
            • 2

            #6
            Well, to be honest, I'm just getting into it and still working through it myself, but yes, the daemon starts

            Comment

            Working...