Ad Widget

Collapse

Stability issue betwwen zabbix_server and RHEL 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #16
    Originally posted by nazmul81
    the output of "/usr/sbin/zabbix_server -V" is :

    [root@rhel7 ~]# /usr/sbin/zabbix_server -V
    /usr/sbin/zabbix_server: error while loading shared libraries: libiksemel.so.3: cannot open shared object file: No such file or directory


    sorry to bother you a lot.......but i m grateful that you people are responding me...
    If you installed zabbix rpm packages above message says that you ignored missing dependencies by adding --nodeps during packages installation.

    Just install iksemel package.
    Your issues have nothing to do with zabbix. More with you abilities to install software on Linux with all necessary dependencies.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • jusavard
      Member
      • Sep 2013
      • 48

      #17
      Hi,
      it seems indeed to be a depedency problem. I would suggest you to read this :



      I personally install zabbix with the zabbix repo. A simple "yum install" and all depedencies are installed.

      You can also install the required depedency (iksemel) however it might lead to other missing packages after.

      Comment

      • nazmul81
        Junior Member
        • Apr 2016
        • 8

        #18
        Hi jusavard,

        thnx for your advice.I will follow the link you have provided me. As per kloc suggestion I have install iksemel package which leaded other missing packages and I have also installed that packages and can start zabbix server successfully.

        the output is :

        [root@rhel7 ~]# systemctl start zabbix-server

        [root@rhel7 ~]# systemctl enable zabbix-server

        but my problem is not yet solved, sorry to say that I have no way to stop asking you...

        my new error is :


        404 Not Found

        Not Found

        The requested URL /zabbix was not found on this server

        thnx woj and kloczek

        Comment

        • jusavard
          Member
          • Sep 2013
          • 48

          #19
          Hi,
          it seems the zabbix php files are not in your apache DocumentRoot.

          You can create a symlink

          Code:
           
          cd /var/www/html
          ln -s /usr/share/zabbix
          ... or add a VirtualHost in your httpd.conf

          Code:
          <VirtualHost *:80>
                  DocumentRoot /usr/share/zabbix
                  ServerName zabbix
          </VirtualHost>
          I'm not sure if the sabbix php file for the 3.0 version are located in /usr/share/zabbix so you'll have to double check on that.

          Comment

          • nazmul81
            Junior Member
            • Apr 2016
            • 8

            #20
            hi,

            Sorry Jus I have searched a lot but could not get the location of zabbix php file as I am using zabbix 3.0.

            I have got 2 locations and not sure about the location:

            the locations are:

            [root@rhel7 ~]# cd /usr/lib/zabbix/
            [root@rhel7 zabbix]# ls
            alertscripts externalscripts
            [root@rhel7 zabbix]#


            [[root@rhel7 ~]# cd /usr/share/doc/zabbix-release-3.0/
            [root@rhel7 zabbix-release-3.0]# ls
            GPL


            I think your above solutions will work but could not find the location...did i miss any package for zabbix php file??...plz help...sorry for my continuous bothering...but I have to config zabbix for monitoring..thank you..

            Comment

            • jusavard
              Member
              • Sep 2013
              • 48

              #21
              Hi,
              Can you run this and show the result :

              Code:
              rpm -qa | grep zabb
              Also, how did you install Zabbix ? Did you install it via the offical repo, rpm or source ?

              Comment

              • nazmul81
                Junior Member
                • Apr 2016
                • 8

                #22
                Hi Jus,

                sorry for late reply as I was sick for last few days.

                the output is:

                [root@rhel7 ~]# rpm -qa | grep zabb
                zabbix-release-3.0-1.el7.noarch
                zabbix-server-mysql-3.0.1-1.el7.x86_64
                zabbix-web-mysql-3.0.1-1.el7.noarch
                [root@rhel7 ~]#

                I have installed Zabbix via rpm zabbix-release-3.0-1.el7.noarch.rpm as I don't have the internet facility at my rhel machine and I have configured the yum locally and created local repo database. I am able to install packages from there, but I think zabbix rpm was not there and I have put the rpm there install.Hope this info will help you.

                Comment

                • jusavard
                  Member
                  • Sep 2013
                  • 48

                  #23
                  Hi,
                  Sorry for the delay i've been busy. So.. it seems you have the minimal packages needed for zabbix. However if you simply install thoses packages via rpm there is chance that you have miss so dependancies and the "no internet" thing does not help.

                  According to yum, you should also install theses depedencies :

                  [root@web2 ~]# yum deplist zabbix-server-mysql.x86_64 | grep provider | grep x86_64 | sort -u
                  provider: bash.x86_64 4.2.46-19.el7
                  provider: fping.x86_64 3.10-4.el7
                  provider: glibc.x86_64 2.17-106.el7_2.4
                  provider: iksemel.x86_64 1.4-6.el7
                  provider: libcurl.x86_64 7.29.0-25.el7.centos
                  provider: libssh2.x86_64 1.4.3-10.el7_2.1
                  provider: libxml2.x86_64 2.9.1-6.el7_2.2
                  provider: mariadb-libs.x86_64 1:5.5.47-1.el7_2
                  provider: net-snmp-libs.x86_64 1:5.7.2-24.el7
                  provider: OpenIPMI-libs.x86_64 2.0.19-11.el7
                  provider: openldap.x86_64 2.4.40-9.el7_2
                  provider: openssl-libs.x86_64 1:1.0.1e-51.el7_2.4
                  provider: systemd.x86_64 219-19.el7_2.7
                  provider: unixODBC.x86_64 2.3.1-11.el7
                  provider: zabbix-server-mysql.x86_64 3.0.2-1.el7

                  [root@web2 ~]# yum deplist zabbix-web-mysql-3.0.1-1.el7.noarch | grep provider | grep x86_64 | sort -u
                  provider: php-mysqlnd.x86_64 5.4.16-36.el7_1
                  provider: php-mysql.x86_64 5.4.16-36.el7_1


                  I would personnaly uninstall the zabbix rpm packages then try to install "yum localinstall [ZabbixRPMshere].rpm" and cross my finger it will automtically install the needed depedencies 9and that every depedency is on your local repo).
                  If not all depedencies are on you local repo you'll have to get them manually from the zabbix repo or the internet...

                  Comment

                  • nazmul81
                    Junior Member
                    • Apr 2016
                    • 8

                    #24
                    Hi jus,

                    its my pleasure at least u are trying to help me. I am grateful to you for that.
                    I have tried to installed all the dependencies after download from net. some are working some are not.please instruct me how to uninstall zabbix rpms and how to install again. I didn't get your point "yum localinstall [ZabbixRPMshere].rpm" and what is ZabbixRPMshere?

                    Comment

                    • nedx
                      Junior Member
                      • Sep 2019
                      • 2

                      #25
                      i have got the same problem

                      Comment

                      Working...