Ad Widget

Collapse

1.1beta10 - Strange Problem with Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rob9988
    Junior Member
    • May 2006
    • 10

    #1

    1.1beta10 - Strange Problem with Graphs

    Here's an odd one for you...

    I just upgraded my 1.1beta9 server to 1.1beta10. It went very smoothly, which is great. However, one of the problems that we have been experiencing has only been partially fixed.

    The original problem: When using Firefox 1.5.0.3 to access the Zabbix frontend, most graphs show up as broken image icons.

    The problem with 1.1beta9: On two admin client PCs running Firefox, when selecting a graph period of less than one week, no graph image would be displayed. Variations: On one of the client PCs, graph periods greater than or equal to one week worked. On the other client PC, no graphs worked.

    The problem with 1.1beta10: The client PC that could see graph periods of a week or greater can now see all graphs covering any period. However, the client PC that could not view any graphs still displays broken image icons for all graphs. Interestingly, on the PC that can't view any graphs using Firefox, Internet Explorer can views graphs for all periods.

    Does anyone have any ideas about what is happening here? Obviously, it's not a major problem, as the other admin can view his graphs in IE, but we all prefer to use Firefox, so it would be nice to get this issue resolved.

    Thanks,

    =-Rob
    Last edited by rob9988; 24-05-2006, 18:28.
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    Originally posted by rob9988
    Here's an odd one for you...

    I just upgraded my 1.1beta9 server to 1.1beta10. It went very smoothly, which is great. However, one of the problems that we have been experiencing has only been partially fixed.

    The original problem: When using Firefox 1.5.0.3 to access the Zabbix frontend, most graphs show up as broken image icons.

    The problem with 1.1beta9: On two admin client PCs running Firefox, when selecting a graph period of less than one week, no graph image would be displayed. Variations: On one of the client PCs, graph periods greater than or equal to one week worked. On the other client PC, no graphs worked.

    The problem with 1.1beta10: The client PC that could see graph periods of a week or greater can now see all graphs covering any period. However, the client PC that could not view any graphs still displays broken image icons for all graphs. Interestingly, on the PC that can't view any graphs using Firefox, Internet Explorer can views graphs for all periods.

    Does anyone have any ideas about what is happening here? Obviously, it's not a major problem, as the other admin can view his graphs in IE, but we all prefer to use Firefox, so it would be nice to get this issue resolved.

    Thanks,

    =-Rob

    I had the same issue on Friday after I upgraded to beta10, but when I came in today, after the zabbix machine had been restarted.. now when I go in there teh graphs are showing up in Firefox, I had not been able to troubleshoot it enough on Friday to see it loaded in internet Explorer for me. What changed.. I don't know..

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Interesting. We do development and testing on a combination of different versions of Mozilla, Opera and Explorer and graphs work perfectly. I have really no idea what might be wrong.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • rob9988
        Junior Member
        • May 2006
        • 10

        #4
        Hmmm. Perhaps I shouldn't have said anything about this problem. Apparently, my Zabbix server heard that I was having problems with it, and has now childishly decided to not show me any graphs when using Firefox on any PC.

        IE works for all graphs of any period, on both PCs. So, this graph problem may be a Firefox issue, but Firefox has never given us any problems with any site in the past.



        As I have previously stated, this is not a high priority issue for us. I would be happy to assist with troubleshooting if you have any questions for me.

        Thanks,

        =-Rob

        Comment

        • Aaron
          Junior Member
          • May 2006
          • 16

          #5
          I have been having a similar problem. I am considering migrating from BB to ZABBIX and I did a clean install of 1.10 last week. I was having a weird problem in firefox where I could sometimes make graphs and sometimes not. For a while I could make 4h but not 8h. Then the 4h graphs started to break and 2h graphs worked. Now not even the 2h graphs work. The only changes I had made during that time had been through the web interface. I just recenlty fixed the empty graphs over a week problem and that did not seem to have an effect. right now, I can make a 1 week graph though. If I decrease by 24 hours I can get down to a 2 day graph. If I decrease it again (from 2 days to just 24 hours) the graphic is broken.

          The really really annoying part of this is that I was able to successfully make these graphs earlier.

          When about this I tested it with IE and had the same broken graph problems. I also ran the same test by decreasing from 1 week to 1 day and had the same results as firefox.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            For all having this problem, do the following:

            1. In file include/classes/graph.inc.php, comment and uncomment these lines, it has to be as shown:

            Header( "Content-type: text/html");
            // Header( "Content-type: image/png");


            2. Then click on image location to see exact reason of the problem among garbage of PNG data.

            3. Report it here.

            Thanks.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • Aaron
              Junior Member
              • May 2006
              • 16

              #7
              This is what I got when I "viewed" the broken image:

              ‰PNG  <some weird un-pastable chars>
              Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3669 bytes) in /www/zabbix/include/config.inc.php on line 2412

              When I checked out that line in the config.inc.php it is the ImagePNG line below:

              function ImageOut($image)
              {
              // ImageJPEG($image);
              ImagePNG($image);
              }

              Since I never mentioned, zabbix is running on Suse 9.3. This was a fresh install on a test server for the sole purpose of evaluating zabbix so the configuration is very plain.

              Comment

              • rob9988
                Junior Member
                • May 2006
                • 10

                #8
                I made the changes that you specified. I was not able to click on the image link in Firefox, so I right-clicked on it and chose, "view image". Here's the result:

                Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4029 bytes) in /home/zabbix/public_html/include/config.inc.php on line 2412

                =-Rob

                Comment

                • rob9988
                  Junior Member
                  • May 2006
                  • 10

                  #9
                  Very interesting. My Zabbix test server is also running on SuSE 9.3 (SLES 9 SP3 to be exact). My error message (see my post, below) is very similar to yours, too.

                  Comment

                  • Aaron
                    Junior Member
                    • May 2006
                    • 16

                    #10
                    Could this be a PHP limit? I can't recall where the setting is but I know PHP has some maximum sizes configured for file transfers. We may be bumping against that.

                    I'm curious if my weird decreasing time frame problem may have been caused by my increasing amount of data. I created a new host that only has about 1 hour of data right now and I can make any graph I want from it. The host that I have been collecting data from for 5 days, I can make only 25 hour and higher graphs. I'm thinking that the graphs over 24 hours may be using only a sample of data points and maybe that is why I can still make those graphs.

                    I haven't gotten it figured out, but in some very strange way it is starting to make sense to me.

                    Comment

                    • erisan500
                      Senior Member
                      Zabbix Certified Specialist
                      • Aug 2005
                      • 285

                      #11
                      that limit is set in php.ini if i'm not mistaken.

                      PHP Code:
                       memory_limit 8M 
                      EriSan
                      Zabbix Certified Specialist

                      Comment

                      • Aaron
                        Junior Member
                        • May 2006
                        • 16

                        #12
                        I increased memory_limit and post_max_size both to 32M and that fixed my problem.

                        Comment

                        • rob9988
                          Junior Member
                          • May 2006
                          • 10

                          #13
                          After reading the posts by erisan500 and Aaron, I bumped memory_limit and post_max_size in php.ini to 32M, restarted Zabbix and Apache, and my graphing problem went away. Sweet!

                          Thanks for the help.

                          Comment

                          Working...