Werk #19841 · Apr 21, 26
multipath: don't crash when numpaths is 0
When a multipath group had numpaths equal to 0 (for example because all
discovered paths had been removed from the device map between discovery and
the next check cycle), the check crashed with a ZeroDivisionError while
computing the active-path percentage.
The check now reports a CRIT state with "No paths" and continues to yield the remaining information instead of crashing.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p1All Editions
- 2.4.0p29All Editions
- 2.3.0p47CommunityProUltimateUltimate + MT