Ad Widget

Collapse

Frontend Php doesn't show Oracle DB Type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcelotada
    Member
    • Dec 2011
    • 31

    #1

    Frontend Php doesn't show Oracle DB Type

    Hello all,

    We are installing a fresh install of zabbix 1.8.10 with oracle support.

    By the manual, we copy all files of "frontend/php" dir to apache dir.

    In the frontend instalation, step 4, "configure db connection", the "type" doesn't show anything beyond mysql.

    So, why this happening? Why do I supposed to do to frontend show oracle type?

    Any comment or suggest will be very very appreciated.

    Best regards.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    you need oracle support in php (oci one, probably), as listed in http://www.zabbix.com/documentation/...e_requirements
    Zabbix 3.0 Network Monitoring book

    Comment

    • marcelotada
      Member
      • Dec 2011
      • 31

      #3
      Ok but OCI was not already installed when I compiled zabbix (configure)?

      How to install this part in php? There aren't any note on manual.

      Thanks.

      Comment

      • marcelotada
        Member
        • Dec 2011
        • 31

        #4
        Hello folks,

        I understand that installation of php with oci8 support is not of zabbix concern.

        But it would be very appreciated if I got any ideias, comments, suggests, or everything that could help me solve that problem.

        We have php 5.1.6 installed with RH5 EL 64bits and no OCI support. So we need an update of php with that support. My options are around a yum update or a new compilation of php. We choose the compilation because we have to pass it some arguments to add OCI suport. So I did compile a fresh install of 5.3.10 but even uninstalling the old one this fresh install looks like doesn't work properly with old and default apache installation.

        Now, the problem is that the new instalation doesn't created the libphp5.so file to adding to apache configuration. I had hearded that the php-devel is about this creation but I'm not sure of this.

        Somebody had already to do this update? Any ideia?

        Thanks!

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          after compiling php, the module file should be in the ".libs" directory inside the php source tree
          Zabbix 3.0 Network Monitoring book

          Comment

          • marcelotada
            Member
            • Dec 2011
            • 31

            #6
            There are not .lib dir in php source dir pal... actually, this file doesn't exists in any place of the S.O.

            The question is, this ".so" isnt't supposed to be created by compilation source or it should become with -devel package?

            Thanks!

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              Originally posted by marcelotada
              There are not .lib dir in php source dir pal... actually, this file doesn't exists in any place of the S.O.
              could you please provide exact steps used to compile php from source ?
              Zabbix 3.0 Network Monitoring book

              Comment

              • marcelotada
                Member
                • Dec 2011
                • 31

                #8
                Originally posted by richlv
                could you please provide exact steps used to compile php from source ?
                With package 5.3.10 downloaded from php.net I ran the .configure (below), make and make install. Before that i run an uninstall of previous installed php (5.1.6) When I did that, the phplib5.so was gone from $APACHE_DIR/modules/

                Following the configure used:

                Code:
                ./configure --with-libdir=lib64 --with-gd --with-mysql --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib --enable-fastcgi --enable-force-cgi-redirect
                Last edited by marcelotada; 29-03-2012, 20:38.

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  so after a successful compile, what does
                  Code:
                  ls .libs
                  return ?
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • marcelotada
                    Member
                    • Dec 2011
                    • 31

                    #10
                    Originally posted by richlv
                    so after a successful compile, what does
                    Code:
                    ls .libs
                    return ?
                    Nothing. Like I said, there is no ".libs" dir and the libphp5.so was not created anywhere once "find / -name libphp5.so" doesn't return anything too.

                    Comment

                    • richlv
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Oct 2005
                      • 3112

                      #11
                      i'd probably check whether compilation _actually_ is successful... if yes, that's more for the php support channels then
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • marcelotada
                        Member
                        • Dec 2011
                        • 31

                        #12
                        Originally posted by richlv
                        i'd probably check whether compilation _actually_ is successful... if yes, that's more for the php support channels then
                        Yes, I completly understand. I was just hoping some kind of tip like "you can download this, this and this package at this site" (apache, php, etc with right versions), "compile with these args", "configure with these parameters", etc..

                        Thanks

                        Comment

                        • Mauricio
                          Junior Member
                          • Dec 2011
                          • 3

                          #13
                          Oracle DB Type

                          Hi.
                          I have the same problem when I use the zabbix frontend and doesn´t show the oracle support (only mysql). I installed the oracle clients before try to compiling zabbix with the parameter bellow:

                          ./configure --enable-server --with-oracle-include=/usr/include/oracle/11.2/client64 --with-oracle-lib=/usr/lib/oracle/11.2/client64/lib --with-net-snmp --with-libcurl --enable-agent


                          Did you find any solution for this problem?
                          Sorry to my english!

                          Comment

                          Working...