Ad Widget

Collapse

Can't find Zabbix program files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Carnevalli
    Junior Member
    • Nov 2008
    • 14

    #1

    Can't find Zabbix program files

    Hi,

    I have installed zabbix 1.6 in a RedHat linux by tar.gz file.
    The problem is that I can't find the /usr/local/zabbix/bin/zabbix_server program. In directory /opt/zabbix/zabbix-1.6/bin, where I unziped the tar.gz, I just have a win32 and win64 directories.
    When I try to start service /etc/init.d/zabbix_server, appear the message that file cannot be find.
    I have ever installed the web environment and it's OK.

    Can you help me, how can I find the binaries, server and agent zabbix programs?

    Thanks, regards.
    Daniel Carnevalli
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Where did you download that tar.gz file from ?

    Comment

    • Daniel Carnevalli
      Junior Member
      • Nov 2008
      • 14

      #3
      I downloaded from the site www.zabbix.com that redirect to sourceforge.net

      Comment

      • Calimero
        Senior Member
        • Nov 2006
        • 481

        #4
        Could you tell us exactly what link ?

        Because download page on zabbix.com only has binaries for zabbix_agent (v1.4.x).

        As far as I know (or see) there's no pre-compiled zabbix_server available directly from zabbix.com

        Comment

        • Daniel Carnevalli
          Junior Member
          • Nov 2008
          • 14

          #5
          Hi,

          I downloaded from http://sourceforge.net/project/downl...se_mirror=ufpr.

          Then I unzip this and execute configure, as follow:
          #./configure –with-mysql –with-net-snmp –with-jabber –with-libcurl=/usr/lib64

          But, after this, I can't find zabbix_server or zabbix_agentd.
          If I try to start as /etc/init.d/zabbix_server start, it's not possible, because I receiver an error that cannot find the /usr/local/zabbix/bin/zabbix_server

          Comment

          • leec
            Junior Member
            • Sep 2008
            • 7

            #6
            did you run "make install" ?

            Here are 2 Guides that helped me.

            Meta descriptions are HTML attributes that provide concise explanations of the contents of web pages. They should optimally be between 150-160 characters.

            http://vpsmedia.com/articles/?p=9

            Comment

            • Daniel Carnevalli
              Junior Member
              • Nov 2008
              • 14

              #7
              Ye, I ran "make install" after this configure command.
              I'll try your sugestions.
              Tks

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                Daniel, here are the steps I use to install to Ubuntu Linux. May be of help. This is for installing the server and the agent.

                1 - Download and Untar the Zabbix source files:
                wget http://optusnet.dl.sourceforge.net/s...x-1.6.1.tar.gz

                After download is complete, run the following:

                tar zxvpf zabbix-1.6.1.tar.gz
                (This will put the files into /home/zabbix/zabbix-1.6.1)

                2 - Create a zabbix database and populate it:
                Start mysql
                sudo /etc/init.d/mysql start
                sudo mysql
                create database zabbix;
                grant all on zabbix.* to zabbix@’localhost’ identified by ‘password’;
                quit;


                From /home/zabbix/zabbix-1.6.1/
                cd create/schema
                cat mysql.sql | mysql -uzabbix -p<password> zabbix <-- <password> is whatever your MySql pasword is, remove brackets
                cd ../data
                cat data.sql | mysql -uzabbix -p<password> zabbix
                cat images_mysql.sql | mysql -uzabbix -p<password> zabbix


                3 - Configure, compile and install the server:
                cd ../..
                ./configure --prefix=/usr --with-mysql --with-net-snmp
                --enable-agent --enable-server
                (do not copy and paste this command, type manually)
                make
                sudo make install

                4 - Prepare the rest of the system:
                sudo <edit> /etc/services
                Add at the end:
                zabbix_agent 10050/tcp # Zabbix ports
                zabbix_trap 10051/tcp

                Save and exit.
                sudo mkdir /etc/zabbix
                sudo chown -R zabbix.zabbix /etc/zabbix/
                cp misc/conf/zabbix_* /etc/zabbix/


                Copy the init.d scripts:
                sudo cp misc/init.d/debian/zabbix-server /etc/init.d/zabbix-server
                sudo cp misc/init.d/debian/zabbix-agent /etc/init.d/zabbix-agent


                Edit the zabbix-server script
                sudo nano /etc/init.d/zabbix-server

                Look for the following line:
                DAEMON=/home/zabbix/bin/${NAME}
                and replace it with:
                DAEMON=/usr/sbin/${NAME}

                **Do the same as above for the zabbix-agent script**

                Save and exit.
                Now set the correct permissions and set ZABBIX to start when the machine boots:
                sudo chmod 755 /etc/init.d/zabbix-server
                sudo update-rc.d zabbix-server defaults

                sudo chmod 755 /etc/init.d/zabbix-agent
                sudo update-rc.d zabbix-agent defaults


                Edit the configuration files:

                edit /etc/zabbix/zabbix_agentd.conf
                Server=xxx.xxx.xxx.xxx
                Hostname=xxxxx
                uncomment the userparameter lines at the end of the file.

                edit /etc/zabbix/zabbix_server.conf(Make sure to at least check these settings)
                #DBPassword are ignored.
                DBName=zabbix

                # Database user
                DBUser=zabbix

                # Database password
                # Comment this line if no password used
                DBPassword=xxxxxx

                save and exit


                Start the services :

                sudo /etc/init.d/zabbix-server start
                sudo /etc/init.d/zabbix-agent start

                Now check to make sure that they are running:
                ps -ef | grep zabbix

                Comment

                • Daniel Carnevalli
                  Junior Member
                  • Nov 2008
                  • 14

                  #9
                  HI,

                  Now I have other problem....
                  I executed the command as this.....

                  #./configure --enable-server -- enable-agent --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-jabber --with-libcurl=/usr/lib64

                  ... and the response is


                  Checking for curl-config... /usr/lib64
                  configure: error: Not found Curl library

                  I have ever found libcurl.a, libcurl.so at /usr/lib64 but!?!?!?

                  Any idea?

                  Comment

                  • Tenzer
                    Senior Member
                    • Nov 2007
                    • 316

                    #10
                    Originally posted by Daniel Carnevalli
                    Checking for curl-config... /usr/lib64
                    configure: error: Not found Curl library

                    I have ever found libcurl.a, libcurl.so at /usr/lib64 but!?!?!?

                    Any idea?
                    It is checking for the program/script named "curl-config". The program outputs all sorts of information about where the compiler should find the libraries and what not. Are you sure that is found on the system?

                    Comment

                    • xs-
                      Senior Member
                      Zabbix Certified Specialist
                      • Dec 2007
                      • 393

                      #11
                      Originally posted by Daniel Carnevalli
                      HI,

                      Now I have other problem....
                      I executed the command as this.....

                      #./configure --enable-server -- enable-agent --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-jabber --with-libcurl=/usr/lib64

                      ... and the response is


                      Checking for curl-config... /usr/lib64
                      configure: error: Not found Curl library

                      I have ever found libcurl.a, libcurl.so at /usr/lib64 but!?!?!?

                      Any idea?
                      If you are using a binary based linux distro, you should install the libcurl-dev package.

                      Comment

                      • Calimero
                        Senior Member
                        • Nov 2006
                        • 481

                        #12
                        Originally posted by Daniel Carnevalli
                        HI,
                        #./configure --enable-server -- enable-agent --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-jabber --with-libcurl=/usr/lib64
                        As tenzer said, ./configure is looking for the curl-config utility.

                        On CentOS 5, curl-config is provided by curl-devel[.i386 or .x86_64].

                        Once installed run configure with --with-libcurl=/usr/bin/curl-config .

                        Comment

                        • Daniel Carnevalli
                          Junior Member
                          • Nov 2008
                          • 14

                          #13
                          I tried this command Calimero, but it didn't work, I have this libraries installed:

                          Package curl-devel - 7.15.5-2.el5.i386
                          Package curl-devel - 7.15.5-2.el5.x86_64

                          the file curl-config exists too.

                          I'm thinking about reinstall libcurl with rpm. Can you help me how can I do that?
                          I installed libcurl by yum.

                          Tks\

                          Comment

                          • Daniel Carnevalli
                            Junior Member
                            • Nov 2008
                            • 14

                            #14
                            I perceived that:

                            When I execute configure ...--with-libcurl=/usr/lib64, the message Not found Curl Library

                            When I execute configure ...--with-libcurl=/usr/bin/curl-config, the message is Not Found Libcurl Library

                            I tried to copy files from /usr/bin/curl* to /usr/lib64, but it didn't work

                            Comment

                            • tchjts1
                              Senior Member
                              • May 2008
                              • 1605

                              #15
                              Do you need to do web monitoring? If not, I think you can just skip the libcurl statements in your compile.

                              Comment

                              Working...