Werk #22149: omd config: report failures with a non-zero exit code
| Component | Site management | ||
| Title | omd config: report failures with a non-zero exit code | ||
| Date | Sep 16, 2026 | ||
| Level | Prominent Change | ||
| Class | Bug Fix | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
Previously omd config set, omd config show and omd config change
printed an error message and then exited with code 0. Scripts wrapping these
commands could not tell a successful configuration change from a failed one, so
a typo in a variable name or a hook that failed to activate went unnoticed.
These commands now exit with code 1 whenever they report an error, for example:
- an unknown configuration variable
- an invalid value for a variable
- an unknown
omd configsubcommand - a configuration hook that failed to activate
- an attempt to change a variable while the site is still running
omd config show and omd config change now also report every problem they ran
into instead of stopping at the first one.