rrd conversion) in some cases
Message-ID: <5b06d83a.Ed1B1HQDXxm3ajry%lm(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: e05a7d6678c0442a866072b92c754281feeaff86
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e05a7d6678c044…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 24 14:44:15 2018 +0200
6154 FIX Fixed different Check_MK calls (parent scan, baking, rrd conversion) in some
cases
When using some check specific configuration variables (like e.g. fileinfo_groups), the
mentioned Check_MK calls could not be used. An error like this was shown:
Cannot read in configuration file /omd/sites/beta/etc/check_mk/conf.d/wato/rules.mk: name
'fileinfo_groups' is not defined
Change-Id: I5433c544b5754b044ce50370c1e5b5b7b9ff3055
---
.werks/6154 | 14 ++++++++++++++
cmk_base/modes/check_mk.py | 3 +++
2 files changed, 17 insertions(+)
diff --git a/.werks/6154 b/.werks/6154
new file mode 100644
index 0000000..805a368
--- /dev/null
+++ b/.werks/6154
@@ -0,0 +1,14 @@
+Title: Fixed different Check_MK calls (parent scan, baking, rrd conversion) in some
cases
+Level: 2
+Component: core
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1527165745
+
+When using some check specific configuration variables (like e.g. fileinfo_groups), the
+mentioned Check_MK calls could not be used. An error like this was shown:
+
+Cannot read in configuration file /omd/sites/beta/etc/check_mk/conf.d/wato/rules.mk: name
'fileinfo_groups' is not defined
diff --git a/cmk_base/modes/check_mk.py b/cmk_base/modes/check_mk.py
index c043a6b..062fd55 100644
--- a/cmk_base/modes/check_mk.py
+++ b/cmk_base/modes/check_mk.py
@@ -739,6 +739,9 @@ modes.register(Mode(
long_option="scan-parents",
handler_function=mode_scan_parents,
needs_config=False,
+ # TODO: Sadly needs to be True because the checks need to initialize the check
specific
+ # configuration variables before the config can be loaded.
+ needs_checks=True,
argument=True,
argument_descr="HOST1 HOST2...",
argument_optional=True,