Ad Widget

Collapse

Instalation in CentOS.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • primiparo
    Junior Member
    • Jan 2009
    • 28

    #1

    Instalation in CentOS.

    Hi comunity !!
    I'm going to install zabbix 1.6 in a server in wich must be installed with CentOS. I think mysql for bd. Some version in special for good work CentOS with Zabbix..? CentOS 5 or 4 ..? Some recomendations ?
  • simonuk1
    Member
    • Mar 2009
    • 66

    #2
    I would go for centos 5 as its the latest support version by centos.

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #3
      Works fine on CentOS5 x86_64. Most if not all dependencies are available in CentOS 5 so you probably won't need to install extra libraries.

      If you're running centos 5.3 x86_64, I suggest you add multilib_policy=best to /etc/yum.conf before you install anything.

      On CentOS 5.2 without any tuning, yum would install both i386 and x86_64 libs and that would cause problems later (libcurl !).
      With the basearchonly plugin things were much better as yum then installs x86_64 packages only (unless you explicitly tell it to install an i386 package, or there's only an i386 package available).

      multilib_policy=best is the built-in equivalent of plugin basearchonly (which is now deprecated) in yum 3.2.19 that ships with CentOS 5.3

      If you're installing an i386 version of CentOS5, just forget about this.

      Anyway, here's what we used:

      On the zabbix_server:
      • yum install gcc make
      • yum install openssl openssl-devel
      • yum install curl curl-devel
      • yum install net-snmp net-snmp-libs net-snmp-devel
      • yum install mysql mysql-devel


      On the database server:
      • yum install mysql-server


      On the GUI/Web server:
      • yum install httpd php php-mysql php-bcmath php-gd php-ldap


      Or ... all of these if you intend to run all components (zabbix_server + DB + Web/GUI) on a single server.

      Build/configure
      Code:
      ./configure --enable-server --enable-agent \
      --with-mysql=/usr/bin/mysql_config \
      --with-net-snmp \
      --with-libcurl=/usr/bin/curl-config \
      --prefix=/usr/local/zabbix-1.6.4
      There's a more complete tutorial on the forum for installing on CentOS.

      Comment

      • mblackmer
        Junior Member
        • May 2009
        • 1

        #4
        Installation in CentOS

        I have found this to be the most complete install instructions for CentOS or Redhat variants.

        http://bobcares.com/index.php/blog/?p=303

        You may have to adjust some of the version numbers for the downloads to get the latest version. But it worked really smoothly in CentOS 5.3. and covers all the prerequisites except the Jabber libs.

        Cheers,

        Max Blackmer
        Website
        Blog

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #5
          Originally posted by mblackmer
          I have found this to be the most complete install instructions for CentOS or Redhat variants.

          http://bobcares.com/index.php/blog/?p=303
          I'll raise you. This is the easiest, and very complete if you want to read the code. Works on CentOS 5 and any version of 1.6.x


          Though, I would recommend using packages before installing by source.
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • primiparo
            Junior Member
            • Jan 2009
            • 28

            #6
            Instalation of zabbix interface...

            Hello to all comrades in the struggle!
            first of all, thank you very much everyone for this good input ... I was ill health, but again on the battlefield!
            In this installation, one person an advance, but otherwise forget. Advancement:
            . / configure - enable-server - with-mysql - with-libcurl - enable-agent
            but he miss : net-snmp

            I can give :

            . / configure --with-net-snmp

            to add what is missing or should I do ..?

            indeed, as I am in that part of zabbix web interface and I get this problem:

            PHP version: 5.1.6 Ok
            PHP Memory limit: 16M Ok
            PHP post max size: 8M Ok
            PHP max execution time: 120 sec Fail
            PHP Databases support: No Fail
            PHP BC math support no Fail
            GD Version: No Fail
            Image formats: No Fail
            PHP Timezone: 'America/Bogota' Ok

            Fail

            Any suggest....??

            Comment

            • flo
              Junior Member
              • Jun 2009
              • 2

              #7
              Hi,

              you need to install some packets and adjust some parameters in php.ini

              PHP version: 5.1.6 Ok
              PHP Memory limit: 16M Ok
              PHP post max size: 8M Ok
              PHP max execution time: 120 sec Fail
              PHP Databases support: No Fail
              PHP BC math support no Fail
              GD Version: No Fail
              Image formats: No Fail
              PHP Timezone: 'America/Bogota' Ok
              PHP max execution time: 120 sec Fail --> sed -i 's/\(max_execution_time = \)30/\1120/' /etc/php.ini
              PHP Databases support: No Fail --> install php-mysql
              PHP BC math support no Fail --> install php-bcmath
              GD Version: No Fail --> install php-gd

              Comment

              • primiparo
                Junior Member
                • Jan 2009
                • 28

                #8
                Advances in installation of zabbix web interface.

                Hi everyone,
                Thanks for the input, i did and pass the prerequisites of the web interface. But at the end of setup, it generate this error:

                Configuration file: Fail

                Please install configuration file manualy.

                By pressing "Save configuration file" button download configuration file and place them into the
                "/var/www/html/zabbix/conf/zabbix.conf.php"


                In the manual says that store under conf/ (..???...).. but no anymore...

                The file generated (zabbix.conf.php) is this:

                global $DB;

                $DB["TYPE"] = "MYSQL";
                $DB["SERVER"] = "localhost";
                $DB["PORT"] = "3306";
                $DB["DATABASE"] = "zabbix";
                $DB["USER"] = "zabbix";
                $DB["PASSWORD"] = "XXXXXXXX";
                $ZBX_SERVER = "localhost";
                $ZBX_SERVER_PORT = "10051";


                $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

                Any idea of what is happening ...?

                I remember that the port 10051 was previously configured for Trapper zabbix (etc/services) ...that don“t create conflict against what we see in the file ..?

                Comment

                • primiparo
                  Junior Member
                  • Jan 2009
                  • 28

                  #9
                  Advances in installation of zabbix web interface

                  Hi Comunity !!

                  Already finish this step.

                  It was : seems that the web interface has a bug and need to save the file that is generated (zabbix.conf.php) under the folder /conf, which are under the frontend files. (/var/www/html/zabbix, for example). then store in this folder and I retry and ready. !


                  On the other hand, ask: I need to add the option "--with-net-snmp" how can update the installed it until now, I can do it like this: ...??

                  ./configure --with-net-snmp ???

                  Comment

                  Working...