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

Komponente Checks und Agenten
Titel cmk command: New option: --detect-sections
Datum 18.11.2020
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.0.0b1
Level Bedeutende Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks