{"action":"closed","issue":{"url":"https://api.github.com/repos/influxdb/telegraf/issues/414","labels_url":"https://api.github.com/repos/influxdb/telegraf/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/telegraf/issues/414/comments","events_url":"https://api.github.com/repos/influxdb/telegraf/issues/414/events","html_url":"https://github.com/influxdb/telegraf/issues/414","id":120046165,"number":414,"title":"jolokia add optional authentication parameters","user":{"login":"jrxFive","id":916382,"avatar_url":"https://avatars.githubusercontent.com/u/916382?v=3","gravatar_id":"","url":"https://api.github.com/users/jrxFive","html_url":"https://github.com/jrxFive","followers_url":"https://api.github.com/users/jrxFive/followers","following_url":"https://api.github.com/users/jrxFive/following{/other_user}","gists_url":"https://api.github.com/users/jrxFive/gists{/gist_id}","starred_url":"https://api.github.com/users/jrxFive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrxFive/subscriptions","organizations_url":"https://api.github.com/users/jrxFive/orgs","repos_url":"https://api.github.com/users/jrxFive/repos","events_url":"https://api.github.com/users/jrxFive/events{/privacy}","received_events_url":"https://api.github.com/users/jrxFive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T22:04:29Z","updated_at":"2015-12-03T20:24:59Z","closed_at":"2015-12-03T20:24:59Z","body":"Attempting to use the jolokia plugin against a service that has credentials established, I see no option to add credentials to the config file, unable to query endpoints, automatically get:\r\n\r\n```\r\nMissing key 'value' in 'http://<IP>:8161/jolokia/read/java.lang:type=Memory/HeapMemoryUsage' output response\r\nMissing key 'value' in 'http://<IP>:8161/jolokia/read/java.lang:type=MemoryPool,name=PS%20Eden%20Space/Usage' output response\r\nMissing key 'value' in 'http://<IP>:8161/jolokia/read/java.lang:type=Threading' output response\r\n```\r\n\r\nWhen attempting a http call to test manually:\r\n\r\n```\r\nhttp http://<IP>:8161/api/jolokia/read/java.lang:type=Memory/HeapMemoryUsage\r\nHTTP/1.1 401 Unauthorized\r\nCache-Control: must-revalidate,no-cache,no-store\r\nContent-Length: 1392\r\nContent-Type: text/html;charset=ISO-8859-1\r\nServer: Jetty(8.1.16.v20140903)\r\nWWW-Authenticate: basic realm=\"ActiveMQRealm\"\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=ISO-8859-1\"/>\r\n<title>Error 401 Unauthorized</title>\r\n</head>\r\n<body>\r\n<h2>HTTP ERROR: 401</h2>\r\n<p>Problem accessing /api/jolokia/read/java.lang:type=Memory/HeapMemoryUsage. Reason:\r\n<pre>    Unauthorized</pre></p>\r\n<hr /><i><small>Powered by Jetty://</small></i>\r\n</body>\r\n</html>\r\n```\r\n\r\nSame call with credentials specified:\r\n\r\n```\r\nhttp -a <u>:<p> http://<IP>:8161/api/jolokia/read/java.lang:type=Memory/HeapMemoryUsage\r\nHTTP/1.1 200 OK\r\nCache-Control: no-cache\r\nContent-Length: 204\r\nContent-Type: text/plain;charset=UTF-8\r\nDate: Wed, 02 Dec 2015 21:57:17 GMT\r\nExpires: Wed, 02 Dec 2015 20:57:17 GMT\r\nPragma: no-cache\r\nServer: Jetty(8.1.16.v20140903)\r\n\r\n{\"timestamp\":1449093437,\"status\":200,\"request\":{\"mbean\":\"java.lang:type=Memory\",\"attribute\":\"HeapMemoryUsage\",\"type\":\"read\"},\"value\":{\"max\":468320256,\"committed\":56229888,\"init\":30156928,\"used\":40883248}}\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"}}