Ad Widget

Collapse

New Install... Error loading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davec
    Junior Member
    • Sep 2004
    • 5

    #1

    New Install... Error loading

    I have just finished a new install, using the defaults... I get the following when I try to execute the following from usr/local/bin:
    ./zabbix_suckerd

    error while loading shared libraries: libnetsnmp.so.5: cannot open shared object file: No such file or directory

    I have checked and libnetsnmp.so.5, is in usr/local/lib

    I have tried executing as root and as the user that will be running zabbix.

    zabbix_trapperd
    zabbix_agentd
    both loaded sucessfully.

    I am probably doing something totally stupid... but please help..

    Dave
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Hi Dave,

    Welcome aboard!

    For some reason your OS (Linux?) is unable to find the shared library required for zabbix_suckerd.

    So, you may try to:

    1. compile zabbix_suckerd as static, so the binary will have everything compiled in. Use --enable-static option while doing ./configure
    2. tell you system to look for libraries in /usr/local/lib. You may edit /etc/ld.so.conf and run ldconfig afterwards.
    3. do not enable SNMP support if you don't need it.
    I hope this helps.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • davec
      Junior Member
      • Sep 2004
      • 5

      #3
      Fixed that one...

      Alexei,
      Thanks for the help, I am using Xandros 2.5, Debian (sarge)

      I modified the /etc/ld.so.conf and ran ldconfig afterwards.

      This cured that problem... now I get..

      Failed to connect to database: Error: Can't connect to local MySQL server through socket 'var/run/mysqld/mysqld.sock' (2)

      i have checked and mysql is running, and the zabbix database is available..


      Ideas..

      Dave

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by davec
        This cured that problem... now I get..

        Failed to connect to database: Error: Can't connect to local MySQL server through socket 'var/run/mysqld/mysqld.sock' (2)
        Missing '/' in /var/run/mysqld/mysqld.sock?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • davec
          Junior Member
          • Sep 2004
          • 5

          #5
          You are Correct

          You are right Alexei, I missed the '/' in front of the var when i copied the line..

          Dave

          Comment

          • davec
            Junior Member
            • Sep 2004
            • 5

            #6
            I still have the error..

            Alexei,
            The Mysql database is available, I can access it using the web front end... but mysqld.sock seems to be missing... is there something I missed installing.... I still get this error..

            Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

            Thanks

            Dave

            Comment

            • rumor
              Junior Member
              • Sep 2004
              • 10

              #7
              Try this, may be it will help:

              http://dev.mysql.com/doc/mysql/en/Ca...to_server.html

              Comment

              • davec
                Junior Member
                • Sep 2004
                • 5

                #8
                Thank You

                Rumor,
                Thanks for the help, I found out how to display the variables mysql was using, then I modified the zabbix_suckerd.conf to use the correct socket.

                I am all up and working .....

                Now comes the hard part.... I wanted Zabbix to see if i could create triggers on a unique application, and send them to a SNMP Manager. (or use zabbix itself)

                Thanks Again, both yourself and Alexei

                Comment

                Working...