Ad Widget

Collapse

Zabbix 2.2.2 graphs not showing up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shall
    Junior Member
    • Feb 2014
    • 7

    #1

    Zabbix 2.2.2 graphs not showing up

    Hi everyone,

    We had a Zabbix 2.0.6 installation that I upgraded to 2.2.2. The upgrade seemed to go well and the database upgraded, but now none of the graphs are rendering. I tried backing off to Zabbix 2.2.0 but no help. When I look at the console in Chrome it appears the Javascript thinks that it has some undefined variables:

    Code:
    body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode.
    body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode.
    Uncaught ReferenceError: timeControl is not defined charts.php?sid=7cf0453ce58c4aab&form_refresh=1&fullscreen=0&groupid=0&hostid=10084&graphid=528:29
    Uncaught TypeError: Cannot call method 'add' of undefined charts.php?sid=7cf0453ce58c4aab&form_refresh=1&fullscreen=0&groupid=0&hostid=10084&graphid=528:34
    event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
    Calling LP_setval from A onloadwff.js:78
    The lines of Javascript that seem to be throwing the errors are:
    Code:
    frontends/php/include/classes/screens/CScreenBase.php:                zbx_add_post_js('window.flickerfreeScreen.add('.zbx_jsvalue($jsData).');');
    frontends/php/include/classes/screens/CScreenBuilder.php:             zbx_add_post_js('timeControl.addObject("scrollbar", '.zbx_jsvalue($options['timeline']).', '.zbx_jsvalue($timeControlData).');');
    Any ideas?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    What version of PHP do you have in place? Zabbix 2.2 requires the minimum version of PHP to be 5.3.0

    Don't know if that will help or not. Other requirements are listed here under "Frontend" category

    Comment

    • shall
      Junior Member
      • Feb 2014
      • 7

      #3
      The Zabbix server is running on a SLES 11 SP2 host. When I performed the install the Zabbix webpage installer stopped me because the default PHP on the machine was < 5.3.0. I used the newer PHP 5.3.8 rpms provided by SUSE though, and the installer let me through:

      Code:
      hpczabbix01:~ # rpm -qa | grep php | sort
      apache2-mod_php53-5.3.8-0.19.6
      php53-5.3.8-0.19.6
      php53-bcmath-5.3.8-0.19.6
      php53-ctype-5.3.8-0.19.6
      php53-dom-5.3.8-0.19.6
      php53-gd-5.3.8-0.19.6
      php53-gettext-5.3.8-0.19.6
      php53-iconv-5.3.8-0.19.6
      php53-json-5.3.8-0.19.6
      php53-ldap-5.3.8-0.19.6
      php53-mbstring-5.3.8-0.19.6
      php53-mysql-5.3.8-0.19.6
      php53-openssl-5.3.8-0.19.6
      php53-pdo-5.3.8-0.19.6
      php53-sockets-5.3.8-0.43.1
      php53-tokenizer-5.3.8-0.19.6
      php53-xmlreader-5.3.8-0.19.6
      php53-xmlwriter-5.3.8-0.19.6

      Comment

      • shall
        Junior Member
        • Feb 2014
        • 7

        #4
        This is what the Zabbix installer screen said:

        Code:
        Current value	Required
        PHP version	5.3.8	5.3.0	OK
        PHP option memory_limit	128M	128M	OK
        PHP option post_max_size	16M	16M	OK
        PHP option upload_max_filesize	2M	2M	OK
        PHP option max_execution_time	300	300	OK
        PHP option max_input_time	300	300	OK
        PHP time zone	America/Chicago	 	OK
        PHP databases support	MySQL
         	OK
        PHP bcmath	on	 	OK
        PHP mbstring	on	 	OK
        PHP sockets	on	 	OK
        PHP gd	2.0.34	2.0	OK
        PHP gd PNG support	on	 	OK
        PHP gd JPEG support	on	 	OK
        PHP gd FreeType support	on	 	OK
        PHP libxml	2.7.6	2.6.15	OK
        PHP xmlwriter	on	 	OK
        PHP xmlreader	on	 	OK
        PHP ctype	on	 	OK
        PHP session	on	 	OK
        PHP session auto start	off	off	OK
        PHP gettext	on	 	OK

        Comment

        • gmanual
          Junior Member
          • Oct 2008
          • 10

          #5
          Maybe have a look at the folder permission, and check apache error/access logs which might give you more insight then the chrome console.

          I would try testing in Firefox, If Chrome is unable to load an image it hides it from the page, Firefox should show the image placement with the red X placeholder indicating the image couldn't be loaded, right click and copy the image url and try and load the graph directly. Check logs to see if you can track what is going on.

          Graph URL is normally something like this: http://<zabbix hostname>.com/chart2.php?graphid=2625 (change graphid to valid graph.)

          Comment

          • shall
            Junior Member
            • Feb 2014
            • 7

            #6
            Thanks for the ideas. I've already found a workaround for the issue in my other post that solves both of my issues: https://www.zabbix.com/forum/showthread.php?t=44353

            I ran chmod -R on the entire frontends/php tree so Apache had access to everything. The apache access/error logs didn't seem to tell me anything useful.

            I tried in Chrome, Firefox, Safari, and IE - none of them showed any sort of missing picture. I never did find any useful server or client side logs that led me much of anywhere.

            The only reason I thought to try a new OS was that I had a stable Zabbix on SLES 11 SP2 before the upgrade, and during the upgrade the only thing I upgraded other than Zabbix was the PHP, so I figured I'd better try something else that might work in a slightly different way.

            Comment

            • mikesjn
              Junior Member
              • Jan 2009
              • 11

              #7
              Update PHP

              Had this with SLES 11 SP2 installing 2.2.4 and it is definitely PHP related. I downloaded the PHP 6440 upgrade from Novell.





              Upgraded the PHP to 5.3.8-0.33.2 and everything started working correctly.
              Hope this helps someone
              Mike

              Comment

              Working...