Werk #19879 · May 13, 26
nvidia_smi: don't crash when no GPU is found
When the agent host had nvidia-smi installed but no GPU was currently
visible to the driver (the Linux plugin then forwarded No devices were
found), or when nvidia-smi.exe was not installed at the path the
Windows agent plugin searches (the plugin forwarded a not found in:
error block), the agent emitted a plain-text message instead of the
expected XML. The nvidia_smi section then crashed with ParseError:
syntax error: line 1, column 0 and produced a crash report on every
check cycle.
The check now treats a non-XML body as an empty section: no nvidia_smi
services are reported for the affected host, and no crash report is
generated.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p4All Editions
- 2.4.0p30All Editions