Branch: refs/heads/1.6.0
Home: https://github.com/tribe29/checkmk
Commit: f09cad79ab541f8c29f8e93d1de5004cecd9b8fd
https://github.com/tribe29/checkmk/commit/f09cad79ab541f8c29f8e93d1de5004ce…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
M cmk_base/config.py
M cmk_base/discovery.py
Log Message:
-----------
Discovery check: Fall back to default parameters
When the check is enabled there should always be a rule and None should
never occur, but just to be sure we apply the default parameters.
Change-Id: I5a1d7058e1f6a30ccc50a3d8cb28cc54b2d12067
Commit: d4badc61c0d0f901485f9bdee6f27583b1ea190f
https://github.com/tribe29/checkmk/commit/d4badc61c0d0f901485f9bdee6f27583b…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7769
M cmk/gui/watolib/hosts_and_folders.py
M cmk_base/config.py
M tests/unit/cmk_base/test_config.py
Log Message:
-----------
7769 FIX Fix broken computation of host contact groups in some cases
The core config creation was broken in 1.6.0b1 when using the WATO
folder hierarchy for assigning contact groups to hosts.
An exception like this was displayed after the update or later, e.g.
when executing <tt>cmk -U</tt> to update the core configuration:
C+:
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 457, in cmc_all_hosts
cmc_hosts = CMCHosts(config_cache.all_active_hosts(), CMCHostConfig)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 501, in __init__
self._compute(hostnames, host_class)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 513, in _compute
host_config = host_class(hostname)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 962, in __init__
super(CMCHostConfig, self).__init__(hostname)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 753, in __init__
self._host_contact_groups = self._host_config.contactgroups
File "/omd/sites/produktiv/lib/python/cmk_base/config.py", line 2471,
in contactgroups
return list(set(cgrs))
TypeError: unhashable type: 'list'
C-:
Change-Id: Ib4f0839745f6d01cfd9dd11a847589ce26e444e9
Commit: 7ccaac37004b7762e0df6c657744b4e442e4b5df
https://github.com/tribe29/checkmk/commit/7ccaac37004b7762e0df6c657744b4e44…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
M cmk/gui/watolib/hosts_and_folders.py
Log Message:
-----------
Create rules in hosts.mk in new rule format
Change-Id: I88b750de86678029c52dc39e5e9a6abc746be119
Compare: https://github.com/tribe29/checkmk/compare/85b09faabee1...7ccaac37004b
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: c703e99f2de3777282621a70c689a3f4c4a4982a
https://github.com/tribe29/checkmk/commit/c703e99f2de3777282621a70c689a3f4c…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
M cmk_base/config.py
M cmk_base/discovery.py
Log Message:
-----------
Discovery check: Fall back to default parameters
When the check is enabled there should always be a rule and None should
never occur, but just to be sure we apply the default parameters.
Change-Id: I5a1d7058e1f6a30ccc50a3d8cb28cc54b2d12067
Branch: refs/heads/1.5.0
Home: https://github.com/tribe29/checkmk
Commit: 6fccc2debbde1e2258abba988e9abd6b6a59c3ed
https://github.com/tribe29/checkmk/commit/6fccc2debbde1e2258abba988e9abd6b6…
Author: Simon Jess <simon.jess(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7781
M agents/plugins/mk_postgres
Log Message:
-----------
7781 FIX mk_postgres: Fixed invalid SQL-statements and version parsing
Thanks to Felix E.
Change-Id: I9139e23b396e0cee12f648653288867b92c1f20e
Branch: refs/heads/1.6.0
Home: https://github.com/tribe29/checkmk
Commit: 85b09faabee11e6b3c0cb18b08fd78eb8c3970e7
https://github.com/tribe29/checkmk/commit/85b09faabee11e6b3c0cb18b08fd78eb8…
Author: Simon Jess <simon.jess(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7781
M agents/plugins/mk_postgres
Log Message:
-----------
7781 FIX mk_postgres: Fixed invalid SQL-statements and version parsing
Thanks to Felix E.
Change-Id: I9139e23b396e0cee12f648653288867b92c1f20e
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: b688f07ed2dff91d63416231d5782c2f75b79bc2
https://github.com/tribe29/checkmk/commit/b688f07ed2dff91d63416231d5782c2f7…
Author: Simon Jess <simon.jess(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7781
M agents/plugins/mk_postgres
Log Message:
-----------
7781 FIX mk_postgres: Fixed invalid SQL-statements and version parsing
Thanks to Felix E.
Change-Id: I9139e23b396e0cee12f648653288867b92c1f20e
Branch: refs/heads/1.6.0
Home: https://github.com/tribe29/checkmk
Commit: f78576205291aa1e07e6c19ec194a377ccd706b3
https://github.com/tribe29/checkmk/commit/f78576205291aa1e07e6c19ec194a377c…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7770
M cmk_base/config.py
Log Message:
-----------
7770 FIX Fix "Periodic service discovery" disabling rules breaking config
In 1.6.0b1 a rule in the ruleset "Periodic service discovery" that is
configured with the option "Do not perform service discovery check" resulted
in the following exception when updating the core config (e.g. with cmk -U):
C+:
OMD[testsite]:~$ cmk --debug -Uv
Generating configuration for core (type cmc)...
time period '24X7': 2 time points
Configuration Error: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/omd/sites/testsite/bin/cmk", line 94, in
exit_status = modes.call(mode_name, mode_args, opts, args)
File "/omd/sites/testsite/lib/python/cmk_base/modes/__init__.py", line 72, in call
return mode.handler_function(*handler_args)
File "/omd/sites/testsite/lib/python/cmk_base/modes/check_mk.py", line 1106, in mode_update
do_update(create_core(options), with_precompile=True)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 266, in do_update
do_create_config(core, with_agents=with_precompile)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 219, in do_create_config
create_core_config(core)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 235, in create_core_config
core.create_config()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 63, in create_config
_create_config_hook(self._cmc_file)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 123, in _create_config_hook
hosts_config = _measure_time(cmc_all_hosts)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 156, in _measure_time
result = func(*args, **kwargs)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 457, in cmc_all_hosts
cmc_hosts = CMCHosts(config_cache.all_active_hosts(), CMCHostConfig)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 501, in __init__
self._compute(hostnames, host_class)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 513, in _compute
host_config = host_class(hostname)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 966, in __init__
self._compute()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 984, in _compute
self._cmc_services()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 1259, in _cmc_services
if disc_check_params["check_interval"] \
TypeError: 'NoneType' object has no attribute '__getitem__'
C-:
Change-Id: Ic542c185326b7e5def1c52469226a33b252b1912
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 83217395496582de918fa73766c1659841aed4ee
https://github.com/tribe29/checkmk/commit/83217395496582de918fa73766c165984…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-06-07 (Fri, 07 Jun 2019)
Changed paths:
A .werks/7770
M cmk_base/config.py
Log Message:
-----------
7770 FIX Fix "Periodic service discovery" disabling rules breaking config
In 1.6.0b1 a rule in the ruleset "Periodic service discovery" that is
configured with the option "Do not perform service discovery check" resulted
in the following exception when updating the core config (e.g. with cmk -U):
C+:
OMD[testsite]:~$ cmk --debug -Uv
Generating configuration for core (type cmc)...
time period '24X7': 2 time points
Configuration Error: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/omd/sites/testsite/bin/cmk", line 94, in
exit_status = modes.call(mode_name, mode_args, opts, args)
File "/omd/sites/testsite/lib/python/cmk_base/modes/__init__.py", line 72, in call
return mode.handler_function(*handler_args)
File "/omd/sites/testsite/lib/python/cmk_base/modes/check_mk.py", line 1106, in mode_update
do_update(create_core(options), with_precompile=True)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 266, in do_update
do_create_config(core, with_agents=with_precompile)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 219, in do_create_config
create_core_config(core)
File "/omd/sites/testsite/lib/python/cmk_base/core_config.py", line 235, in create_core_config
core.create_config()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 63, in create_config
_create_config_hook(self._cmc_file)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 123, in _create_config_hook
hosts_config = _measure_time(cmc_all_hosts)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 156, in _measure_time
result = func(*args, **kwargs)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 457, in cmc_all_hosts
cmc_hosts = CMCHosts(config_cache.all_active_hosts(), CMCHostConfig)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 501, in __init__
self._compute(hostnames, host_class)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 513, in _compute
host_config = host_class(hostname)
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 966, in __init__
self._compute()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 984, in _compute
self._cmc_services()
File "/omd/sites/testsite/lib/python/cmk_base/cee/core_cmc.py", line 1259, in _cmc_services
if disc_check_params["check_interval"] \
TypeError: 'NoneType' object has no attribute '__getitem__'
C-:
Change-Id: Ic542c185326b7e5def1c52469226a33b252b1912