Ad Widget

Collapse

IT Services blank screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmsousa
    Junior Member
    • Jan 2012
    • 23

    #1

    IT Services blank screen

    Hi,

    Recently I've upgraded my production server running Zabbix 1.8.13 to 2.0.0. All my previous tests passed with no problem, so we made the upgrade.

    After the upgrade the "IT Services" both on "Configuration" and on "Monitoring" displays a blank screen (see attachment print screen).

    I've searched the Forum and Bug Tracker in order to find the problem and a possible solution. Raised my log level to debug to see if the were any messages that could lead me to the problem and found one error message:

    Code:
    PHP Fatal error:  Call to undefined method CRow::setClass() in /zabbix/www/include/classes/class.ctree.php on line 69,
    After searching for this message, I found on the bugzilla a suggestion to upgrade to 2.0.1rc1, which I did. Problem not solved!!!

    I've upgraded PHP 5 to the latest stable build, reviewed config files for Zabbix Server and Agent, checked database tables, etc.

    I really need the "IT Services" working, because that is our main objective with Zabbix - SLA measurement.

    Any ideas?!?!
    Attached Files
  • pmsousa
    Junior Member
    • Jan 2012
    • 23

    #2
    The problem is in "include/classes/class.ctree.php"

    Hi again,

    As I've said on my previous message my "IT Services" scree is blank and the only error message seen was on Apache error log.

    The error message refers to an undefined method (setClass()) of class CRow in a call on line 69 of class.ctree.php file. I've edited this file to look at the code...

    After that, I've edited the file class.crow.php, were the Class CRow is defined. From that class definition I've seen that the class CRow extends Class CTag and has no method setClass(). I've done the same for the files were Class CTag and also Class CObject are defined an no setClass() method!!!

    My next search was to see in SVN repository for the previous versions of class.ctree.php file and match the diferences on the lines that add errors.
    Changed the code a little bit, based on the previous version and after 3 minor changes, I have this... (see attachment).

    There are still some errors but the bug is somewhere around were. Now I have an error message on the page:

    Undefined index: serviceid [include/classes/class.ctree.php:108]

    Just have to figure this one out!!!
    Attached Files

    Comment

    • pmsousa
      Junior Member
      • Jan 2012
      • 23

      #3
      Solved

      Hi,

      From SVN I've checked the file structure and files on the include folder and found some discrepancies... My Zabbix installation started at 1.8.10 on this server and has been upgraded from that version to the current 2.0.1rc2. From those upgrades, the copy of the frontend files left some garbage and those older files were messing my server.

      Today I cleaned the entire frontend, copied the php files again and redone the config process.

      Result: Problem Solved!!!

      Comment

      Working...