Ad Widget

Collapse

Zabbix frontend error after upgrading to 2.0.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stammer
    Junior Member
    • Dec 2012
    • 18

    #1

    Zabbix frontend error after upgrading to 2.0.4

    Hello everyone

    After I upgrade to version 2.0.4 zabbix, I get an error message when I try to connect to the database (Oracle).
    The message is: Fatal error: Call to undefined function zbx_dbstr () in / etc / httpd / htdocs / zabbix / include / db.inc.php on line 126

    I also upgraded the apache and php. Apache upgraded to version 2.4.3 and php to version 5.4.10.

    When installing the zabbix identifies all requirements to be OK.

    Does anyone know the solution to this problem?
  • blazergst
    Junior Member
    • Nov 2007
    • 10

    #2
    Knowing nothing about Oracle DB....

    Sounds like it's not connecting to the database. I would run through the setup again and copy the output file zabbix.conf.php it creates into your frontend folder.

    Also ensure you loaded the included database files into your Oracle database. You can find them in the unpacked tar location zabbix-2.0.4/database/oracle/
    (this is skipped in the instructions found here: https://www.zabbix.com/documentation...lation/install )

    Comment

    • stammer
      Junior Member
      • Dec 2012
      • 18

      #3
      Great!

      I already resolved the problem...
      Thanks for your help!

      Comment

      • hand3z
        Junior Member
        • Jan 2013
        • 3

        #4
        I'm having a similar issue for a first time installation of 2.0.4. All the requirements on the setup page pass with OK. When I test my Oracle database connection I get the same error:

        Fatal error: Call to undefined function zbx_dbstr() in /deploy/monitor/zabbix-2.0.4/frontends/php/include/db.inc.php on line 126

        Can you tell me what you did to resolve this?

        Comment

        • ma.castaneda
          Junior Member
          • Feb 2013
          • 1

          #5
          The problem is in the select that zabbix does in the test connection to Oracle DB, if you go to line 126 on db.inc.php and change the select for this select it works ok.

          Original: DBexecute('ALTER SESSION SET NLS_NUMERIC_CHARACTERS='.zbx_dbstr('. '));

          Replace by: DBexecute('ALTER SESSION SET NLS_NUMERIC_CHARACTERS=",."');

          Regards,
          Miguel.

          Comment

          Working...