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

Possibility of division by zero in zbx_avg (charts2.php)

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.5rc1, 2.1.0
    • Fix Version/s: 2.0.5rc1, 2.1.0
    • Component/s: Frontend (F)
    • Labels:
      None

      Description

      Sometimes if item has no values zbx_avg function executes with errors:
      1. Invalid argument for foreach
      2. Division by zero.

      It happens because $values variable does not contain array. It is "NULL".

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dotneft Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: