Werk #20123: mkp add/inspect: Report unreadable files instead of failing silently
| Component | Checks & agents | ||||
| Title | mkp add/inspect: Report unreadable files instead of failing silently | ||||
| Date | Jul 29, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
Previously, mkp add and mkp inspect exited silently -- no output at all -- if the given file could not be read.
Both commands now tell you what went wrong, for example:
Cannot read file /tmp/coolstuff.mkp: [Errno 13] Permission denied: '/tmp/coolstuff.mkp'
The exit code was, and still is, 1 in these cases.