Ad Widget

Collapse

Graphs won't display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfortier
    Junior Member
    • Apr 2007
    • 4

    #16
    For CentOS users

    yum install php-gd
    service httpd restart

    Worked perfectly for me, solved icons and graphs problems !



    from Jim O’Halloran’s Weblog

    Comment

    • redhate
      Junior Member
      • Mar 2007
      • 1

      #17
      # imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'PNG' format[/usr/local/apache/htdocs/zabbix/include/maps.inc.php:324]
      # imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data[/usr/local/apache/htdocs/zabbix/include/maps.inc.php:324]
      # imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'PNG' format[/usr/local/apache/htdocs/zabbix/include/maps.inc.php:324]

      only create maps

      <?php phpinfo(); ?>

      gd
      GD Support enabled
      GD Version 2.0 or higher
      GIF Read Support enabled
      GIF Create Support enabled
      JPG Support enabled
      PNG Support enabled
      WBMP Support enabled

      OS: Slackware 11.0
      PHP 5.2.1
      Apache 1.3.39

      anyone?

      Comment

      • pdg
        Junior Member
        • Sep 2007
        • 2

        #18
        It is normally an installation problem...

        I had the same kind of error and I fixed it like the following... On the initial WEB ZABBIX setup.. after accepting license and providing DB user/pwd... the setup PHP program updates the configuration file and 'tries' to save it in /usr/share/zabbix/conf... if for any reason it doesn't work, the installation seams to be set with bad information.

        After resinstalling the php-gd and zabbix-web packages, I insured to delete the /usr/share/zabbix/conf/zabbix-conf-php file and re-execute the WEB installation (Locally on the zabbix server machine as it need to save the conf file!). the file was properly saved and graph display worked after. One of these steps fixed the problem, quite sure it is the conf file as I initially had problems with the original setup.
        Edit/Delete Message
        Last edited by pdg; 22-09-2007, 21:42.

        Comment

        • kii
          Junior Member
          • Oct 2009
          • 14

          #19
          imagecreatefromstring(): Passed data is not in 'PNG' format
          I have the problem
          imagecreatefromstring(): Passed data is not in 'PNG' format
          ,i just figure out it.
          i find the problem in apache erro_log,
          libpng warning: Application built with libpng-1.2.7 but running with 1.5.1
          gd-png error: cannot allocate libpng main struct
          i build libpng by myself, but the system also have install libpng
          GD Support enabled
          GD Version 2.0
          GIF Read Support enabled
          GIF Create Support enabled
          JPEG Support enabled
          libJPEG Version 6b
          PNG Support enabled
          libPNG Version 1.5.1
          WBMP Support enabled
          i remove the libpng progrom which install by rpm package.
          then i rebuild the gd Source Code,when rebuilding ,i have this problem
          make[2]: *** [gd_png.lo] Error 1
          make[2]: Leaving directory `/tmp/gd-2.0.26gif'
          make[1]: *** [all-recursive] Error 1
          make[1]: Leaving directory `/tmp/gd-2.0.26gif'
          make: *** [all] Error 2
          [root@RHEL3 gd-2.0.26gif]#
          vi gd_png.c
          find png.h ,change the include path "/usr/local/png/include/png.h"
          and this problem was fixed.
          then i review the gragh , i could see it
          Last edited by kii; 07-03-2011, 08:10.

          Comment

          Working...