Werk #19948: mk-job on AIX: avoid crash from locale-translated time labels
| Component | Checks & agents | ||||||
| Title | mk-job on AIX: avoid crash from locale-translated time labels | ||||||
| Date | May 6, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
In some rare situations, AIX hosts running mk-job could lose every Job service, with the Check_MK Discovery service flipping to WARN and reporting Parsing of section job failed - please submit a crash report!. The crash report shows ValueError (invalid literal for int() with base 10: '1.28') (or any similar non-integer real-time value).
This has been observed with a <<<job>>> agent section that looks like:
<<<job>>>
==> some_aix_job <==
start_time 1776568200
Real 1.28
User 0.48
System 0.02
exit_code 0
On AIX, /usr/bin/time localizes its output labels through LC_MESSAGES, so the spelling of real/user/sys can vary with the locale that mk-job happens to inherit (typically from the cron environment) and the installed message catalog. The known case is the legacy IBM en_US.ISO8859-1 catalog, which emits the labels capitalized as Real, User and System. The section parser only knew the lowercase POSIX labels and crashed on the capitalized variant.
The section parser now also accepts Real, User and System as additional names of the existing real, user and sys metrics. AIX agents do not need to be redeployed.