Werk #22082: mrpe: don't crash on metric names the plug-in cannot use
| Component | Checks & agents | ||||||
| Title | mrpe: don't crash on metric names the plug-in cannot use | ||||||
| Date | Jul 31, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
An MRPE service could go to UNKNOWN with "check failed - please submit a crash
report!", the crash report showing
TypeError: invalid character(s) in metric name.
MRPE turns the performance data labels of the wrapped Nagios plug-in into
Checkmk metric names, and these must not contain a space, colon, slash or
backslash. A plug-in labelling its metrics with, for example, a mount point
(/=1234MB;;;0;13717, as check_disk does) therefore crashed the whole
service.
Such a metric is now reported as "Undefined metric: ..." with state UNKNOWN, which is how MRPE already handled performance data it could not interpret. The plug-in output and all other metrics of the same service are shown as usual.