Module: check_mk
Branch: master
Commit: 951e6e5bd0bbd41236079109b164b1fc2d14b30d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=951e6e5bd0bbd4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 21 09:41:23 2017 +0100
Moved functions to better places
* Now that the data structure is getting clearer the main function
for gathering the data of a host get_host_sections() can be
moved to the DataSources() object.
* Moved get_section_content_for_check() that prepares the section_content
for a check/inventory plugin to MultiHostSections() object.
Change-Id: I068be0c614c5087200f19b920fad6a5d207088b4
---
cmk_base/checking.py | 10 +-
cmk_base/data_sources/__init__.py | 275 +++++++--------------------------
cmk_base/data_sources/host_sections.py | 181 ++++++++++++++++++++++
cmk_base/discovery.py | 8 +-
cmk_base/inventory.py | 6 +-
5 files changed, 246 insertions(+), 234 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=951e6e5bd0…
Module: check_mk
Branch: master
Commit: 158be95c82413e8d758ff176975fc8d4eabf35e9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=158be95c82413e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 17 13:48:32 2017 +0100
Cleaned up discovery code
* Separated data gathering from doing the discovery
* Performance: Reduced duplicate data gathering on service discovery
page of WATO
* Moved data gathering (including all caching options) to top level
* Moved IP address resolution to top level which makes it much
clearer in which situations IP addresses are set by caller or not
Change-Id: Ied8ee8fa417743047ddd325a4adf83e5fcb79c0e
---
cmk_base/discovery.py | 100 +++++++++++++++++++++++++--------------------
cmk_base/ip_lookup.py | 2 +-
cmk_base/modes/check_mk.py | 11 ++++-
3 files changed, 65 insertions(+), 48 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=158be95c82…
Module: check_mk
Branch: master
Commit: bf2d1ea9dd3e0f2617332dda23a460fbd0ea1768
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bf2d1ea9dd3e0f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 17 12:23:38 2017 +0100
Updated bug entries #3014
Change-Id: I6dd1fc936953c041538035fae4b2ab4d8b2ddb93
---
.bugs/3014 | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.bugs/3014 b/.bugs/3014
new file mode 100644
index 0000000..aca49ea
--- /dev/null
+++ b/.bugs/3014
@@ -0,0 +1,16 @@
+Title: Check cache usage of the HW/SW inventory check
+Component: core
+State: open
+Date: 2017-11-17 12:23:20
+Targetversion: 1.5.0
+Class: bug
+
+We should check why the inventory check is handled differently than
+the discovery check regarding it's cache usage.
+
+The HW/SW inventory check is always trying to fetch fresh SNMP data.
+While the inventory check makes use of the existing data source caches.
+
+There are SNMP HW/SW inventory plugins that do not exist as checks and
+vice versa. We need to care about this when writing the cache in case
+we mix these both.
Module: check_mk
Branch: master
Commit: af6603bba9d8a36e8e265b8c8288067b91c705f9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af6603bba9d8a3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 21 15:28:21 2017 +0100
5535 Check_MK hosts can now use multiple agents
It is now possible to configure multiple Check_MK agents for a single host.
With this change, you can now configure e.g. a ESX VCenter to use the ESX special agent
together with the regular Check_MK agent installed on the monitored host.
All existing hosts remain using their existing configuration after an update. Also
new hosts only use a single Check_MK agent using the already existing logic where
a) The Check_MK agent was contacted via TCP or b) a configured data source program
(special agent or other program invocation) was used.
The new feature can be enabled by changing the host attribute (on hosts or folders)
"Check_MK Agent" to e.g. "Contact Check_MK agent and all datasource programs". This
will make Check_MK use all data sources matching on this host instead of just picking
the first matching one. There is also an alternative option "Use all enabled datasources"
available which can be used to execute only the data sources matching the host.
On the way to this change we have changed server previously existing things:
<ul>
<li>The host tag group <tt>agent</tt> has been split into multiple tag groups to be
more flexible.</li>
<li>The tag group <tt>ping</tt> and <tt>snmp</tt> have been added and provide the options
which were previously available in the single <tt>agent</tt> attribute.</li>
<li>All these tag groups are treated as <i>builtin</i> tag groups defined by Check_MK
(can not be modified anymore).</li>
<li>Existing configurations of hosts/folders will be translated seamlessly into the new
format.</li>
<li>During updates your site will only apply the changes above in case you have an unmodified
<tt>agent</tt> tag group. In case you have modified it in any way, these changes will not
be applied and you won't be able to use the changes introduced with this werk. You will then
have to clean up your local changes. Once you delete your local tag group "agent", the
builtin one will be used automatically.</li>
<li>The <i>Edit host</i> dialog has split up into more independent sections, the new ones
are <i>Address</i> and <i>Data sources</i> to better visualize the relation of the different
attributes.</li>
</ul>
<i>Please note:</i> In case you are using the Web-API calls to create or modify hosts or folders
while setting attributes we changed with this change, you may have to change your API calls.
Change-Id: I54cd61a6ccb662faf456348fbb6f2243c3c21457
---
.werks/5535 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/.werks/5535 b/.werks/5535
new file mode 100644
index 0000000..eaf323b
--- /dev/null
+++ b/.werks/5535
@@ -0,0 +1,48 @@
+Title: Check_MK hosts can now use multiple agents
+Level: 2
+Component: core
+Compatible: compat
+Edition: cre
+Version: 1.5.0i2
+Date: 1511273074
+Class: feature
+
+It is now possible to configure multiple Check_MK agents for a single host.
+
+With this change, you can now configure e.g. a ESX VCenter to use the ESX special agent
+together with the regular Check_MK agent installed on the monitored host.
+
+All existing hosts remain using their existing configuration after an update. Also
+new hosts only use a single Check_MK agent using the already existing logic where
+a) The Check_MK agent was contacted via TCP or b) a configured data source program
+(special agent or other program invocation) was used.
+
+The new feature can be enabled by changing the host attribute (on hosts or folders)
+"Check_MK Agent" to e.g. "Contact Check_MK agent and all datasource programs". This
+will make Check_MK use all data sources matching on this host instead of just picking
+the first matching one. There is also an alternative option "Use all enabled datasources"
+available which can be used to execute only the data sources matching the host.
+
+On the way to this change we have changed server previously existing things:
+
+<ul>
+ <li>The host tag group <tt>agent</tt> has been split into multiple tag groups to be
+ more flexible.</li>
+ <li>The tag group <tt>ping</tt> and <tt>snmp</tt> have been added and provide the options
+ which were previously available in the single <tt>agent</tt> attribute.</li>
+ <li>All these tag groups are treated as <i>builtin</i> tag groups defined by Check_MK
+ (can not be modified anymore).</li>
+ <li>Existing configurations of hosts/folders will be translated seamlessly into the new
+ format.</li>
+ <li>During updates your site will only apply the changes above in case you have an unmodified
+ <tt>agent</tt> tag group. In case you have modified it in any way, these changes will not
+ be applied and you won't be able to use the changes introduced with this werk. You will then
+ have to clean up your local changes. Once you delete your local tag group "agent", the
+ builtin one will be used automatically.</li>
+ <li>The <i>Edit host</i> dialog has split up into more independent sections, the new ones
+ are <i>Address</i> and <i>Data sources</i> to better visualize the relation of the different
+ attributes.</li>
+</ul>
+
+<i>Please note:</i> In case you are using the Web-API calls to create or modify hosts or folders
+while setting attributes we changed with this change, you may have to change your API calls.