Ad Widget

Collapse

zabbix installation problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nishith
    Junior Member
    • Jun 2008
    • 22

    #1

    zabbix installation problem.

    I am trying to install zabbix version 1.5.

    During installation as per the documentation,my Step:1 , 2 & 3 are ok.

    Now,by using Step:4 wih below command,I found an error at the end of execution.

    The command which i used is :-
    ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl
    ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl

    In both commands,i got following error :-
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library


    Is there any problem regarding above message?

    After that,I ignored this error & started Step:5,which is to execute "make install" command.

    But,after the "make install" command,I found another error given below.
    make: *** No rule to make target `install'. Stop.

    Tell me how to resolve this problem.

    Nishith Vyas.
  • Niels
    Senior Member
    • May 2007
    • 239

    #2
    You need to install the mysqlclient library, probably mysql-dev or something like that. Which distro are you using?

    Comment

    • adr
      Junior Member
      • Jul 2008
      • 2

      #3
      help please

      hello all;
      I' v been having install problems my self:
      been using Linux on a very basic level (mostly fedora) for awhile. i recently setup a Debian box to run Zabbix for my office. i have spent quite some time trying to install this...

      i have tried the combo of the following walk thoughs with no success:
      Network Monitoring With Zabbix Zabbix has the capability to monitor just a about any event on your network from network traffic to how many papers a...



      i have never gotten the graphical setup shown, let alone seen the front end. could some on please point me in the right direction.

      Here are the steps I have tried to go through, but I never got past step 6 because it files where missing...

      #
      #
      #--- 1 ---
      #Install pre-requisites: Could I use Lammp instead ?
      #
      #<Apache>
      #<MySQL-Server>
      #<PHP5>
      #<Net-Snmp libraries>
      sudo apt-get install build-essential mysql-server libmysqlclient15-dev php5 php5-gd php5-mysql snmp libsnmp9-dev snmpd libcurl3-dev
      #
      #
      #--- 2 ---
      #Basics:
      #<package>
      sudo aptitude install build-essential mysql-server php5 php5-gd snmp libsnmp9-dev snmpd libmysqlclient15-dev mysql-common
      #<Make the zabbix user and group>
      groupadd zabbix
      useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix
      mkdir /home/zabbix
      chown -R zabbix.zabbix /home/zabbix
      #enter in new password
      #confirm
      #use the remaining defaults
      #<Add zabbix to the admin group>
      sudo adduser zabbix admin
      #
      #
      #--- 3 ---
      #Download and Untar the sources:
      su - zabbix
      wget http://internap.dl.sourceforge.net/s...bix-1.4.tar.gz
      tar zxvpf zabbix-1.4.tar.gz
      #
      #
      #--- 4 ---
      #Create a zabbix database and populate it:
      mysql -p -u root
      create database zabbix;
      quit;
      #
      mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/schema/mysql.sql
      mysql -u root -p zabbix < /home/zabbix/zabbix-1.4/create/data/data.sql
      #
      #
      #--- 5 ---
      #Configure, compile and install the server:
      cd zabbix-1.4/ # missing fullpath
      ./configure --prefix=/usr --with-mysql --with-net-snmp \
      --enable-server --enable-agent &&
      make
      sudo make install
      #
      #
      #--- 6 ---
      #Prepare the rest of the system:
      sudo emacs /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/
      #
      Edit /etc/zabbix/zabbix_agentd.conf:
      sudo emacs /etc/zabbix/zabbix_agentd.conf
      #Made sure that the Server parameter points to the server address, for the agent that runs on the server it is like this:
      Server=127.0.0.1 # what I do for 10.x.x.x network?
      Edit /etc/zabbix/zabbix_server.conf:
      sudo emacs /etc/zabbix/zabbix_server.conf
      #For small sites this default file will do, however if you are into tweaking your config for your 10+ hosts site, this is the place.
      #Change this:
      # Database password
      # Comment this line if no password used
      DBPassword=Secret
      #Start the server:
      zabbix_server
      #Start the client:
      zabbix_agentd &
      #
      #
      #--- 7 ---
      # Configure web interface:
      mkdir /home/zabbix/public_html
      cp -R frontends/php/* /home/zabbix/public_html/
      Edit /etc/apache2/sites-enabled/000-default:
      sudo emacs /etc/apache2/sites-enabled/000-default
      #Work into file:
      Alias /zabbix/ /home/zabbix/public_html/
      <Directory /home/zabbix/public_html>
      AllowOverride FileInfo AuthConfig Limit Indexes
      Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
      <Limit GET POST OPTIONS PROPFIND>
      Order allow,deny
      Allow from all
      </Limit>
      <LimitExcept GET POST OPTIONS PROPFIND>
      Order deny,allow
      Deny from all
      </LimitExcept>
      </Directory>
      #Save and exit.
      #Make php.ini adjustments:
      sudo emacs /etc/php5/apache2/php.ini
      #Change the following values:
      max_execution_time = 300 ; Maximum execution time of each script, in seconds
      date.timezone = America/Kentucky/Louisville
      (use this url to find your correct timezone format: http://us3.php.net/manual/en/timezones.php )
      #Restart Apache:
      sudo /etc/init.d/apache2 restart

      #Now point your browser to:
      http://<servername or ip>/zabbix/
      #1. Introduction
      #read and click Next
      #2. License Agreement
      #Read, check 'I Agree', click Next
      #3. Check of Pre-Requisites
      #Fix any problems, click retry. Click Next when all pre-requisites are OK.
      #4. Configure DB Connection
      #Enter appropriate settings and click Test Connection.
      #Click Next when OK.
      #5. Pre-Installation Summary
      #Verify installation settings, click Next.
      #6. Install

      #Click Save Configuration file and save to machine.
      Copy zabbix.conf.php to /home/zabbix/public_html/conf/zabbix.conf.php
      #One way to do this from a desktop machine (requires ssh installed):
      scp zabbix.conf.php zabbix@<serverip>:/home/zabbix/public_html/conf/
      #Click Retry and click Next when OK.
      #
      #
      #--- 8 ---
      #Finish:
      #Click Finish to complete installation.
      #Your New Zabbix install will now be shown.
      #Log in with username: Admin
      #No Password
      #First go to the tab Configuration and then Hosts.
      #Now create a host-group, see that you can give it some templates, e.g: #Application.MySQL, Host.SNMP, Host.Standalone, Host.Unix.
      #Then some hosts:
      #Select your host-group and use Link with Template Host.Unix
      #Now a lot of triggers are imported and the game begins.
      #Go to the monitoring tab and watch the latest values roll in.
      #For specifics on configuration, please refer to the Zabbix user manual.

      Comment

      • Niels
        Senior Member
        • May 2007
        • 239

        #4
        Is the server process running? What do the logs show? What do you see when you go to http://<servername or ip>/zabbix/ ?

        Comment

        • adr
          Junior Member
          • Jul 2008
          • 2

          #5
          Is the server process running?
          -Tried the lengthy SQL, Apache, install process the first time, but started having problems I did not know how to resolve around step 5/6 of the sheet I posted. Then could not fully uninstall, cause ps kept telling me that the server process was running. So I did a clean install.

          - on try two I used Xampp instead of SQL/Apache stand alones, and got that running on its own easy. However during the Zabbix install process I must have of done something different, because by step four terminal started spouting issues (which I no longer remember, sorry). I haven't look at the problem since.

          What do the logs show?
          - er, which log you referring to?

          What do you see when you go to http://<servername or ip>/zabbix/ ?
          “unable to connect...”

          So:
          I went back to Spiceworks for the time being and put Zabbix on the back burner. I chose Debian for this box because it is “professional”. Are there automagic scripts for Zabbix installation for Fedora or Ubuntu? Other then installing Compiz using good documentation, my Linux systems have always been vanilla workstations, and I have never messed around with Unix servers. I think I got in over my head with this, things like full paths and layman terms would help me greatly. Thanks for any help you can provide.

          Comment

          • vinny
            Senior Member
            • Jan 2008
            • 145

            #6
            Installation on Debian is quite easy....and the error message is quite explicit

            Have u tried Niels advice ? this error is due to a lib missing...that's not insuperable

            vinny
            -------
            Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

            Comment

            Working...