We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

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

ComponentChecks & Agents
Titlecmk command: New option: --detect-sections
Date2020-11-18 11:09:32
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version2.0.0i2
LevelProminent Change
ClassNew Feature
CompatibilityCompatible - 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.