Werk #18213: Prometheus special agent: Circumvent maximum length of argument list
Component | Checks & agents | ||||||
Title | Prometheus special agent: Circumvent maximum length of argument list | ||||||
Date | Jun 27, 2025 | ||||||
Level | Trivial Change | ||||||
Class | Bug Fix | ||||||
Compatibility | Compatible - no manual interaction needed | ||||||
Checkmk versions & editions |
|
For very extensive rulesets for the Prometheus special agent the passed arguments could exceed the system limit for the argument list.
This resulted in a OSError(7, 'Argument list too long')
, which prevented the special agent from running.
This werk passes the more extensive parts of the data via a pipe to STDIN of the special agent instead of passing them as CLI arguments.