Module: check_mk
Branch: master
Commit: 0ed40af72dc95d6fd3dbf1f2e2f5eaa321ac49c5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ed40af72dc95d…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Fri Jan 18 16:57:50 2019 +0100
6938 FIX cmk-update-agent: Handle failing package manager
This werk fixes two bugs that occur on Unix and Linux
when the invoked package manager fails to install an
agent package:
The agent updater saved the agent hash to its state file
immediately before the update takes place. As a result, an
agent package got recognized as installed even if
its installation failed.
(Regression since Check_MK 1.5) Due to inproper handling
of the stderr and stdout streams coming from the invoked
package manager, the agent updater crashed on a package
manager failure instead of forwarding the error messages
to the user or log.
(Jira: CMK-1552)
Change-Id: I47668286c465145cbe43d00469e030201cdbfe7e
---
.werks/6938 | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/.werks/6938 b/.werks/6938
new file mode 100644
index 0000000..fef6715
--- /dev/null
+++ b/.werks/6938
@@ -0,0 +1,25 @@
+Title: cmk-update-agent: Handle failing package manager
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1547826201
+
+This werk fixes two bugs that occur on Unix and Linux
+when the invoked package manager fails to install an
+agent package:
+
+The agent updater saved the agent hash to its state file
+immediately before the update takes place. As a result, an
+agent package got recognized as installed even if
+its installation failed.
+
+(Regression since Check_MK 1.5) Due to inproper handling
+of the stderr and stdout streams coming from the invoked
+package manager, the agent updater crashed on a package
+manager failure instead of forwarding the error messages
+to the user or log.
+
Module: check_mk
Branch: master
Commit: b51c1abccb59b32bd016dfb4ae205551dd877e0e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b51c1abccb59b3…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Wed Jan 9 15:41:42 2019 +0100
Fix WATO rules for process discovery & state and count of processes
- Move all rules to check_parameters/ps.py
- Unify option parameters for all 3 rulesets
- Move icon value spec into the common default_params group
- Dealing with transforms more appropriately
- Fix WATO transform for PS rules
- WATO alternative defaults match function:
Make it explicit and easier to understand
- Ignore match_groups key from discovered processes
- Only show CPU utilization when there is at least one process
Change-Id: Idadb023164bf2e280a6305776e94748cc2246693
---
checks/ps.include | 24 +-
cmk/gui/plugins/wato/check_parameters/ps.py | 366 +++++++++++++++------
cmk/gui/plugins/wato/check_parameters/unsorted.py | 192 -----------
tests/unit/checks/test_ps.py | 41 ++-
.../cmk/gui/plugins/wato/test_check_parameters.py | 49 ++-
5 files changed, 353 insertions(+), 319 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=b51c1abccb…
Module: check_mk
Branch: master
Commit: 0fd45b835248c8de4614363898def900c7549adb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fd45b835248c8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 21 11:03:01 2019 +0100
Fixed broken view editor after htmllib refactoring
Change-Id: I4cfa6193e992ff1931c3b6cd07f617b936a5e859
---
cmk/gui/plugins/visuals/utils.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/plugins/visuals/utils.py b/cmk/gui/plugins/visuals/utils.py
index dbea96a..de8b192 100644
--- a/cmk/gui/plugins/visuals/utils.py
+++ b/cmk/gui/plugins/visuals/utils.py
@@ -137,7 +137,9 @@ class Filter(object):
# the HTML context where it can be used by e.g. the display() method.
def set_value(self, value):
for varname in self.htmlvars:
- html.request.set_var(varname, value.get(varname))
+ var_value = value.get(varname)
+ if var_value is not None:
+ html.request.set_var(varname, var_value)
# TODO: We should merge this with Filter() and make all vars unicode ...
Module: check_mk
Branch: master
Commit: dc940d51791ea7cf9daf11a93bfdab640086ba10
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc940d51791ea7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 21 12:36:02 2019 +0100
Fix hiding host attributes when depending on locked attributes
Change-Id: Icec41589574b94d650610af86561887f168162ea
---
web/htdocs/js/modules/wato.js | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/js/modules/wato.js b/web/htdocs/js/modules/wato.js
index 36fab56..829717d 100644
--- a/web/htdocs/js/modules/wato.js
+++ b/web/htdocs/js/modules/wato.js
@@ -191,12 +191,27 @@ function get_effective_tags()
continue;
}
var oTdContent = oTr.childNodes[1];
- /* If the Checkbox is unchecked try to get a value from the inherited_tags */
- var oCheckbox = oTdLegend.getElementsByTagName("input")[0];
- if (oCheckbox.checked == false ){
- var attrname = "attr_" + oCheckbox.name.replace(/.*_change_/, "");
- if (attrname in dialog_properties.inherited_tags && dialog_properties.inherited_tags[attrname] !== null){
- add_tag_id = dialog_properties.inherited_tags[attrname];
+
+ /*
+ * If the Checkbox is unchecked try to get a value from the inherited_tags
+ *
+ * The checkbox may be disabled. In this case there is a hidden field with the original
+ * name of the checkbox. Get that value instead of the checkbox checked state.
+ */
+ var input_fields = oTdLegend.getElementsByTagName("input");
+ var checkbox = input_fields[0];
+ var attr_enabled = false;
+ if (checkbox.name.indexOf("ignored_") === 0) {
+ var hidden_field = input_fields[input_fields.length - 1];
+ attr_enabled = hidden_field.value == "on";
+ } else {
+ attr_enabled = checkbox.checked;
+ }
+
+ if (attr_enabled == false ){
+ var attr_ident = "attr_" + checkbox.name.replace(/.*_change_/, "");
+ if (attr_ident in dialog_properties.inherited_tags && dialog_properties.inherited_tags[attr_ident] !== null){
+ add_tag_id = dialog_properties.inherited_tags[attr_ident];
}
} else {
/* Find the <select>/<checkbox> object in this tr */
Module: check_mk
Branch: master
Commit: 8eb535e553bcbb528ed4633527b560deb11f5d56
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8eb535e553bcbb…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Fri Jan 18 11:55:45 2019 +0100
k8s_roles: replace check for individual roles by a summary check
The checks for the individual roles are replaced by a summary check
that return the number of cluster roles, roles and total roles
defined in the Kubernetes cluster. The information for the individual
roles are moved to the HW/SW Inventory.
Change-Id: I6d39d7e4070c561c319fecde63da4b3d5c73a0ad
---
checkman/k8s_roles | 10 ++-
checks/k8s_roles | 44 +++++++++----
cmk/gui/plugins/metrics/check_mk.py | 18 ++++++
cmk/gui/plugins/views/inventory.py | 7 +++
cmk/gui/plugins/wato/check_parameters/k8s_roles.py | 73 ++++++++++++++++++++++
cmk/special_agents/agent_kubernetes.py | 15 +++--
inventory/k8s_roles | 47 ++++++++++++++
.../generictests/datasets/k8s_roles_regression.py | 33 ++++++++++
tests/unit/cmk/gui/test_watolib.py | 2 +
9 files changed, 224 insertions(+), 25 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8eb535e553…