Werk #19879: nvidia_smi: don't crash when no GPU is found
| Component | Checks & agents | ||||||
| Title | nvidia_smi: don't crash when no GPU is found | ||||||
| Date | May 13, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
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.