Hello, I have the following problem in one of the pollers and I really don’t know what to do. I’m not a developer and I wish you could help me, thanks.
Error is :
production.ERROR: Division by zero {“exception”:"[object] (DivisionByZeroError(code: 0): Division by zero at /opt/librenms/includes/functions.php:1046)"}
In my php this line have it
function delta_to_bits($delta, $period)
{
return round(($delta * 8 / $period), 2);
}
thx.
./validate.php
Component | Version |
---|---|
LibreNMS | 22.3.0-12-g1dde13a9a |
DB Schema | 2022_02_03_164059_increase_auth_id_length (235) |
PHP | 8.0.17 |
Python | 3.8.10 |
MySQL | 10.7.3-MariaDB-1:10.7.3+maria~focal |
RRDTool | 1.7.2 |
SNMP | 5.8 |
====================================
[OK] Composer Version: 2.3.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
includes/functions.php