Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9911

pie graph may request more history than an item may have

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: Frontend (F)

      Description

      When worked with pie graphs with single (easier to notice) or several items I've noticed that the graph may request 2 times more history that an item has in "keep history" settings.

      When look to code (CPieGraphDraw.php:181) in v2.4.6 we can see line:

      if (!$trendsEnabled || (($item['history'] * SEC_PER_DAY) > (time() - ($from_time + $this->period / 2)))) {
       .... processed as history here ....
      

      which is identical to main part of another code line (CLineGraphDraw.php:235), which is for normal/stacked graphs.

      It's possible to notice in bottom right corner of graph - Data from history or trends.

      The behavior plus almost duplicated code line - it looks do me like a bug.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: