Module: check_mk
Branch: master
Commit: 10f3ef29cb1a7d7aacc43c50c4191a7b8c3527c5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=10f3ef29cb1a7d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 14 10:01:27 2018 +0200
6065 FIX fileinfo.groups: Fixed broken discovery "Invalid output from webservice (malformed string)"
When this check was used to create a grouped file check and rediscovered with 1.5.*, this lead
to an error message like "Invalid output from webservice (malformed string)".
Change-Id: I965f7ab26d59cc144f0e8aab0bdab576924e2b17
---
.werks/6065 | 12 ++++++++++++
checks/fileinfo | 3 ++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/6065 b/.werks/6065
new file mode 100644
index 0000000..b5c30d3
--- /dev/null
+++ b/.werks/6065
@@ -0,0 +1,12 @@
+Title: fileinfo.groups: Fixed broken discovery "Invalid output from webservice (malformed string)"
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526284756
+
+When this check was used to create a grouped file check and rediscovered with 1.5.*, this lead
+to an error message like "Invalid output from webservice (malformed string)".
diff --git a/checks/fileinfo b/checks/fileinfo
index 1ddac54..2b743e1 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -103,7 +103,8 @@ def fileinfo_groups_get_group_name(group_patterns, filename, reftime):
found_these_groups.setdefault(this_group_name, set())
found_these_groups[this_group_name].add(this_pattern)
- return found_these_groups
+ # Convert pattern containers to lists (sets are not possible in autochecks)
+ return dict([ (k, list(v)) for k, v in found_these_groups.items() ])
def inventory_fileinfo_common(info, case):
Module: check_mk
Branch: master
Commit: 85fb3af03546de958fe5f8d764b27468f1b8c3f7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85fb3af03546de…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 14 09:21:34 2018 +0200
6064 FIX Fixed possible hanging updates from 1.5 versions
When the "omd update" is executed as root user for a site, the update
might hang in case the default OMD version on the system is a 1.5 version.
To workaround this issue you may execute the "omd update" command as site user.
Change-Id: I8677df8ff5f8799db735853749f15f4d32f3ac26
---
.werks/6064 | 14 ++++++++++++++
omd/packages/omd/omd | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6064 b/.werks/6064
new file mode 100644
index 0000000..914f8c3
--- /dev/null
+++ b/.werks/6064
@@ -0,0 +1,14 @@
+Title: Fixed possible hanging updates from 1.5 versions
+Level: 1
+Component: omd
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526282366
+
+When the "omd update" is executed as root user for a site, the update
+might hang in case the default OMD version on the system is a 1.5 version.
+
+To workaround this issue you may execute the "omd update" command as site user.
diff --git a/omd/packages/omd/omd b/omd/packages/omd/omd
index fec9cb0..e16bc09 100644
--- a/omd/packages/omd/omd
+++ b/omd/packages/omd/omd
@@ -31,7 +31,8 @@
# python libraries. Newer versions unset these variables before, so this
# additional execv() is only needed when updating from older versions.
import os, sys
-if len(sys.argv) > 1 and sys.argv[1] == "update" and sys.version_info[2] != 14:
+if len(sys.argv) > 1 and sys.argv[1] == "update" \
+ and (sys.version_info[0] == 2 and sys.version_info[1] == 7 and sys.version_info[2] < 14):
# Prevent inheriting environment variables from this versions/site environment
# into the execed omd call. The OMD call must import the python version related
# modules and libaries. This only works when PYTHONPATH and LD_LIBRARY_PATH are
Module: check_mk
Branch: master
Commit: e2d953f25090183972f5e965ac9e4984751b919f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2d953f2509018…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Fri May 11 13:30:50 2018 +0200
5926 FIX Agent Bakery options for WMI and full path with Windows processes
Werk #2656 added the options to use WMI for retrieving information
about process on Windows and to display the full path of the process.
These new configuration options were left without the counterpart for
configuring them in the Agent Bakery.
This deficit is now fixed so that the option use_wmi for the ps section
is also configurable through the Agent Bakery. The full path option is
now also configurable, nevertheless enabling it only takes effect if
use_wmi is also enabled.
Change-Id: Ie55c511ccb6ee8fd3cc90c63e14b62c3f07d2928
---
.werks/5926 | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/.werks/5926 b/.werks/5926
new file mode 100644
index 0000000..98adb2e
--- /dev/null
+++ b/.werks/5926
@@ -0,0 +1,20 @@
+Title: Agent Bakery options for WMI and full path with Windows processes
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cee
+Version: 1.6.0i1
+Date: 1526037609
+Class: fix
+
+Werk #2656 added the options to use WMI for retrieving information
+about process on Windows and to display the full path of the process.
+These new configuration options were left without the counterpart for
+configuring them in the Agent Bakery.
+
+This deficit is now fixed so that the option use_wmi for the ps section
+is also configurable through the Agent Bakery. The full path option is
+now also configurable, nevertheless enabling it only takes effect if
+use_wmi is also enabled.
+
+
Module: check_mk
Branch: master
Commit: 2b71d2c2fe146de7b2d2d44fed977c228be707df
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2b71d2c2fe146d…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 11 11:00:39 2018 +0200
Removed duplicate parameters
Change-Id: I6d562c97dbbcafccb6fd308048dc0cbf4a5ab0b9
---
web/plugins/wato/check_parameters.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 18328ab..875b364 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1345,22 +1345,6 @@ process_level_elements = [
),
],
)),
- ('process_info', DropdownChoice(
- title = _("Enable per-process details in long-output"),
- label = _("Enable per-process details"),
- help = _("If active, the long output of this service will contain a list of "
- "all the matching processes and their details (i.e. PID, CPU usage, memory usage). "
- "Please note that HTML output will only work if \"Escape HTML codes in plugin output\" is "
- "disabled in global settings. This might expose you to Cross-Site-Scripting (everyone "
- "with write-access to checks could get scripts executed on the monitoring site in the context "
- "of the user of the monitoring site) so please do this if you understand the consequences."),
- choices = [
- (None, _("Disable")),
- ("text", _("Text output")),
- ("html", _("HTML output"))
- ],
- default_value = "disable",
- )),
("use_linux_cpu_cores", Checkbox(
title=_("Use number of cores sent by agent (Linux)"),
label=_("Enable")
Module: check_mk
Branch: master
Commit: e8cdc365bc57ef65455ddff71fb5203a18812909
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e8cdc365bc57ef…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 11 10:56:32 2018 +0200
6077 FIX ps: Using number of cores sent by Linux agent is now configurable
Change-Id: Id41bc32f82c1a41f3a49a116f3fe3a50f57c4182
---
.werks/6077 | 11 +++++++++++
checks/ps | 2 +-
web/plugins/wato/check_parameters.py | 20 ++++++++++++++++++++
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/.werks/6077 b/.werks/6077
new file mode 100644
index 0000000..ecd0ba9
--- /dev/null
+++ b/.werks/6077
@@ -0,0 +1,11 @@
+Title: ps: Using number of cores sent by Linux agent is now configurable
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0b4
+Date: 1526028276
+
+
diff --git a/checks/ps b/checks/ps
index 9489fc7..52eec64 100644
--- a/checks/ps
+++ b/checks/ps
@@ -242,7 +242,7 @@ def inventory_ps(info):
def check_ps(item, params, info):
(cpu_cores, parsed), mem_info, solaris_mem_info, statgrab_mem_info, aix_memory_info, cpu_info = info
- if cpu_info and len(cpu_info[0]) == 6:
+ if cpu_info and len(cpu_info[0]) == 6 and params.get('use_linux_cpu_cores'):
cpu_cores = int(cpu_info[0][5])
if mem_info:
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 2092288..18328ab 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1361,6 +1361,26 @@ process_level_elements = [
],
default_value = "disable",
)),
+ ("use_linux_cpu_cores", Checkbox(
+ title=_("Use number of cores sent by agent (Linux)"),
+ label=_("Enable")
+ )),
+ ('process_info', DropdownChoice(
+ title = _("Enable per-process details in long-output"),
+ label = _("Enable per-process details"),
+ help = _("If active, the long output of this service will contain a list of "
+ "all the matching processes and their details (i.e. PID, CPU usage, memory usage). "
+ "Please note that HTML output will only work if \"Escape HTML codes in plugin output\" is "
+ "disabled in global settings. This might expose you to Cross-Site-Scripting (everyone "
+ "with write-access to checks could get scripts executed on the monitoring site in the context "
+ "of the user of the monitoring site) so please do this if you understand the consequences."),
+ choices = [
+ (None, _("Disable")),
+ ("text", _("Text output")),
+ ("html", _("HTML output"))
+ ],
+ default_value = "disable",
+ )),
]
# In version 1.2.4 the check parameters for the resulting ps check