Werk #22574 · Oct 5, 26
ucd_mem: no crash on zero total RAM
If a device monitored via the UCD SNMP memory table reported a total
RAM of 0, the "Memory" service crashed with
ZeroDivisionError: float division by zero.
The service now reports UNKNOWN with "Cannot evaluate RAM: device reports a total of 0 B". Swap errors reported by the device are still shown.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p16All Editions
- 2.4.0p39All Editions