Ad Widget

Collapse

Zabbix installation problem on Linux Centos 5.7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reward
    Junior Member
    • Sep 2011
    • 11

    #1

    Zabbix installation problem on Linux Centos 5.7

    Hello all,

    I am very new to Zabbix and want to work with it to learn and possibly become certified for zabbix. I am trying to compile and install the zabbix on a local Centos server but I am having difficulties.

    In Linux I created a MYSQL database successfully called;

    CREATE DATABASE zabbix;

    CREATE USER 'zabbixdb'@'localhost' IDENTIFIED BY 'zabbix';

    GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX ON zabbix.* TO 'zabbixdb'@'localhost';

    httpd is running. mysqld is running. snmpd is running. I created a folder called zabbix in /var/www/html directory and uploaded all the zabix files and folders. I did all instructions on the zabbix documentation for installation but I get the following error after running this command;
    [root@localhost zabbix]# ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl # for MYSQL + Jabber + WEB monitoring


    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    configure: Configuring
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking whether gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking mtent.h usability... no
    checking mtent.h presence... no
    checking for mtent.h... no
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking sys/vfs.h usability... yes
    checking sys/vfs.h presence... yes
    checking for sys/vfs.h... yes
    checking sys/pstat.h usability... no
    checking sys/pstat.h presence... no
    checking for sys/pstat.h... no
    checking sys/sysinfo.h usability... yes
    checking sys/sysinfo.h presence... yes
    checking for sys/sysinfo.h... yes
    checking sys/statvfs.h usability... yes
    checking sys/statvfs.h presence... yes
    checking for sys/statvfs.h... yes
    checking for sys/socket.h... (cached) yes
    checking sys/loadavg.h usability... no
    checking sys/loadavg.h presence... no
    checking for sys/loadavg.h... no
    checking for arpa/inet.h... (cached) yes
    checking sys/vmmeter.h usability... no
    checking sys/vmmeter.h presence... no
    checking for sys/vmmeter.h... no
    checking for strings.h... (cached) yes
    checking vm/vm_param.h usability... no
    checking vm/vm_param.h presence... no
    checking for vm/vm_param.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking kstat.h usability... no
    checking kstat.h presence... no
    checking for kstat.h... no
    checking sys/syscall.h usability... yes
    checking sys/syscall.h presence... yes
    checking for sys/syscall.h... yes
    checking sys/sysmacros.h usability... yes
    checking sys/sysmacros.h presence... yes
    checking for sys/sysmacros.h... yes
    checking sys/procfs.h usability... yes
    checking sys/procfs.h presence... yes
    checking for sys/procfs.h... yes
    checking for stdint.h... (cached) yes
    checking mach/host_info.h usability... no
    checking mach/host_info.h presence... no
    checking for mach/host_info.h... no
    checking mach/mach_host.h usability... no
    checking mach/mach_host.h presence... no
    checking for mach/mach_host.h... no
    checking knlist.h usability... no
    checking knlist.h presence... no
    checking for knlist.h... no
    checking pwd.h usability... yes
    checking pwd.h presence... yes
    checking for pwd.h... yes
    checking sys/var.h usability... no
    checking sys/var.h presence... no
    checking for sys/var.h... no
    checking arpa/nameser.h usability... yes
    checking arpa/nameser.h presence... yes
    checking for arpa/nameser.h... yes
    checking assert.h usability... yes
    checking assert.h presence... yes
    checking for assert.h... yes
    checking sys/dkstat.h usability... no
    checking sys/dkstat.h presence... no
    checking for sys/dkstat.h... no
    checking sys/disk.h usability... no
    checking sys/disk.h presence... no
    checking for sys/disk.h... no
    checking nlist.h usability... no
    checking nlist.h presence... no
    checking for nlist.h... no
    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 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 execinfo.h usability... yes
    checking execinfo.h presence... yes
    checking for execinfo.h... yes
    checking libperfstat.h usability... no
    checking libperfstat.h presence... no
    checking for libperfstat.h... no
    checking sys/systemcfg.h usability... no
    checking sys/systemcfg.h presence... no
    checking for sys/systemcfg.h... no
    checking sys/times.h usability... yes
    checking sys/times.h presence... yes
    checking for sys/times.h... yes
    checking for resolv.h... yes
    checking for net/if.h... yes
    checking for net/if_mib.h... no
    checking for sys/mount.h... yes
    checking for sys/proc.h... no
    checking for sys/sysctl.h... yes
    checking for sys/user.h... yes
    checking for sys/swap.h... yes
    checking for sys/ucontext.h... yes
    checking for devstat.h... no
    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 perfstat_memory_total... no
    checking for library containing devstat_getdevs... no
    checking for library containing getdevs... no
    checking for library containing backtrace_symbols... none required
    checking for main in -lm... yes
    checking for main in -lkvm... no
    checking for DNS lookup functions... yes
    checking for an ANSI C-conforming const... yes
    checking for pid_t... yes
    checking for socklen_t... yes
    checking for actual socklen_t parameter type in socket functions... socklen_t
    checking for union semun... no
    checking for struct vmtotal in sys/vmmeter.h... no
    checking for struct uvmexp_sysctl in uvm/uvm_extern.h... no
    checking for struct uvmexp in uvm/uvm_extern.h... no
    checking for struct swaptable in sys/swap.h... no
    checking for struct sensordev in sys/sensors.h... no
    checking for struct statvfs64 in sys/statvfs.h... no
    checking for field ss_family in struct sockaddr_storage... yes
    checking for field mem_unit in struct sysinfo... yes
    checking for field freeswap in struct sysinfo... yes
    checking for field totalswap in struct sysinfo... yes
    checking for field totalram in struct sysinfo... yes
    checking for field sharedram in struct sysinfo... yes
    checking for field bufferram in struct sysinfo... yes
    checking for field freeram in struct sysinfo... yes
    checking for field uptime in struct sysinfo... yes
    checking for field procs in struct sysinfo... yes
    checking for function setpriority() in sys/resource.h... yes
    checking for function sysconf() in unistd.h... yes
    checking for function initgroups()... yes
    checking for functions seteuid() and setegid()... yes
    checking for function setproctitle()... no
    checking for function sysctlbyname()... no
    checking for function sysctl (KERN_BOOTTIME)... no
    checking for function sysctl (HW_NCPU)... 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 macro __va_copy() in stdarg.h... yes
    checking for macro __VA_ARGS__... yes
    checking return type of signal handlers... void
    checking for getloadavg... yes
    checking for hstrerror... yes
    checking for getenv... yes
    checking for putenv... yes
    checking for sigqueue... 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 long long format... no
    checking for -rdynamic linking option... yes
    checking for mysql_config... /usr/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library


    Thank you for your feedback.
  • Zaniwoop
    Senior Member
    • Jan 2010
    • 232

    #2
    you might want to install the mysql components

    Code:
    yum install mysql-devel php-mysql

    Comment

    • HullZabbix
      Senior Member
      • Feb 2011
      • 104

      #3
      On centos 5.4 in needed to install the follow dependencies for:

      ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl

      yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql-server libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel php-mysql php-gd php-bcmath php-mbstring php-xml

      Comment

      • NicoZanferrari
        Junior Member
        • Jun 2011
        • 23

        #4
        See the Wiki at http://www.zabbix.com/wiki/howto/ins.../centosinstall for detailed instructions

        Comment

        • reward
          Junior Member
          • Sep 2011
          • 11

          #5
          Zabbix installation problem on Linux Centos 5.7

          Hello all,

          Thank you for your resposes and help. I did all step by step from this page http://www.zabbix.com/wiki/howto/ins.../centosinstall until here where I get command not found message;

          (checkinstall

          After make has compiled we won't be using make install, but checkinstall which gives us the option to first make a RPM out of the installation and than install it. This gives us the advantage to be able to deinstall Zabbix again with rpm. Because checkinstall also isn't on the CentOS Repo we will download it using wget to our home directory. )

          [root@localhost ~]# rpm -ivh checkinstall-1.6.0-3.el5.rf.i386.rpm
          warning: checkinstall-1.6.0-3.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
          Preparing... ########################################### [100%]
          package checkinstall-1.6.0-3.el5.rf.i386 is already installed
          [root@localhost ~]# cd zabbix-1.8.1
          [root@localhost zabbix-1.8.1]# checkinstall --nodoc --install=yes -y
          bash: checkinstall: command not found
          [root@localhost zabbix-1.8.1]#
          Last edited by reward; 03-10-2011, 04:27.

          Comment

          • NicoZanferrari
            Junior Member
            • Jun 2011
            • 23

            #6
            The checkinstall procedure is only optional, the package itself is 5 years old and not supported by CentOS nor RH... I suggest you to manual install Zabbix with the usual "make install" instead than trying to make it works.

            Or upgrade to CentOS 6 and use the EPEL rpms

            Comment

            • reward
              Junior Member
              • Sep 2011
              • 11

              #7
              Zabbix installation problem on Linux Centos 5.7

              Thank you for your responses. I don't know why this gets so complicated and I am very frustrated. Can any one tell me step by step to successfully install zabbix on a Centos 5.7 32bit? I have tried so many variations from zabbix manual with no success. I even tried with some automated script from here http://www.zabbix.com/forum/showthre...install+zabbix and was not able to install zabbix. Could you please let me know how to install this application. Thank you again.

              Comment

              • NicoZanferrari
                Junior Member
                • Jun 2011
                • 23

                #8
                Well, don't surrender - it's not so difficult!
                Just follow the link I've wrote before (but do a "make install" instead than checkinstall which could fail easily). I'm using that procedure since CentOS 5.4 to 6.0.

                Enjoy

                Comment

                • Zaniwoop
                  Senior Member
                  • Jan 2010
                  • 232

                  #9
                  My crib notes from installing on Centos 5.6

                  Code:
                  yum install php php-bcmath php-gd php-mbstring php-xml php-ldap openssl-devel  mysql-devel php-mysql mysql-server  curl-devel net-snmp net-snmp-devel gcc iksemel  iksemel-devel fping  OpenIPMI OpenIPMI-devel OpenIPMI-tools
                  
                  ./configure  --enable-server --with-mysql --with-net-snmp --with-libcurl --with-jabber --with-openipmi 
                  
                  make install
                  This worked on 5.6 to 6.0

                  Comment

                  • NicoZanferrari
                    Junior Member
                    • Jun 2011
                    • 23

                    #10
                    Hi, I think you should read instructions more careful. The installation process could be done in three ways:

                    1. use the EPEL rpm on CentOS 6. And then edit the config files.
                    2. do a manual compilation, run a 'make install' and then edit the config files.
                    3. do a manual compilation, run a 'checkinstall' in order to obtain the rpm, install the rpm and then edit the config files.

                    Do not mix these procedure! In the last post it seems that you've run a 'make install' and you complain that you've not obtained a rpm

                    nico

                    Comment

                    • reward
                      Junior Member
                      • Sep 2011
                      • 11

                      #11
                      Zabbix installation problem on Linux Centos 6.0

                      Hello all and thank you for all your support.

                      I finally managed to install zabbix successfully. I have few questions. 1- How can I access the zabbix from another computer using Firefox browser? When I put the IP address of the computer which has Zabbix installed, in this case 192.168.0.100 I get connection time out error. (The connection has timed out. The server at 192.168.0.100 is taking too long to respond.) 2- When I access the zabbix frontend server from the linux server that I have actually installed zabbix by using Firefox, it prompts me for user login and password. At the bottom right hand corner of the browser, it says connected as 'guest'. When I put the user login and password I get error message saying user name or password is incorrect. I used the database name and password for the database to login. Would thid be correct. But when I click hyperlinks such as Monitoring Inventory Report and their sub menu, I can access them without log in.

                      Thank you again

                      Comment

                      • HullZabbix
                        Senior Member
                        • Feb 2011
                        • 104

                        #12
                        Make sure your accessing the correct url.

                        It depends where you installed the front end files.

                        Have you tried: http://192.168.0.100/zabbix/


                        Our frontend files are located in /var/www/html/zabbix/php
                        So we browse to http://servername/zabbix/php

                        Comment

                        • Zaniwoop
                          Senior Member
                          • Jan 2010
                          • 232

                          #13
                          the defaults for logging into the GUI are
                          user: admin
                          password: zabbix

                          Is the firewall on the server perhaps not blocking you?

                          apache should at least give you a default screen if there isn't anything installed on the default folder.

                          Comment

                          • reward
                            Junior Member
                            • Sep 2011
                            • 11

                            #14
                            Zabbix installation problem on Linux Centos 6.0

                            Thank you. I can log in using with admin user and zabbix for password. The files are located in /var/www/html/zabbix. I am still not be able to access the server from another computer within the same lan. I have tried IP address 192.168.0.100 and 192.168.0.100/zabbix through Firefox browser but no success. SELinux is disabled also. I changed the localhost to IP address of the server in the zabbix.conf.php which is in the conf folder, $DB["SERVER"] = '192.168.0.100';. and that did not help. Infact I could not access the zabbix on the linux box where the zabbix installed either and I had to change it back to localhost again.

                            <?php
                            // Zabbix GUI configuration file
                            global $DB;

                            $DB["TYPE"] = 'MYSQL';
                            $DB["SERVER"] = 'localhost';
                            $DB["PORT"] = '0';
                            $DB["DATABASE"] = 'zabbix';
                            $DB["USER"] = 'zabbix';
                            $DB["PASSWORD"] = 'zabbix';
                            // SCHEMA is relevant only for IBM_DB2 database
                            $DB["SCHEMA"] = '';

                            $ZBX_SERVER = 'localhost';
                            $ZBX_SERVER_PORT = '10051';
                            $ZBX_SERVER_NAME = '';

                            $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;


                            Could you tell me what am I missing here?

                            Comment

                            • Zaniwoop
                              Senior Member
                              • Jan 2010
                              • 232

                              #15
                              Is your web sever running...?

                              try service httpd start

                              Comment

                              Working...