Ad Widget

Collapse

Graphs won't display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgrundy
    Junior Member
    • Jan 2005
    • 10

    #1

    Graphs won't display

    I have installed Zabbix on a server running Fedora Core3 Linux. Everything is working fine except the graphs. When I try to view a graph or trend, using Firefox, I get a message that the graph ' cannot be displayed, because it contains errors.'

    Any ideas?
  • Rudolf
    Member
    • Dec 2004
    • 90

    #2
    Hi mgrundy,

    You need to install PHP-GD. It is php-gd-4.3.9-3 on my Fedora Core 3.

    Comment

    • lAni
      Junior Member
      • Jan 2005
      • 3

      #3
      Gd

      i had the "same" problem on my debian system. But my Browser just showed the error replacement pic instead of the graphs, without giving such an error message.

      Then I removed the php-gd package from my server and took the php-gd2 package (which includes the php-gd i assume)

      then graphs worked properly!

      hope this helps ...

      Comment

      • mgrundy
        Junior Member
        • Jan 2005
        • 10

        #4
        Thanks for the sugestions. I've tried both but still no joy.

        All I get is the "I can't display the picture" icon and if I right click on it and select 'View Image' it tells me it cannot be displayed because there is an error.
        Last edited by mgrundy; 10-01-2005, 13:46. Reason: typo

        Comment

        • mrjirey
          Junior Member
          • Feb 2005
          • 1

          #5
          Had the same problem

          I too had the same problem.... I was searching for the solution when I found your question, but figured out the problem just a few seconds after.

          Once you have got Zabbix up and running and installed the PHP-GD, you will need to restart Apache to have it initialize PHP-GD.

          Once that is done, login to Zabbix and you should be ready to go.
          Last edited by mrjirey; 20-02-2005, 18:57.

          Comment

          • smad
            Junior Member
            • Mar 2005
            • 27

            #6
            Howto know if php-gh installed properly

            Hi,

            I followed your advice and I have (in fact, I hope so ;-) installed php-gd.
            I use php 4.3.7 install via a tar file
            I tried to update php with the command:
            /configure --with-gd --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib-dir=/usr/local
            Restarted apache server. And the file libphp4.so modified in modules folder


            But the images are still not working ;-(
            Is there a tool to test if php-gd is installed properly?

            Thanks for your help.
            Smad

            Comment

            • welshpjw
              Member
              • Mar 2005
              • 50

              #7
              The php 4.3.7 you have from a tar file is older than the precompiled version from stock Fedora (4.3.9) and the updates (4.3.10). Under FC2, I've used the stock files with no problems related to php so far. I don't even have any specific php-gd package or install since the stock php comes with it (FC2 /usr/share/doc/php-4.3.10/gd_README).

              You may be working to hard to get something to work that would otherwise work without much effort...

              Comment

              • TheEdge
                Junior Member
                • Mar 2005
                • 5

                #8
                I ran into similair problems getting graphs to display under FC3. Here is what I did to resolve them. By default the current stable release of php for FC3 is 4.3.10 which you can get with apt-get install php4. However even though it has been compile with gd support when you do a phpinfo() you don't see anything about the GD module. You have to then install the GD module for PHP as follows: apt-get install php-gd. Then restart apache as apachectrl restart. Now if you look at the output of phpinfo() you will see information about the GD module and hey presto graphs work.

                Hope this is useful to someone else.

                Comment

                • dmusser
                  Junior Member
                  • Sep 2005
                  • 2

                  #9
                  Any test graphs?

                  I have the same problem, but on RH AS instead. Are there any test graphs, or pages that we can try to verify that gd is installed properly? I did re-start apache after intalling php-gd, but no luck.

                  I also tested that gd in php works with some tests I found on the net, so are there any test graphs we can try to rule out DB or other errors.

                  Comment

                  • chocho63
                    Member
                    • Jun 2005
                    • 53

                    #10
                    GD is installed ?

                    Try to see with phpinfo if GD is installed. If it's installed, it will display information like this :

                    gd
                    GD Support enabled
                    GD Version bundled (2.0.28 compatible)
                    GIF Read Support enabled
                    GIF Create Support enabled
                    PNG Support enabled
                    WBMP Support enabled
                    XBM Support enabled


                    Here is the source of phpinfo.php :

                    <?php
                    phpinfo();
                    ?>
                    Last edited by chocho63; 07-10-2005, 16:45.

                    Comment

                    • Lovespider
                      Member
                      • Sep 2004
                      • 99

                      #11
                      Be sure that in /etc/php4/apache/php.ini there is a line like this:

                      extension=gd.so

                      Comment

                      • clubbing80s
                        Senior Member
                        • Sep 2005
                        • 109

                        #12
                        Still graphs broken

                        My orignal post..

                        Hi.
                        I'm also having problems with graphis ... and maps..
                        I can create graphs in the configuration interface, and I can create screens, there are no images generated for the maps at all..
                        When I go to monitoring when I go to screens all the graphs are generated, when i click on a graph there resulting page has a missing image. When I select graphs under monitoring some work but most don't ...

                        I have gone through the suff on this thread and all my settings seem correct...
                        I would like to assist in debugging this ! please advise me which files do what, and an idea where to start ..

                        Many thanks
                        Gregory Machin

                        Comment

                        • stever
                          Member
                          • Jun 2006
                          • 36

                          #13
                          I just solved a graphs and maps problem on my server. Most were displaying, but some (when they had a large time period) graphs wouldn't work, and maps never worked. I looked in my apache error logs, and was getting the following:

                          [client 10.10.1.158] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2400 bytes) in /direct/_usr_local/zabbix/html/include/config.inc.php on line 2574, referer: http://rogue/maps.php

                          I changed this line in php.ini from 8 to 64, restarted apache, and all is well:
                          memory_limit = 64M

                          Comment

                          • MrRobbert
                            Member
                            • Nov 2006
                            • 50

                            #14
                            Hey, i had the same problem too...

                            but i solved it when i retsarted my apache2 server. Very strange but it worked now my graphes are generated directly...

                            Comment

                            • roiy
                              Junior Member
                              • Dec 2006
                              • 2

                              #15
                              still some things dont work with the graphs

                              hey there fellas,

                              i broke my head but still cant figure out how come i see only graphs by hours ...
                              i cannot see the weekly monthly or yearly graphs with the same error that the
                              image contains errors.

                              anybody facing the same thing with this ?

                              i have tried enlarging the memory up to 128M but still nothing changes on this graphs.

                              any info i can post here will b.

                              ciao,

                              TMWTP

                              Comment

                              Working...