Ad Widget

Collapse

bcmath check failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrmurdock
    Member
    • Aug 2009
    • 85

    #1

    bcmath check failed

    I have the new Zabbix 1.6.5 stuff im working on.
    Now that I can at least get to the openening web page of the Zabbix server to start the checks, it fails on the "PHP with BC math support".

    I have recompiled my php with the bcmath enabled as shown below.

    php:>./configure --enable-bcmath --with-mysql
    php:> (configures with no issue)
    php:>make
    php:>(makes with no issues)
    php:>make install
    php:>(installs with no issues)

    at end it says add /usr/local/lib to the Path statement in your php.ini file.
    the only PATH statement for php.ini is the following.
    safe_mode_protected_env_vars = LD_LIBRARY_PATH

    Do I put the /usr/local/lib in my zabbix server user enviroment or in roots, or where? Or is it another issue all together?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    any reason why you are compiling php from sources ? that's something you should do if you have a specific need and/or really know what you are doing.
    most distributions offer php packages, which would be a much easier approach.
    Zabbix 3.0 Network Monitoring book

    Comment

    • mrmurdock
      Member
      • Aug 2009
      • 85

      #3
      Well you are correct, however, when I was using the default PHP packages with RH enterprise 5 server, it gave the bcmath check failed message during the setup.php interface.
      Not sure why I had to go through the browser to setup the server, but that is what comes up when i http to the physical zabbix server box.
      If you know how the setup.php is checking for the bcmath support, i could run it on the command line to see what its really checking for and maybe re-set a path or something. Thanks.

      Comment

      • Aly
        ZABBIX developer
        • May 2007
        • 1126

        #4
        FrontEnd checks if needed functions (bcmath) are available in PHP.
        Last edited by Aly; 09-09-2009, 08:49.
        Zabbix | ex GUI developer

        Comment

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

          #5
          Originally posted by mrmurdock
          ...
          Not sure why I had to go through the browser to setup the server, but that is what comes up when i http to the physical zabbix server box.
          you don't. that process is for setting up the frontend.

          as for bcmath support, look for a package like php5-bcmath or similar and install that. make sure apache is restarted after installing this package.
          Zabbix 3.0 Network Monitoring book

          Comment

          • mrmurdock
            Member
            • Aug 2009
            • 85

            #6
            Thank yoiu everyone for your support.
            Yesterday about 2pm MST, I figured out that there was a PHP-BCmath rpm that needed to be installed and not compiled into PHP on the command line. I have a write up on installation if anyone would be interested for Red Hat Linux 5 Enterprise Server.

            Comment

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

              #7
              you might want to look at http://www.zabbix.com/wiki/howto/ins.../centosinstall
              Zabbix 3.0 Network Monitoring book

              Comment

              Working...