Werk #11673: cmk command: New option: --detect-sections

Component Checks & Agents
Title cmk command: New option: --detect-sections
Date Nov 18, 2020
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.0.0b1
Level Prominent Change
Class New Feature
Compatibility Compatible - no manual interaction needed

This werk adds the new commandline option "--detect-sections" to the cmk -I my_host, cmk -i my_host and cmk my_host commands.

It is mainly a debugging feature for check and inventory plugin developers; regular users are most unlikely to ever need it.

Setting this option to a comma separated list of section names will have the effect that no more than the passed sections are available to the check or inventory plugins (depending on the command).

SNMP sections will be fetched without SNMP detection.

For instance if you execute cmk -II --detect-sections=hr_mem,uptime my_host, a rediscovery on my_host will be done, with (only) the sections hr_mem and uptime available. Note that the SNMP table corresponding to the hr_mem section will be fetched from the host, regardles of whether this host supports this MIB.

To the list of all Werks