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

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.5rc1, 2.1.0
    • 2.0.5rc1, 2.1.0
    • Frontend (F)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: