Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 0b306317bb4f614524dab378148f56fdd9e8b7f3
https://github.com/tribe29/checkmk/commit/0b306317bb4f614524dab378148f56fdd…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-11-19 (Thu, 19 Nov 2020)
Changed paths:
A .werks/11673
M cmk/base/checking.py
M cmk/base/discovery.py
M cmk/base/inventory.py
M cmk/base/modes/check_mk.py
M tests/unit/cmk/base/checkers/test_cmd_caching.py
M tests/unit/cmk/base/test_discovery.py
Log Message:
-----------
11673 Developer option: --detect-sections
This werk adds the new commandline option
"<tt>--detect-sections</tt>" to the <tt>cmk -I
my_host</tt>,
<tt>cmk -i my_host</tt> and <tt>cmk my_host</tt> 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 <tt>cmk -II --detect-sections=hr_mem,uptime
my_host</tt>, a rediscovery
on <i>my_host</i> will be done, with (only) the sections
<i>hr_mem</i> and <i>uptime</i> available.
Note that the SNMP table corresponding to the <i>hr_mem</i> section fill be
fetched from the host,
regardles of whether this host supports this MIB.
Change-Id: Ifb7385a955c8f3892f7f64a017a747bfdf540dfd