Werk #22557: Metric backend (custom query): reject empty service name templates
| Component | Checks & agents | ||
| Title | Metric backend (custom query): reject empty service name templates | ||
| Date | Sep 30, 2026 | ||
| Level | Trivial Change | ||
| Class | Bug Fix | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
Previously, a rule of the Metric backend (custom query) ruleset with an empty service name template made the check plugin crash and produced a crash report as soon as the query returned data.
The rule form now rejects an empty service name template and shows the message directly at the field.
A template can still resolve to an empty name at runtime, for example when it
consists only of a macro whose attribute value is empty. Such series no longer
crash the plugin. They are collected under the service Custom query metrics
with empty service name, which goes UNKNOWN and lists the affected metrics so
you can adapt the template.