Ad Widget

Collapse

Cannot create graphs or maps in 1.1beta6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roger69
    Junior Member
    • Feb 2006
    • 8

    #1

    Cannot create graphs or maps in 1.1beta6

    When I attempt to create a graph or map, it appears to be successful, however when I try to view the graph or map, I just get the icon in my browser indicating that the image is missing.

    Other aspects of 1.1beta6 are working. I have some simple checks of hosts set up and they are returning data.

    I get the feeling this is a permissions issue? But I'm not sure where.

    Any help appreciated.
  • roger69
    Junior Member
    • Feb 2006
    • 8

    #2
    Same for 1.1beta7

    I did a complete new install of 1.1beta7 on a different Fedora Core 4 box, and have the exact same problem. Monitoring of hosts works great, but when creating graphs or maps, nothing is ever displayed.

    Comment

    • cameronsto
      Senior Member
      • Oct 2005
      • 148

      #3
      Sounds like you might not have the php-gd package installed. Check your apache error logs to see if there are errors related to graph creation.

      -cameron

      Comment

      • roger69
        Junior Member
        • Feb 2006
        • 8

        #4
        Bing!

        You are correct sir! Apache error_log had:

        [client x.x.x.x] PHP Fatal error: Call to undefined function imagecreate() in /var/www/html/zabbix/include/classes/graph.inc.php on line 634, referer: http://test/zabbix/charts.php?groupi...0027&graphid=1
        [client x.x.x.x] PHP Fatal error: Call to undefined function ImageCreateFromString() in /var/www/html/zabbix/include/maps.inc.php on line 184, referer: http://test/zabbix/charts.php?groupi...0027&graphid=1

        rpm -qa | grep php did not show php-gd as installed.
        yum install php-gd, apachectl restart, and I have graphs.

        Thanks!

        Comment

        • rickardp
          Junior Member
          • Dec 2004
          • 27

          #5
          Graphs

          No,it's not just an issue of the GD lib, the graphs are created in the database but doesn't show up in any graph editing functions.

          I try to add graphs to my template, zabbix frontend does say it has added a graph, and true enough they get into the database but they don't show up anywhere in the PHP gui.

          I have tried the SQL from the graphs.php and it just doesn't return *ANYTHING*

          The graphs table really DOES contain 3 graphs
          Code:
          graphid,name,width,height,yaxistype,yaxismin,yaxismax,templateid
          1,Feed Bandwidth,900,200,0,0,100,10011
          2,Feed Usage,900,200,1,0,100,10011
          3,Prodsat Queues,900,200,0,0,100,10011
          Last edited by rickardp; 01-03-2006, 11:03.

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            the presence of entries in mysql just tells the frontend that user defined graphs *exist* for any particular object and what they are.

            GD is necessary for php to draw and display them.

            Comment

            • rickardp
              Junior Member
              • Dec 2004
              • 27

              #7
              Since I have php-gd module installed I don't think that the problem is *THAT* simple, besides in all the other versions of zabbix from 1.0alpha version (yes I have been using them for a long time) just adding a graph can easily be done without GD, it's the adding of items to the graph that needs GD.

              The frontend is just not showing the graphs in "configuration -> graphs" or "configuration -> Hosts -> templates -> graphs" that I know is present in the database.

              Originally posted by elkor
              the presence of entries in mysql just tells the frontend that user defined graphs *exist* for any particular object and what they are.

              GD is necessary for php to draw and display them.
              Last edited by rickardp; 01-03-2006, 16:30.

              Comment

              • YuriV
                Junior Member
                • Feb 2006
                • 16

                #8
                Depending on your distro you may need to add the extension to your php.ini for your respective php installation (3, 4 or 5). Debian/kubuntu/ubuntu do this automatically but others may not.

                Comment

                • rickardp
                  Junior Member
                  • Dec 2004
                  • 27

                  #9
                  I guess that GD is installed and running when the command var_dump(gd_info()); return the following info right?

                  So where are my maps? I have GD installed/enabled. There is a problem here, did the GD stuff really solve your problems or have you not installed 1.1beta7 and tried?

                  Sorry to be grumpy but zabbix 1.1beta7 is part of a company evaluation for a single monitoring platform and it doesn't look good right now for zabbix since 1.1beta2 lacks a bit in the requirements although there are a lot of adaptions made for the zabbix system running in production right now. But I really need to get the new version going.

                  array(11) { ["GD Version"]=> string(27) "bundled (2.0.28 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }
                  HTML Code:
                  <h2><a name="module_gd">gd</a></h2>
                  <table border="0" cellpadding="3" width="600">
                  <tr><td class="e">GD Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">GD Version </td><td class="v">bundled (2.0.28 compatible) </td></tr>
                  <tr><td class="e">FreeType Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">FreeType Linkage </td><td class="v">with freetype </td></tr>
                  <tr><td class="e">GIF Read Support </td><td class="v">enabled </td></tr>
                  
                  <tr><td class="e">GIF Create Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">JPG Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">PNG Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">WBMP Support </td><td class="v">enabled </td></tr>
                  <tr><td class="e">XBM Support </td><td class="v">enabled </td></tr>
                  </table><br />

                  Comment

                  • rickardp
                    Junior Member
                    • Dec 2004
                    • 27

                    #10
                    Tested GD

                    Tried out GD by assembling a small php script, and it works well.

                    PHP Code:
                    <?php
                    header
                    ("Content-type: image/png");
                    $im = @imagecreate(20050)
                       or die(
                    "Cannot Initialize new GD image stream");
                    $background_color imagecolorallocate($im255255255);
                    $text_color imagecolorallocate($im2331491);
                    imagestring($im18020,  "GD works!"$text_color);

                    $col1=ImageColorAllocate($im,200,200,200);
                    $col2=ImageColorAllocate($im,0,0,255);
                    ImageRectangle($im,1,1,199,49,$col2);

                    imagepng($im);
                    imagedestroy($im);
                    ?>

                    Comment

                    • jono
                      Junior Member
                      • Mar 2006
                      • 4

                      #11
                      Graphing

                      Hi rickardp,

                      I think you're right; theres a problem with the graphing. Only graphs showing
                      a week or longer show up, all the others produce broken images. Do you have
                      the same problem?

                      jono

                      Comment

                      • rickardp
                        Junior Member
                        • Dec 2004
                        • 27

                        #12
                        Since I have installed all from scratch I cannot even see the graphs that zabbix said I have created (and I can see in the database) in the php frontend, i have tried to cut out the SQL in the graphs.php file and run it, it doesn't return any graphs. I haven't got time to spend on this right now since I'll be away all next week.

                        Best regards, Rickard

                        Comment

                        • bambin0
                          Junior Member
                          • Apr 2006
                          • 8

                          #13
                          rickardp is right

                          I see the exact same behaviour as rickardp is describing.
                          Go to configurations, graphs, create graph, give it a name and hit save.
                          You get a message saying:
                          Graph 'name' added
                          and right underneath it, it says -- No graphs defined.
                          It's not GD's fault since I can see 'simple graphs' w/o problems, just not custom ones.

                          The graphs column has the entry for the graph in mysql
                          mysql> select * from graphs;
                          +---------+------+-------+--------+-----------+----------+----------+------------+
                          | graphid | name | width | height | yaxistype | yaxismin | yaxismax | templateid |
                          +---------+------+-------+--------+-----------+----------+----------+------------+
                          | 5 | name | 900 | 200 | 0 | 0.0000 | 100.0000 | 0 |
                          +---------+------+-------+--------+-----------+----------+----------+------------+
                          1 row in set (0.00 sec)


                          Any help is appreciated. This may have something to do w/ the earlier no elastic in field list error I mentioned???
                          Cheers.

                          Comment

                          • rickardp
                            Junior Member
                            • Dec 2004
                            • 27

                            #14
                            I have upgraded to 1.1beta8 and it seems to work in that version.

                            Comment

                            • luxpops
                              Junior Member
                              • Apr 2006
                              • 3

                              #15
                              Hi I have tried 1.1 beta 8 and 9 and in both I can't have graphs working,

                              I can create maps and screen but no graphs

                              help me to fix that please, I need Zabbix 100% for my final project ASAP

                              Comment

                              Working...