Ad Widget

Collapse

Graphing bug in 1.1a3?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obstler
    Member
    • Oct 2004
    • 30

    #1

    Graphing bug in 1.1a3?

    update:

    Even worse graphing bug, in addition to the one below:

    The graphs don't display anything when showing 1 hour (default). So any graph that I select (either a user graph, or even the graph links from the latest values) show an empty graph without any lines. As soon as I select 2 hours or more, the graph works fine again, but the default 1 hour graphs just remain empty.


    Seems like there's a bug when moving graphs in 1.1a3. I go to graphs, select a graph and it displays the last hour. Now when I click on the "Move -1h" link, it should display 1 hour from 2 hours in the past, but what it actually does, is move 150 days! Even the title in the graph displays:

    1h history 150d in the past

    Clicking on -24h actually moves one 3600 days or 10 years into the past, so it's not just the move 1h, but any moves seem to get multiplied by a lot.

    regards, tom.
    Last edited by obstler; 16-12-2004, 12:21.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Sorry for the problem.

    Please, comment this line in classes.inc.php:

    #if($this->clock[$item][$i]-$this->clock[$item][$j]<8*($this->to_time-$this->from_time)/900)

    The logic is obviously not correct here, however I'm not sure how to fix it yet.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • obstler
      Member
      • Oct 2004
      • 30

      #3
      thanks,

      commenting that line fixes the "no data displayed for 1 hour graphs".

      However it does (of course) not affect the bug involving moving the display, where an offset of 1 hour actually creates an offset of 150 days.

      regards, tom.

      Comment

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

        #4
        Originally posted by obstler
        However it does (of course) not affect the bug involving moving the display, where an offset of 1 hour actually creates an offset of 150 days.
        In file charts.php:

        Uncomment two occurencies of:

        // $a already defined
        $a=array("1h"=>1,"2h"=>2,"4h"=>4,"8h"=>8,"12h"=>12 ,
        "24h"=>24,"week"=>7*24,"month"=>31*24,"year"=>365* 24);
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • obstler
          Member
          • Oct 2004
          • 30

          #5
          yup, that fixed it again. thanks.

          Comment

          • charles
            Member
            • Sep 2004
            • 54

            #6
            I just upgraded from 1.0 to 1.1alpha10 and have the same "no data displayed for 1 hour graphs" problem. I checked classes.inc.php but that line doesn't exist and what looks like something similar is commented out already. I have verified the raw data is there by displaying the text values.

            I am seeing another graphing problem in addition to this one. On another graph I am getting a very broken looking graph - like it only has about 30% of the data to graph and isnt extrapolating. Looks like someone shot it! It the same for the hourly graph in this case, as well as predefined graphs.

            Any ideas?

            thanks
            charles
            Last edited by charles; 08-07-2005, 23:49.

            Comment

            • charles
              Member
              • Sep 2004
              • 54

              #7
              Just wanted to mention that I have setup a test server with a clean 1.1alpha10 install and it displays the data on the 1 hour graphs.

              hth
              charles

              Comment

              Working...