Werk #19631 · Nov 25, 26
Windows agent: switch off a single winperf counter
The counters of the winperf section could only be added, never removed. The
Windows agent merges the counter list of check_mk.yml, of the file written by
the agent bakery and of check_mk.user.yml instead of overriding it, so a
counter that one file added stayed in the configuration whatever a later file
said.
Starting with this release, the value $DISABLE removes a counter:
winperf:
counters:
- 234: $DISABLE
The counter with that id, or with that name, is not monitored. The files are
read in the order check_mk.yml, the file of the agent bakery,
check_mk.user.yml, and the last file that names the counter decides. A file
read after the marker can therefore switch the counter on again, by giving its
id a name. check_mk_agent.exe showconfig winperf lists the entry with the
$DISABLE value in place of the counter, so a switched off counter stays
visible. The marker works in every agent configuration file.
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p24Not yet releasedAll Editions
- 2.4.0p44Not yet releasedAll Editions