Module: check_mk
Branch: master
Commit: ee3a35c3174deb9d309321bb3ac07f5ff9332c19
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee3a35c3174deb…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Dec 20 10:28:08 2016 +0100
4208 FIX mk_jolokia: Plugin now works with jolokia versions requiring the base url to finish with a slash
Previously, the plugin would not output any meaningful data for certain jolokia versions. This has
been fixed.
Change-Id: I4634b0936919c33d13b8ab0dc011f5923737c4a3
---
.werks/4208 | 11 +++++++++++
ChangeLog | 1 +
agents/plugins/mk_jolokia | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4208 b/.werks/4208
new file mode 100644
index 0000000..8f0380b
--- /dev/null
+++ b/.werks/4208
@@ -0,0 +1,11 @@
+Title: mk_jolokia: Plugin now works with jolokia versions requiring the base url to finish with a slash
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1482226014
+
+Previously, the plugin would not output any meaningful data for certain jolokia versions. This has
+been fixed.
diff --git a/ChangeLog b/ChangeLog
index a72dbea..951b023 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
* 4207 FIX: mk_jolokia: Use configured port as default instance name...
NOTE: Please refer to the migration notes!
+ * 4208 FIX: mk_jolokia: Plugin now works with jolokia versions requiring the base url to finish with a slash...
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can now be configured via global settings....
diff --git a/agents/plugins/mk_jolokia b/agents/plugins/mk_jolokia
old mode 100755
new mode 100644
index 4359a1b..841cb6b
--- a/agents/plugins/mk_jolokia
+++ b/agents/plugins/mk_jolokia
@@ -95,7 +95,7 @@ def fetch_url_get(base_url, path, function):
if path:
url = "%s/%s/%s" % (base_url, function, path)
else:
- url = base_url
+ url = base_url + "/"
if opt_verbose:
sys.stderr.write("DEBUG: Fetching: %s\n" % url)
Module: check_mk
Branch: master
Commit: 85521f78719289ef4c7dca90d486c2acdc73b19e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85521f78719289…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Dec 20 10:23:21 2016 +0100
4207 FIX mk_jolokia: Use configured port as default instance name
Previously, the mk_jolokia plugin would default to the port as
an instance name if no name was configured before reading the
config file. This led to the default instance name always being
8080, regardless of which port was actually configured.
If you have configured a nonstandard port in jolokia.cfg,
but not an instance name, rediscovery is required, as well as
adjusting rules relying on the instance name.
Change-Id: I0ee9508971449b85ad5adb66c8b436c8b07a635e
---
.werks/4207 | 17 +++++++++++++++++
ChangeLog | 2 ++
agents/plugins/mk_jolokia | 5 ++---
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/.werks/4207 b/.werks/4207
new file mode 100644
index 0000000..4b9534c
--- /dev/null
+++ b/.werks/4207
@@ -0,0 +1,17 @@
+Title: mk_jolokia: Use configured port as default instance name
+Level: 1
+Component: checks
+Class: fix
+Compatible: incomp
+State: unknown
+Version: 1.4.0i4
+Date: 1482225291
+
+Previously, the mk_jolokia plugin would default to the port as
+an instance name if no name was configured before reading the
+config file. This led to the default instance name always being
+8080, regardless of which port was actually configured.
+
+If you have configured a nonstandard port in jolokia.cfg,
+but not an instance name, rediscovery is required, as well as
+adjusting rules relying on the instance name.
diff --git a/ChangeLog b/ChangeLog
index 3fbf3bf..a72dbea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
* 4171 FIX: perle_psmu: fixed value error...
* 4172 FIX: smart.temp: fixed discovery and check function...
* 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
+ * 4207 FIX: mk_jolokia: Use configured port as default instance name...
+ NOTE: Please refer to the migration notes!
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can now be configured via global settings....
diff --git a/agents/plugins/mk_jolokia b/agents/plugins/mk_jolokia
index 22a8a50..4359a1b 100755
--- a/agents/plugins/mk_jolokia
+++ b/agents/plugins/mk_jolokia
@@ -439,12 +439,11 @@ instances = [{}]
conffile = os.getenv("MK_CONFDIR", "/etc/check_mk") + "/jolokia.cfg"
-if instance == None:
- instance = str(port)
-
if os.path.exists(conffile):
execfile(conffile)
+if instance == None:
+ instance = str(port)
# We have to deal with socket timeouts. Python > 2.6
# supports timeout parameter for the urllib2.urlopen method
Module: check_mk
Branch: master
Commit: 2912cd1097c694a3585ed3651038c4b472bd657d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2912cd1097c694…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Dec 20 09:40:28 2016 +0100
4173 FIX if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
Change-Id: I8d55574ce0c25fbd48cc2935b96d54917252b5d7
---
.werks/4173 | 10 ++++++++++
ChangeLog | 3 +++
web/plugins/wato/check_parameters.py | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/4173 b/.werks/4173
new file mode 100644
index 0000000..f55a014
--- /dev/null
+++ b/.werks/4173
@@ -0,0 +1,10 @@
+Title: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
+Level: 1
+Component: check
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1482223101
+
+
diff --git a/ChangeLog b/ChangeLog
index fc25104..f4ec358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,9 @@
* 4155 FIX: Do not perform actions on events if overflow limit is active...
* 4156 FIX: Fix off-by-one error in EC limit handling...
+ check:
+ * 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
+
1.4.0i3:
Core & Setup:
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 92a622e..0df53e0 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6189,7 +6189,7 @@ register_check_parameters(
# Transform old traffic related levels which used "traffic" and "traffic_minimum"
# keys where each was configured with an Alternative valuespec
Transform(Dictionary(
- ignored_keys = [ "aggr_member_item", "aggregate" ], # Created by discovery when using interface grouping
+ ignored_keys = [ "include_items", "iftype", "aggr_member_item", "aggregate" ], # Created by discovery when using interface grouping
elements = [
( "errors",
Alternative(
Module: check_mk
Branch: master
Commit: 273170812afe25fa0f965cb0c14c03f82357c9c7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=273170812afe25…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Dec 20 09:45:29 2016 +0100
updated werk
Change-Id: I3aec8a81c43a92ef47109f66592d9d89d54bf8b9
---
.werks/4173 | 2 +-
ChangeLog | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/.werks/4173 b/.werks/4173
index f55a014..aba5f55 100644
--- a/.werks/4173
+++ b/.werks/4173
@@ -1,6 +1,6 @@
Title: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
Level: 1
-Component: check
+Component: checks
Class: fix
Compatible: compat
State: unknown
diff --git a/ChangeLog b/ChangeLog
index f4ec358..3fbf3bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
* 4170 local: local check is now clusteraware. Best or worst state in cluster mode can be configured...
* 4171 FIX: perle_psmu: fixed value error...
* 4172 FIX: smart.temp: fixed discovery and check function...
+ * 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can now be configured via global settings....
@@ -25,9 +26,6 @@
* 4155 FIX: Do not perform actions on events if overflow limit is active...
* 4156 FIX: Fix off-by-one error in EC limit handling...
- check:
- * 4173 FIX: if.include: ignore some more keys in 'Network interfaces and switch ports' rule which are only used for interface grouping
-
1.4.0i3:
Core & Setup: