Werk #19207: mk_inventory: Remove spurious output from timestamp handling
| Component | Checks & agents | ||||
| Title | mk_inventory: Remove spurious output from timestamp handling | ||||
| Date | May 18, 2026 | ||||
| Level | Prominent Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The Windows agent plugin mk_inventory.ps1 could emit unwanted text into the
agent output when the timestamp file could not be created (for example due to
missing permissions or a missing state directory). The return value of the
internal CreateTimestamp function was unconditionally written to standard
output, so any error message ended up in the agent data stream and could
interfere with parsing on the Checkmk site.
Starting with this release, the return value is only used for flow control and is no longer written to the agent output. If the timestamp is too young the plugin exits silently; in all other cases execution continues without emitting diagnostic text.