Werk #19278 · Mar 3, 26
Fix esx_vsphere checks handling unavailable VMware metrics incorrectly
VMware vSphere reports -1 for performance counter metrics that could not be
collected in a given 20-second sample interval. Several ESX checks did not
handle this sentinel value and passed it through as a real measurement:
- Disk IO SUMMARY:
-1values in disk latency metrics caused a crash withValueError: Cannot render negative timespan - Uptime: a
-1sample as the most-recent value produced a negative uptime - VMKernel Swap: services showed
-1 Bfor swap in, out, and used metrics - Ramdisk [name]: a
-1sample caused an incorrect used-space value to be reported - GPU Utilization [id]: utilization was reported as
-1%instead of goingUNKN - Interface [name]:
-1network counter samples were included in the averaged rate
Invalid -1 samples are now excluded from all affected checks. Services report
UNKN or omit the metric entirely when no valid sample is available in a check
interval.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0b1All Editions
- 2.4.0p23All Editions