Module: check_mk
Branch: master
Commit: 1dece38cc51b112cb6fde7c46634b30c28b3f0c5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1dece38cc51b11…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Nov 14 06:50:23 2018 +0100
mk_jolokia: use correct instance port
The port is used as default instance name.
Make sure it is the actual port of the instance,
not the default port.
E.g.: If a user configures a server at port 8443 and
gives no instance name, it should default to "8443"
-- not to "8080".
Change-Id: I74ed198279b56f717b48b173338af8ff223ca2ad
---
agents/plugins/mk_jolokia | 3 ---
1 file changed, 3 deletions(-)
diff --git a/agents/plugins/mk_jolokia b/agents/plugins/mk_jolokia
index 94b697b..8b95504 100755
--- a/agents/plugins/mk_jolokia
+++ b/agents/plugins/mk_jolokia
@@ -436,9 +436,6 @@ def yield_configured_instances():
if os.path.exists(conffile):
execfile(conffile)
- if instance is None:
- instance = str(port)
-
default_config = {
"protocol": protocol,
"server": server,