Ad Widget

Collapse

Cut and Paste walkthrough of Zabbix installation on CentOS 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mikrodots
    Member
    • Mar 2008
    • 37

    #16
    Good news!

    I did a re-install of the Centos 5.2 64 Bit in a VMWare virtual server and the script ran beautifully!

    What I did differently was to install the Server GUI package, without the Server package.

    In other words, the first install had both the Server GUI and the Server packages installed the second install had just the Server GUI package.

    I don't know if that is what made the difference.

    Thanks bbrendon.

    Mikrodots

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #17
      I found the problem. It looks like its a Red Hat issue. Either way, I found a workaround. You can re-download the script if you like.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • Mikrodots
        Member
        • Mar 2008
        • 37

        #18
        Script error: configure: error: Not found libcurl library

        Same problem with Curl using the script.

        Fresh Centos5.2 64Bit install on a VM
        Only selected the Server Gui installation
        Installed Firefox 64bit - latest version
        Installed MySql-Server 64 Bit
        Ran yum update
        Restarted
        Then the scipt

        End of the Script output:
        checking sys/disk.h usability... no
        checking sys/disk.h presence... no
        checking for sys/disk.h... no
        checking nlist.h usability... yes
        checking nlist.h presence... yes
        checking for nlist.h... yes
        checking net/if.h usability... yes
        checking net/if.h presence... yes
        checking for net/if.h... yes
        checking kvm.h usability... no
        checking kvm.h presence... no
        checking for kvm.h... no
        checking linux/kernel.h usability... yes
        checking linux/kernel.h presence... yes
        checking for linux/kernel.h... yes
        checking getopt.h usability... yes
        checking getopt.h presence... yes
        checking for getopt.h... yes
        checking procinfo.h usability... no
        checking procinfo.h presence... no
        checking for procinfo.h... no
        checking sys/dk.h usability... no
        checking sys/dk.h presence... no
        checking for sys/dk.h... no
        checking sys/resource.h usability... yes
        checking sys/resource.h presence... yes
        checking for sys/resource.h... yes
        checking pthread.h usability... yes
        checking pthread.h presence... yes
        checking for pthread.h... yes
        checking windows.h usability... no
        checking windows.h presence... no
        checking for windows.h... no
        checking process.h usability... no
        checking process.h presence... no
        checking for process.h... no
        checking conio.h usability... no
        checking conio.h presence... no
        checking for conio.h... no
        checking sys/wait.h usability... yes
        checking sys/wait.h presence... yes
        checking for sys/wait.h... yes
        checking regex.h usability... yes
        checking regex.h presence... yes
        checking for regex.h... yes
        checking stdarg.h usability... yes
        checking stdarg.h presence... yes
        checking for stdarg.h... yes
        checking winsock2.h usability... no
        checking winsock2.h presence... no
        checking for winsock2.h... no
        checking pdh.h usability... no
        checking pdh.h presence... no
        checking for pdh.h... no
        checking psapi.h usability... no
        checking psapi.h presence... no
        checking for psapi.h... no
        checking sys/sem.h usability... yes
        checking sys/sem.h presence... yes
        checking for sys/sem.h... yes
        checking sys/ipc.h usability... yes
        checking sys/ipc.h presence... yes
        checking for sys/ipc.h... yes
        checking sys/shm.h usability... yes
        checking sys/shm.h presence... yes
        checking for sys/shm.h... yes
        checking Winldap.h usability... no
        checking Winldap.h presence... no
        checking for Winldap.h... no
        checking sys/timeb.h usability... yes
        checking sys/timeb.h presence... yes
        checking for sys/timeb.h... yes
        checking Winber.h usability... no
        checking Winber.h presence... no
        checking for Winber.h... no
        checking lber.h usability... no
        checking lber.h presence... no
        checking for lber.h... no
        checking ws2tcpip.h usability... no
        checking ws2tcpip.h presence... no
        checking for ws2tcpip.h... no
        checking for inttypes.h... (cached) yes
        checking sys/file.h usability... yes
        checking sys/file.h presence... yes
        checking for sys/file.h... yes
        checking grp.h usability... yes
        checking grp.h presence... yes
        checking for grp.h... yes
        checking net/if_mib.h usability... no
        checking net/if_mib.h presence... no
        checking for net/if_mib.h... no
        checking sys/user.h usability... yes
        checking sys/user.h presence... yes
        checking for sys/user.h... yes
        checking for an ANSI C-conforming const... yes
        checking for pid_t... yes
        checking for library containing socket... none required
        checking for library containing kstat_open... no
        checking for library containing gethostbyname... none required
        checking for library containing __res_query... -lresolv
        checking for library containing res_query... no
        checking for main in -lm... yes
        checking for main in -lkvm... no
        checking for function res_query... yes
        checking for union semun... no
        checking for long long format... no
        checking for socklen_t... yes
        checking for /proc filesystem... yes
        checking for file /proc/stat... yes
        checking for file /proc/cpuinfo... yes
        checking for file /proc/1/status... yes
        checking for file /proc/0/psinfo... no
        checking for file /proc/loadavg... yes
        checking for file /proc/net/dev... yes
        checking for mem_unit in struct sysinfo... yes
        checking for freeswap in struct sysinfo... yes
        checking for function setpriority() in sys/resource.h... yes
        checking for function sysconf() in unistd.h... yes
        checking for macro __va_copy() in stdarg.h... yes
        checking for vmtotal in struct sys/vmmeter.h... no
        checking for uvmexp_sysctl in struct uvm/uvm_extern.h... no
        checking for uvmexp in struct uvm/uvm_extern.h... no
        checking for struct swaptable in sys/swap.h... no
        checking for totalswap in struct sysinfo... yes
        checking for function sysctl (KERN_BOOTTIME)... no
        checking for function sysctl (HW_NCPU)... no
        checking for function sysctlbyname()... no
        checking for function sysctl (KERN_MAXFILES)... no
        checking for function sysctl (KERN_MAXPROC)... no
        checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... no
        checking for function initgroups()... yes
        checking for function seteuid()... yes
        checking for function setproctitle()... no
        checking for totalram in struct sysinfo... yes
        checking for __VA_ARGS__... yes
        checking for sharedram in struct sysinfo... yes
        checking for bufferram in struct sysinfo... yes
        checking for freeram in struct sysinfo... yes
        checking for uptime in struct sysinfo... yes
        checking for procs in struct sysinfo... yes
        checking return type of signal handlers... void
        checking for getloadavg... yes
        checking for socket... yes
        checking for strtod... yes
        checking for snprintf... yes
        checking for vasprintf... yes
        checking for asprintf... yes
        checking for vsnprintf... yes
        checking for hstrerror... yes
        checking for atoll... yes
        checking for getopt_long... yes
        checking for mysql_config... /usr/bin/mysql_config
        checking for main in -lmysqlclient ... yes
        checking for ZABBIX server database selection... ok
        checking for pkg-config... /usr/bin/pkg-config
        checking pkg-config is at least version 0.9.0... yes
        checking for gawk... (cached) gawk
        checking for curl-config... /usr/bin/curl-config
        checking for the version of libcurl... 7.15.5
        checking for libcurl >= version 7.13.1... yes
        checking for main in -lcurl... no
        configure: error: Not found libcurl library
        fail: Configure

        Comment

        • Mikrodots
          Member
          • Mar 2008
          • 37

          #19
          Ran yum update after the failed installation from the script - it updated the packages below but still failed at curl...

          ================================================== ===========================
          Package Arch Version Repository Size
          ================================================== ===========================
          Installing:
          perl-DBD-mysql x86_64 4.008-1.el5.rf rpmforge 225 k
          replacing perl-DBD-MySQL.x86_64 3.0007-1.fc6

          Updating:
          cadaver x86_64 0.22.5-1.el5.rf rpmforge 165 k
          lftp x86_64 3.7.4-1.el5.rf rpmforge 2.0 M
          mtr x86_64 2:0.75-1.el5.rf rpmforge 84 k
          perl-Archive-Tar noarch 1.38-1.el5.rf rpmforge 56 k
          perl-BSD-Resource x86_64 1.2901-1.el5.rf rpmforge 57 k
          perl-Compress-Zlib noarch 2.015-1.el5.rf rpmforge 34 k
          perl-DBI x86_64 1.607-1.el5.rf rpmforge 871 k
          perl-HTML-Parser x86_64 3.56-1.el5.rf rpmforge 149 k
          perl-HTML-Tagset noarch 3.20-1.el5.rf rpmforge 14 k
          perl-IO-Socket-INET6 noarch 2.56-1.el5.rf rpmforge 17 k
          perl-IO-Socket-SSL noarch 1.17-1.el5.rf rpmforge 55 k
          perl-IO-Zlib noarch 1.09-1.el5.rf rpmforge 16 k
          perl-Net-DNS x86_64 0.63-1.el5.rf rpmforge 279 k
          perl-Net-SSLeay x86_64 1.32-1.el5.rf rpmforge 310 k
          perl-Socket6 x86_64 0.20-1.el5.rf rpmforge 48 k
          rsync x86_64 3.0.4-1.el5.rf rpmforge 373 k
          spamassassin x86_64 3.2.5-1.el5.rf rpmforge 1.1 M
          syslinux x86_64 3.72-2.el5.rf rpmforge 1.1 M
          udftools x86_64 1.0.0b3-3.el5.rf rpmforge 100 k
          Installing for dependencies:
          perl-Compress-Raw-Zlib x86_64 2.015-1.el5.rf rpmforge 171 k
          perl-Crypt-PasswdMD5 noarch 1.3-1.2.el5.rf rpmforge 9.9 k
          perl-IO-Compress-Base noarch 2.015-1.el5.rf rpmforge 57 k
          perl-IO-Compress-Zlib noarch 2.015-1.el5.rf rpmforge 142 k
          perl-Net-Daemon noarch 0.43-1.el5.rf rpmforge 44 k
          perl-PlRPC noarch 0.2020-1.el5.rf rpmforge 33 k

          Transaction Summary
          ================================================== ===========================
          Install 7 Package(s)
          Update 19 Package(s)
          Remove 0 Package(s)

          Comment

          • Mikrodots
            Member
            • Mar 2008
            • 37

            #20
            FYI

            [root@zabbix download]# rpm -qa|egrep 'release|curl'
            centos-release-notes-5.2-2
            curl-7.15.5-2.el5
            curl-devel-7.15.5-2.el5
            curl-7.15.5-2.el5
            rpmforge-release-0.3.6-1.el5.rf
            curl-devel-7.15.5-2.el5
            centos-release-5-2.el5.centos
            [root@zabbix download]#

            Comment

            • bbrendon
              Senior Member
              • Sep 2005
              • 870

              #21
              Okay. Redownload and run. I updated the version to 0.6.1. Curl has a zillion dependencies that are not documented. Argh.

              If it doesn't work, there is a logfile called config.log in /tmp/zabbix-1.6.1
              Attach it plz.
              Last edited by bbrendon; 22-11-2008, 02:58.
              Unofficial Zabbix Expert
              Blog, Corporate Site

              Comment

              • Mikrodots
                Member
                • Mar 2008
                • 37

                #22
                Ran the yum command from this thread: link

                yum install gcc-c++ libstdc++-devel make mysql-devel curl-devel openssl-devel krb5-devel libgssapi-devel e2fsprogs-libs libidn-devel zlib-devel net-snmp-devel glibc-devel

                Then your script.

                Must be missing some dependencies.

                All is good now.

                Comment

                • Mikrodots
                  Member
                  • Mar 2008
                  • 37

                  #23
                  Tried again, still fails...

                  This was on a clean install of Centos5.2 64Bit in a Virtual Machine
                  Only installed Server GUI packages, added FireFox, VMWare Tools, mysql-server
                  Ran yum update and restarted

                  Ran the new script and:

                  checking for curl-config... /usr/bin/curl-config
                  checking for the version of libcurl... 7.15.5
                  checking for libcurl >= version 7.13.1... yes
                  checking for main in -lcurl... no
                  configure: error: Not found libcurl library
                  fail: Configure

                  I'll run the yum command below and try again.

                  (yum install gcc-c++ libstdc++-devel make mysql-devel curl-devel openssl-devel krb5-devel libgssapi-devel e2fsprogs-libs libidn-devel zlib-devel net-snmp-devel glibc-devel)

                  Comment

                  • Mikrodots
                    Member
                    • Mar 2008
                    • 37

                    #24
                    FYI,

                    Running yum update after running the script:

                    ================================================== ===========================
                    Package Arch Version Repository Size
                    ================================================== ===========================
                    Installing:
                    perl-DBD-mysql x86_64 4.008-1.el5.rf rpmforge 225 k
                    replacing perl-DBD-MySQL.x86_64 3.0007-1.fc6

                    Updating:
                    cadaver x86_64 0.22.5-1.el5.rf rpmforge 165 k
                    lftp x86_64 3.7.4-1.el5.rf rpmforge 2.0 M
                    mtr x86_64 2:0.75-1.el5.rf rpmforge 84 k
                    perl-Archive-Tar noarch 1.38-1.el5.rf rpmforge 56 k
                    perl-BSD-Resource x86_64 1.2901-1.el5.rf rpmforge 57 k
                    perl-Compress-Zlib noarch 2.015-1.el5.rf rpmforge 34 k
                    perl-DBI x86_64 1.607-1.el5.rf rpmforge 871 k
                    perl-HTML-Parser x86_64 3.56-1.el5.rf rpmforge 149 k
                    perl-HTML-Tagset noarch 3.20-1.el5.rf rpmforge 14 k
                    perl-IO-Socket-INET6 noarch 2.56-1.el5.rf rpmforge 17 k
                    perl-IO-Socket-SSL noarch 1.17-1.el5.rf rpmforge 55 k
                    perl-IO-Zlib noarch 1.09-1.el5.rf rpmforge 16 k
                    perl-Net-DNS x86_64 0.63-1.el5.rf rpmforge 279 k
                    perl-Net-SSLeay x86_64 1.32-1.el5.rf rpmforge 310 k
                    perl-Socket6 x86_64 0.20-1.el5.rf rpmforge 48 k
                    rsync x86_64 3.0.4-1.el5.rf rpmforge 373 k
                    spamassassin x86_64 3.2.5-1.el5.rf rpmforge 1.1 M
                    syslinux x86_64 3.72-2.el5.rf rpmforge 1.1 M
                    udftools x86_64 1.0.0b3-3.el5.rf rpmforge 100 k
                    Installing for dependencies:
                    perl-Compress-Raw-Zlib x86_64 2.015-1.el5.rf rpmforge 171 k
                    perl-Crypt-PasswdMD5 noarch 1.3-1.2.el5.rf rpmforge 9.9 k
                    perl-IO-Compress-Base noarch 2.015-1.el5.rf rpmforge 57 k
                    perl-IO-Compress-Zlib noarch 2.015-1.el5.rf rpmforge 142 k
                    perl-Net-Daemon noarch 0.43-1.el5.rf rpmforge 44 k
                    perl-PlRPC noarch 0.2020-1.el5.rf rpmforge 33 k

                    Transaction Summary
                    ================================================== ===========================
                    Install 7 Package(s)
                    Update 19 Package(s)
                    Remove 0 Package(s)

                    Comment

                    • Mikrodots
                      Member
                      • Mar 2008
                      • 37

                      #25
                      Okay, ran the script after running yum (again) and it failed the same way.

                      Then ran this:

                      [root@zabbix ~]# yum install gcc-c++ libstdc++-devel make mysql-devel curl-devel openssl-devel krb5-devel libgssapi-devel e2fsprogs-libs libidn-devel zlib-devel net-snmp-devel glibc-devel
                      Loading "fastestmirror" plugin
                      Loading mirror speeds from cached hostfile
                      * rpmforge: fr2.rpmfind.net
                      * base: centos.mirror.nac.net
                      * updates: mirror.trouble-free.net
                      * addons: mirror.myriadnetwork.com
                      * extras: ftp.lug.udel.edu
                      Setting up Install Process
                      Parsing package install arguments
                      Package make - 1:3.81-3.el5.x86_64 is already installed.
                      Package mysql-devel - 5.0.45-7.el5.x86_64 is already installed.
                      Package mysql-devel - 5.0.45-7.el5.i386 is already installed.
                      Package curl-devel - 7.15.5-2.el5.i386 is already installed.
                      Package curl-devel - 7.15.5-2.el5.x86_64 is already installed.
                      Package openssl-devel - 0.9.8b-10.el5.i386 is already installed.
                      Package openssl-devel - 0.9.8b-10.el5.x86_64 is already installed.
                      Package krb5-devel - 1.6.1-25.el5_2.1.i386 is already installed.
                      Package krb5-devel - 1.6.1-25.el5_2.1.x86_64 is already installed.
                      Package libgssapi-devel - 0.10-2.x86_64 is already installed.
                      Package libgssapi-devel - 0.10-2.i386 is already installed.
                      Package e2fsprogs-libs - 1.39-15.el5.x86_64 is already installed.
                      Package e2fsprogs-libs - 1.39-15.el5.i386 is already installed.
                      Package libidn-devel - 0.6.5-1.1.i386 is already installed.
                      Package zlib-devel - 1.2.3-3.i386 is already installed.
                      Package zlib-devel - 1.2.3-3.x86_64 is already installed.
                      Package net-snmp-devel - 1:5.3.1-24.el5_2.2.i386 is already installed.
                      Package net-snmp-devel - 1:5.3.1-24.el5_2.2.x86_64 is already installed.
                      Package glibc-devel - 2.5-24.x86_64 is already installed.
                      Resolving Dependencies
                      --> Running transaction check
                      ---> Package libstdc++-devel.i386 0:4.1.2-42.el5 set to be updated
                      filelists.xml.gz 100% |=========================| 3.0 MB 00:12
                      filelists.xml.gz 100% |=========================| 3.4 MB 00:20
                      filelists.xml.gz 100% |=========================| 2.2 MB 00:10
                      filelists.xml.gz 100% |=========================| 148 kB 00:00
                      filelists.xml.gz 100% |=========================| 150 B 00:00
                      ---> Package libstdc++-devel.x86_64 0:4.1.2-42.el5 set to be updated
                      ---> Package libidn-devel.x86_64 0:0.6.5-1.1 set to be updated
                      ---> Package gcc-c++.x86_64 0:4.1.2-42.el5 set to be updated
                      ---> Package glibc-devel.i386 0:2.5-24 set to be updated
                      --> Finished Dependency Resolution

                      Dependencies Resolved

                      ================================================== ===========================
                      Package Arch Version Repository Size
                      ================================================== ===========================
                      Installing:
                      gcc-c++ x86_64 4.1.2-42.el5 base 3.8 M
                      glibc-devel i386 2.5-24 base 2.0 M
                      libidn-devel x86_64 0.6.5-1.1 base 239 k
                      Installing for dependencies:
                      libstdc++-devel i386 4.1.2-42.el5 base 2.9 M
                      libstdc++-devel x86_64 4.1.2-42.el5 base 2.8 M

                      Transaction Summary
                      ================================================== ===========================
                      Install 5 Package(s)
                      Update 0 Package(s)
                      Remove 0 Package(s)


                      Downloading Packages:
                      (1/5): glibc-devel-2.5-24 100% |=========================| 2.0 MB 00:02
                      (2/5): gcc-c++-4.1.2-42.e 100% |=========================| 3.8 MB 00:03
                      (3/5): libidn-devel-0.6.5 100% |=========================| 239 kB 00:00
                      (4/5): libstdc++-devel-4. 100% |=========================| 2.8 MB 00:02
                      (5/5): libstdc++-devel-4. 100% |=========================| 2.9 MB 00:02
                      Running rpm_check_debug
                      Running Transaction Test
                      Finished Transaction Test
                      Transaction Test Succeeded
                      Running Transaction
                      Installing: libstdc++-devel ######################### [1/5]
                      Installing: libstdc++-devel ######################### [2/5]
                      Installing: libidn-devel ######################### [3/5]
                      Installing: gcc-c++ ######################### [4/5]
                      Installing: glibc-devel ######################### [5/5]

                      Installed: gcc-c++.x86_64 0:4.1.2-42.el5 glibc-devel.i386 0:2.5-24 libidn-devel.x86_64 0:0.6.5-1.1
                      Dependency Installed: libstdc++-devel.i386 0:4.1.2-42.el5 libstdc++-devel.x86_64 0:4.1.2-42.el5
                      Complete!

                      All is good once again....

                      Must still be missing a dependency,

                      Mikrodots

                      Comment

                      • Mikrodots
                        Member
                        • Mar 2008
                        • 37

                        #26
                        Hey bbrendon,

                        Just wanted to say thanks.

                        Your script saves me a ton of time. I just run that other yum command first and then your script works great.

                        I appreciate the work you have done. Thanks again!

                        Mikrodots

                        Comment

                        • zeki893
                          Junior Member
                          • Dec 2008
                          • 23

                          #27
                          this is missing jabber support. I found directions to compile with google search "install jabberd centos5"
                          i followed the instructions there to install jabberd and after had to ln -s /usr/local/lib/libg* /usr/lib
                          then start the compile


                          also need to chown root.zabbix /bin/ping and /bin/traceroute then chmod ug+s /bin/ping and /bin/traceroute
                          Then in scripts under administration change it in the zabbix gui from /usr/sbin/traceroute to /bin/traceroute


                          ./configure --enable-server --enable-agent --with-mysql --with-net-snmp –-with-jabber=/usr/ -–with-libcurl
                          Last edited by zeki893; 22-01-2009, 00:01.

                          Comment

                          • zeki893
                            Junior Member
                            • Dec 2008
                            • 23

                            #28
                            found out when i tried to install the agent onto another system using the epel repo that is on the wiki installs v 1.4
                            I needed to compile the agent from source for 1.6.1
                            Last edited by zeki893; 21-01-2009, 23:56.

                            Comment

                            • Gfitz
                              Junior Member
                              • Oct 2008
                              • 13

                              #29
                              Any reason why I may be able to monitor stuff on my internal network using this script but the status remains unknown for hosts on external agents? They are all agent version 1.6.0.

                              Comment

                              • Mikrodots
                                Member
                                • Mar 2008
                                • 37

                                #30
                                revisiting this

                                I am going to use the script again - to try to install version 1.6.5

                                I edited the script here:
                                ZBX_VER='1.6.5'

                                And added these dependencies:
                                gcc-c++ libstdc++-devel make e2fsprogs-libs glibc-devel

                                to the yum install command.

                                Everything else is listed in this command
                                Code:
                                yum install gcc-c++ libstdc++-devel make mysql-devel curl-devel openssl-devel krb5-devel libgssapi-devel e2fsprogs-libs libidn-devel zlib-devel net-snmp-devel glibc-devel
                                is already in the scipt. (see previous post)

                                I'm guessing one of these three caused my error before:

                                libstdc++-devel e2fsprogs-libs glibc-devel

                                I'm not going to try to narrow it down more than that.

                                Mikrodots
                                Last edited by Mikrodots; 24-06-2009, 21:31. Reason: typos

                                Comment

                                Working...