Ad Widget

Collapse

Bug in history.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globlalways
    Junior Member
    • Jun 2006
    • 9

    #1

    Bug in history.php

    I request the following URL:
    /history.php?period=7200&dec=0&inc=0&left=0&right=0 &stime=yyyymmddhhmm&itemid=28393&action=showgraph& from=0

    The graph is not beeing displayed correctly, because the url for the image is not correct:
    /chart.php?itemid=28393&period=yyyymmddhhmm&from=0& width=1172

    As you can see the period parameter is not correct in the source. Is this a known bug?
  • globlalways
    Junior Member
    • Jun 2006
    • 9

    #2
    I figured out that this is a bug, how the show_history function is called:

    Wrong:
    Code:
    show_history($_REQUEST["itemid"],$_REQUEST["from"],$_REQUEST["stime"],$effectiveperiod);
    Correct:
    Code:
    show_history($_REQUEST["itemid"],$_REQUEST["from"],$effectiveperiod);

    Comment

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

      #3
      I cannot confirm this, ZABBIX 1.1.4 works absolutely fine with this URL. Your fix is incorrect as show_history() accepts four parameters, not three!
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...