Werk #22084: cmk_site_statistics: don't crash when the site reports no core PID
| Component | Checks & agents | ||||
| Title | cmk_site_statistics: don't crash when the site reports no core PID | ||||
| Date | Jul 31, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The OMD <site> statistics service could go to UNKNOWN with "check failed -
please submit a crash report!", the crash report showing
KeyError: 'nagios_pid'.
The check adds the core process ID as an informational notice, falling back to an older field name for sites from before Checkmk 1.6. That fallback was looked up even when it was not needed, so the service crashed on any site that does not report the old field, as well as on sites whose status data arrived incomplete.
The core PID is now looked up without the crash, and the notice is left out entirely when the site does not report a PID. Everything else the service reports is unaffected.