Ad Widget

Collapse

Make Zabbix easier to intall and configure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #16
    Originally posted by nibb
    ... But how in the world there is not a good guide for CentOS i will never understand ... Most enterprises use CentOS or Red Hat ... CentOS is probably the most popular Linux distribution after Ubuntu. And Ubuntu is mainly for home users and desktops so for business i could say CentOS is the 1 Linux distribution.
    Wow, you throw out some assertions there, and I have to say that I disagree - But let's just leave it there.
    The lack of a guide specifically for CentOS may be because the lack of Zabbix users running CentOS? However, since you are running CentOS, you are in a position where you can change this, by spending a little extra time while getting your setup running, by writing a guide at the same time in order to help other people in the same situation. After all, that's how the open source community works.

    Most of frustrated people in here seem to forget that this software is open source, and that often means that you should lower the expectations to documentation and support. It could be due to Zabbix widely being used in enterprise environments, and the people in those environments are used to paying tons of money on service and equipment. This rises their expectations generally, which then may not fit to what Zabbix can deliver.

    Originally posted by nibb
    A good install guide or instruction should be made ... I would like to see official instructions from Zabbix for a correct CentOS installation.
    There are already as good general Linux instructions as you can get in the documentation (apart from any remaining typos). As almost every distro has their own package management system, you can't really make a guide to each distro around.

    Finally, I will like to end of with the conclusion from the review of Zabbix at Linux.com:
    Implementing Zabbix may take quite some time, especially if you have a large number of hosts. Configuring the Zabbix server exactly as you want it takes even longer. But once Zabbix is set up and the agents are in place, monitoring your network becomes a lot easier. Zabbix frees you from spending time discovering network and resource problems on your hosts and network.

    Comment

    • davidtranusa
      Junior Member
      • Nov 2008
      • 9

      #17
      Originally posted by Tenzer
      Wow, you throw out some assertions there, and I have to say that I disagree - But let's just leave it there.
      The lack of a guide specifically for CentOS may be because the lack of Zabbix users running CentOS? However, since you are running CentOS, you are in a position where you can change this, by spending a little extra time while getting your setup running, by writing a guide at the same time in order to help other people in the same situation. After all, that's how the open source community works.

      Most of frustrated people in here seem to forget that this software is open source, and that often means that you should lower the expectations to documentation and support. It could be due to Zabbix widely being used in enterprise environments, and the people in those environments are used to paying tons of money on service and equipment. This rises their expectations generally, which then may not fit to what Zabbix can deliver.


      There are already as good general Linux instructions as you can get in the documentation (apart from any remaining typos). As almost every distro has their own package management system, you can't really make a guide to each distro around.

      Finally, I will like to end of with the conclusion from the review of Zabbix at Linux.com:
      OK. I AM NOT A LINUX EXPERT. I HAVE BEEN USING LINUX FOR THE PAST
      FIVE YEARS BUT I AM JUST A NOVICE USER.

      I have successfully installed Zabbix version 1.4.6 on CentOS version 5.2.
      I wrote this instruction so everyone can install it. Just follow the instructions
      step-by-step and everything will work. I gave the instruction to my
      brother who has never used Linux before and it works for him. Many
      thanks for users in this forum. Here we go:

      Before we begin:
      1- assume that your host name is CentOS-5
      2- assume that the password for mysql is test1234

      Begin:
      a- install CentOS 5.2

      b- yum -y install ntp php php-bcmath php-gd php-mysql httpd mysql gcc mysql-server mysql-devel net-snmp net-snmp-utils net-snmp-devel net-snmp-libs curl-devel make

      c- /etc/init.d/ntpd start

      d- wget http://dag.wieers.com/rpm/packages/f...l5.rf.i386.rpm

      e- rpm -Uvh fping-2.4-1.b2.2.el5.rf.i386.rpm

      f- chmod 7555 /usr/sbin/fping

      g- useradd zabbix

      h- tar -xzvf zabbix-1.4.6.tar.gz
      cd zabbix-1.4.6

      i- /etc/init.d/mysqld start

      j- /usr/bin/mysqladmin -u root password test1234

      k- mysql -u root -p
      mysql> CREATE DATABASE zabbix;
      mysql> GRANT DROP,INDEX,CREATE,SELECT,INSERT,UPDATE,ALTER,DELET E ON zabbix.* TO zabbix@localhost IDENTIFIED BY ‘test1234’;
      mysql> quit;

      o- cd zabbix-1.4.6

      p- cat create/schema/mysql.sql | mysql -u zabbix -ptest1234 zabbix

      q- cat create/data/data.sql | mysql -u zabbix -ptest1234 zabbix

      r- cat create/data/images_mysql.sql | mysql -u zabbix -ptest1234 zabbix

      s- ./configure –enable-server –prefix=/usr/local/zabbix –with-mysql –with-net-snmp –with-libcurl

      t- make install

      u- make clean

      v- ./configure –enable-agent –prefix=/usr/local/zabbix –enable-static

      w- make install

      x- Add the zabbix server and agent ports to your /etc/services file:
      echo ‘zabbix_agent 10050/tcp’ >> /etc/services
      echo ‘zabbix_trap 10051/tcp’ >> /etc/services

      y- mkdir /etc/zabbix
      cp misc/conf/zabbix_agentd.conf /etc/zabbix
      cp misc/conf/zabbix_server.conf /etc/zabbix

      z- in /etc/zabbix/zabbix_server.conf, modify:
      DBUser=zabbix
      BPassword=test1234
      DBSocket=/var/lib/mysql/mysql.sock
      FpingLocation=/usr/sbin/fping

      a- in /etc/zabbix/zabbix_agentd.conf, modify:
      Server=127.0.0.1,Your.Zabbix.Server.IP
      Hostname=CentOS-5
      cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd
      cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server

      b- modify /etc/init.d/zabbix_agentd AND /etc/init.d/zabbix_server:
      BASEDIR=/usr/local/zabbix

      c- modify /etc/init.d/zabbix_agentd:
      ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd

      d- adding the following lines into /etc/init.d/zabbix_agentd, add near the top, just below #!/bin/sh:
      # chkconfig: 345 95 95
      # description: Zabbix Agentd

      e- adding the following lines into /etc/init.d/zabbix_server, add near the top, just below #!/bin/sh:
      # chkconfig: 345 95 95
      # description: Zabbix Server

      f- chkconfig --level 345 zabbix_server on
      chkconfig --level 345 zabbix_agentd on
      chkconfig --level 345 httpd on
      chkconfig --level 345 mysqld on
      chkconfig --level 0123456 iptables off
      /etc/init.d/iptables stop
      /etc/init.d/ip6tables stop

      g- cd zabbix-1.4.6
      cp -r frontends/php /var/www/html/zabbix

      h- modify /etc/php.ini:
      max_execution_time = 300
      date.timezone = America/New_York

      i- /etc/init.d/httpd restart

      j- chmod 777 /var/www/html/zabbix/conf

      k- http://your-zabbix-server/zabbix

      !!!!!Enjoy!!!!!

      Comment

      • nibb
        Member
        • Oct 2008
        • 78

        #18
        That install is copied from another website and is full of errors. It applies to and old version of Zabbix and not the latest CentOS 5.2. Yes, the install is actually similar but using that will not work, it leaves you with broken init files and probably some will have an error with curl missing when they try to make install.

        It should be updated to the latest Zabbix version, and it also has some errors in the commands, nothing serious but for sure someone not knowing what he does will not gave up once the first error appears.

        My suggestion would be to make a bash .sh file that executes all the correct commands in order. You just run the .sh file and thats it. I have seing some other softwares that are installed this way and you just see how it keeps running commands in your screen. All it takes is 1 hit to install and configure all.
        Last edited by nibb; 13-11-2008, 07:28.

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #19
          I was just reading this thread a second time and realized what the problem is!

          RedHat RPMs, they aren't designed to be easy. Its not Zabbix's fault, its the install system of Red Hat.

          You run CentOS, you get RPM's. That's what happens when you sleep with the enemy

          Run Debian/Ubuntu and you can redeem yourself!

          Okay, this posting might be slightly bias... but hey, I don't see anyone with Debian having install problems!

          I do feel for the noobs though. I know how painful it can be. Try compiling on Solaris or cygwin. That sounds like REAL fun. If I find myself having to run Zabbix_server on Redhat 5.2, I'll make sure and document it nicely.

          P.S. -- To those complaining about the complexity of the product, try BMC Patrol, Micromuse, SMARTS, or some other Enterprise monitoring system and you'll be back here in a jiffy. Guaranteed.
          Last edited by bbrendon; 13-11-2008, 09:05. Reason: p.s.
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • davidtranusa
            Junior Member
            • Nov 2008
            • 9

            #20
            Originally posted by bbrendon
            I was just reading this thread a second time and realized what the problem is!

            RedHat RPMs, they aren't designed to be easy. Its not Zabbix's fault, its the install system of Red Hat.

            You run CentOS, you get RPM's. That's what happens when you sleep with the enemy

            Run Debian/Ubuntu and you can redeem yourself!

            Okay, this posting might be slightly bias... but hey, I don't see anyone with Debian having install problems!

            I do feel for the noobs though. I know how painful it can be. Try compiling on Solaris or cygwin. That sounds like REAL fun. If I find myself having to run Zabbix_server on Redhat 5.2, I'll make sure and document it nicely.

            P.S. -- To those complaining about the complexity of the product, try BMC Patrol, Micromuse, SMARTS, or some other Enterprise monitoring system and you'll be back here in a jiffy. Guaranteed.
            I don't know what others people are complaining about. The instructions
            I posted are widely used by others. I gave the instructioins to 3 other people
            who are quite new to Linux and they were able to install Zabbix with the
            instructions I provided in less than one hour. Working right of the gate first
            time around.

            Zabbix really rocks.

            Comment

            • nibb
              Member
              • Oct 2008
              • 78

              #21
              Originally posted by davidtranusa
              I don't know what others people are complaining about. The instructions
              I posted are widely used by others. I gave the instructioins to 3 other people
              who are quite new to Linux and they were able to install Zabbix with the
              instructions I provided in less than one hour. Working right of the gate first
              time around.

              Zabbix really rocks.
              Let me try your install on a new CentOS 5.2 x64 with just the new OS fresh installed.

              I will get back and see if i find errors.

              Comment

              • davidtranusa
                Junior Member
                • Nov 2008
                • 9

                #22
                Originally posted by nibb
                Let me try your install on a new CentOS 5.2 x64 with just the new OS fresh installed.

                I will get back and see if i find errors.
                ATTENTION!!!!!

                My instructions are for CentOS 5.2 32-bits. My CentOS 5.2 runs on VMware
                ESX 3.5i

                Comment

                • nibb
                  Member
                  • Oct 2008
                  • 78

                  #23
                  Originally posted by davidtranusa
                  ATTENTION!!!!!

                  My instructions are for CentOS 5.2 32-bits. My CentOS 5.2 runs on VMware
                  ESX 3.5i
                  In your instruction you use an outdated Zabbix version, i think the paths where different, with the init files. I say this because i used similar instructions on a 32 bits CentOS and i had to fix some things, not sure if there where the same instructions you published but they look similar and they where also for that Zabbix version 1.4.6. Did you tried those instructions with the latest Zabbix?

                  I dont think there will much difference with a 64 version. It should be almost the same.

                  Comment

                  • tighep
                    Senior Member
                    • Dec 2007
                    • 124

                    #24
                    We're a RedHat shop, and I just finished compiling 1.6.1 for my server, which is 64-bit. I didn't take the time for a guide, but I'll write something up. The install was a bit more difficult, but this was RedHat's fault, as yum likes to install 32-bit packages to solve dependencies.

                    Comment

                    • nibb
                      Member
                      • Oct 2008
                      • 78

                      #25
                      Originally posted by tighep
                      We're a RedHat shop, and I just finished compiling 1.6.1 for my server, which is 64-bit. I didn't take the time for a guide, but I'll write something up. The install was a bit more difficult, but this was RedHat's fault, as yum likes to install 32-bit packages to solve dependencies.
                      Well, im sure it will help allof of people. I pay for your guide if you want but im sure it will be more then welcome so be published in Zabbix for other people.

                      Comment

                      • tighep
                        Senior Member
                        • Dec 2007
                        • 124

                        #26
                        No need to pay for some help, that's the community at work. See if this information will help out a bit. This is purely a supplement to the Zabbix documentation, but it is what I needed to do for a compile on RHEL 5 64bit.

                        1. Verify packages needed by RHEL5 – To do this I prefer to use yum list <package>, it seems to differentiate between 32 and 64 bit packages better than rpm.
                        a. curl-devel.x86_64
                        b. libstdc++-devel.x86_64
                        c. net-snmp-devel.x86_64
                        d. libgssapi-devel.x86_64
                        e. zlib-devel.x86_64
                        f. openssl-devel.x86_64
                        g. krb5-devel.x86_64
                        h. e2fsprogs-devel.x86_64
                        i. libidn-devel.x86_64

                        2. Get source packages from http://www.zabbix.com/download.php
                        3. # tar xvfz zabbix-1.6.1.tar.gz
                        4. # cd zabbix-1.6.1
                        5. # ./configure –enable-server –with-mysql –with-net-snmp –with-libcurl
                        6. # make install
                        7. The files will be compiled into /usr/local/sbin by default.


                        That's a quick hack, I'll write something more start to finish when I've got time . Let me know if that works for you, if not I'm curious the problems.

                        Comment

                        • nibb
                          Member
                          • Oct 2008
                          • 78

                          #27
                          Originally posted by tighep
                          No need to pay for some help, that's the community at work. See if this information will help out a bit. This is purely a supplement to the Zabbix documentation, but it is what I needed to do for a compile on RHEL 5 64bit.

                          1. Verify packages needed by RHEL5 – To do this I prefer to use yum list <package>, it seems to differentiate between 32 and 64 bit packages better than rpm.
                          a. curl-devel.x86_64
                          b. libstdc++-devel.x86_64
                          c. net-snmp-devel.x86_64
                          d. libgssapi-devel.x86_64
                          e. zlib-devel.x86_64
                          f. openssl-devel.x86_64
                          g. krb5-devel.x86_64
                          h. e2fsprogs-devel.x86_64
                          i. libidn-devel.x86_64

                          2. Get source packages from http://www.zabbix.com/download.php
                          3. # tar xvfz zabbix-1.6.1.tar.gz
                          4. # cd zabbix-1.6.1
                          5. # ./configure –enable-server –with-mysql –with-net-snmp –with-libcurl
                          6. # make install
                          7. The files will be compiled into /usr/local/sbin by default.


                          That's a quick hack, I'll write something more start to finish when I've got time . Let me know if that works for you, if not I'm curious the problems.
                          When I install a new VM server for testing I do with without any options at all. I do a clean install CentOS 5.2 x64 in server mode only text mode. This way I can test what is needed from scratch so it will work. I suppose I have to install everything so I was hoping more a detailed how to for new fresh OS.

                          Comment

                          • tighep
                            Senior Member
                            • Dec 2007
                            • 124

                            #28
                            When I get a chance with a minimal fresh install I'll post more. Maybe a weekend project depending on the kids being sick or not.

                            Comment

                            • nibb
                              Member
                              • Oct 2008
                              • 78

                              #29
                              Originally posted by tighep
                              When I get a chance with a minimal fresh install I'll post more. Maybe a weekend project depending on the kids being sick or not.
                              Sorry did not knew you had sick kids.

                              I will try making the install with the list of RPM.

                              Thanks

                              Comment

                              • tighep
                                Senior Member
                                • Dec 2007
                                • 124

                                #30
                                No worries, one of the joys of parenthood. If you have success, pass along the information. I'd love to see a more robust installer instead of pages upon pages of a document.

                                Comment

                                Working...