Werk #19207 · May 18, 26
mk_inventory: Remove spurious output from timestamp handling
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.
Details
- Class:
- Bug Fixes
- Level:
- Prominent
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p4All Editions