{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/3019","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/3019/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/3019/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/3019/events","html_url":"https://github.com/influxdata/telegraf/issues/3019","id":243063124,"node_id":"MDU6SXNzdWUyNDMwNjMxMjQ=","number":3019,"title":"getsockopt: connection refused","user":{"login":"NitinKumar5","id":6308841,"node_id":"MDQ6VXNlcjYzMDg4NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/6308841?v=4","gravatar_id":"","url":"https://api.github.com/users/NitinKumar5","html_url":"https://github.com/NitinKumar5","followers_url":"https://api.github.com/users/NitinKumar5/followers","following_url":"https://api.github.com/users/NitinKumar5/following{/other_user}","gists_url":"https://api.github.com/users/NitinKumar5/gists{/gist_id}","starred_url":"https://api.github.com/users/NitinKumar5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NitinKumar5/subscriptions","organizations_url":"https://api.github.com/users/NitinKumar5/orgs","repos_url":"https://api.github.com/users/NitinKumar5/repos","events_url":"https://api.github.com/users/NitinKumar5/events{/privacy}","received_events_url":"https://api.github.com/users/NitinKumar5/received_events","type":"User","site_admin":false},"labels":[{"id":244649246,"node_id":"MDU6TGFiZWwyNDQ2NDkyNDY=","url":"https://api.github.com/repos/influxdata/telegraf/labels/need%20more%20info","name":"need more info","color":"d4d7dd","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-07-14T17:41:07Z","updated_at":"2018-07-26T18:58:55Z","closed_at":"2017-07-18T00:55:18Z","author_association":"NONE","body":"Hi Team,\r\nIt`s really a good tool to play around and go important stuff too. Kudos to your team. But today i am facing an issue related to flashing data into influx database. below are the below details. hope details are sufficient to reproduce it.\r\n\r\n## Bug report\r\n\r\n### Relevant telegraf.conf:\r\n[global_tags]\r\n  ServerName=\"server_name\"\r\n  StackName=\"stack1\"\r\n  AppId=\"test\"\r\n  AppVersion=\"VERSION\"\r\n\r\n[agent]\r\n  debug = true\r\n  quiet = false\r\n\r\n  ## Override default hostname, if empty use os.Hostname()\r\n  hostname = \"\"\r\n\r\n[[inputs.jolokia]]\r\n  context = \"/jolokia/\"\r\n\r\n[[inputs.jolokia.servers]]\r\n  host = \"127.0.0.1\"\r\n  port = \"8788\"\r\n\r\n\r\n[[inputs.jolokia.metrics]]\r\n name = \"ReleaseCacheSize\"\r\n  mbean = \"core.common.dataaccess.cache.consumer:name=core.release.cache.consumerCache,type=CacheConsumerImpl\"\r\n  attribute = \"CacheSize\"\r\n \r\n[[inputs.jolokia.metrics]]\r\n name = \"ConfigCacheSize\"\r\n  mbean = \"core.common.dataaccess.cache.consumer:name=core.config.cache.consumerCache,type=CacheConsumerImpl\"\r\n  attribute = \"CacheSize\"\r\n\r\n[[outputs.influxdb]]\r\n\r\n  urls = [\"$url\"]\r\n  database = \"test_health\"\r\n  username = \"XXXX\"\r\n  precision = \"s\"\r\n  user_agent = \"CacheSize\"\r\n  password = \"XXXXX\"\r\n  timeout = \"5s\"\r\n\r\n\r\nVersion: 1.3\r\nOS; Linux 2.6.32-696.1.1.el6.x86_64 x86_64\r\n\r\n### Steps to reproduce:\r\nWe are not running telegraf as a service instead we are running through command.\r\ntelegraf --config=/etc/telegraf/telegraf.d/telegraf.conf\r\n\r\n### Expected behavior:\r\nIt should write a data in influx database, as through window i am able to write data in influx db with same conf.\r\n### Actual behavior:\r\n2017-07-14T17:01:17Z D! Attempting connection to output: influxdb\r\n2017-07-14T17:01:17Z D! Successfully connected to output: influxdb\r\n2017-07-14T17:01:17Z I! Starting Telegraf (version 1.3.0)\r\n2017-07-14T17:01:17Z I! Loaded outputs: influxdb\r\n2017-07-14T17:01:17Z I! Loaded inputs: inputs.jolokia inputs.jolokia\r\n...\r\n2017-07-14T17:01:20Z E! Error in plugin [inputs.jolokia]: error performing request: Post http://localhost:8788/jolokia : dial tcp 127.0.0.1:8788: getsockopt: connection refused\r\n\r\n### Additional info:\r\nAs security reason, we have removed the important info from conf , telegraf command and log snippet\r\n\r\n\r\n### Desired behavior:\r\nTelegraf should write a data into Influx db as it is doing correctly in Window OS.\r\n\r\n### Use case: \r\nWe need to monitor the in build cache in Grafana."},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/408200551","html_url":"https://github.com/influxdata/telegraf/issues/3019#issuecomment-408200551","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/3019","id":408200551,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODIwMDU1MQ==","user":{"login":"danielnelson","id":1048079,"node_id":"MDQ6VXNlcjEwNDgwNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/1048079?v=4","gravatar_id":"","url":"https://api.github.com/users/danielnelson","html_url":"https://github.com/danielnelson","followers_url":"https://api.github.com/users/danielnelson/followers","following_url":"https://api.github.com/users/danielnelson/following{/other_user}","gists_url":"https://api.github.com/users/danielnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/danielnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielnelson/subscriptions","organizations_url":"https://api.github.com/users/danielnelson/orgs","repos_url":"https://api.github.com/users/danielnelson/repos","events_url":"https://api.github.com/users/danielnelson/events{/privacy}","received_events_url":"https://api.github.com/users/danielnelson/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T18:58:55Z","updated_at":"2018-07-26T18:58:55Z","author_association":"CONTRIBUTOR","body":"As a real quick overview there are 2 ways to run Jolokia:\r\n- As an agent: with this method you download the jolokia agent jar and load it with the process you wish to monitor.  The Jolokia agent and the monitored Java process run together as one process.  With this method you should use the jolokia2_agent plugin.\r\n- As a proxy: with this method you run a jolokia proxy service which communicates using JMX with the Java process you will monitor.  Use the jolokia2_proxy plugin with this.\r\n\r\nI hope this is helpful but if you require more assistance then I recommend one of the support avenues on the Jolokia site: https://jolokia.org/support.html\r\n\r\nOnce you have Jolokia running and you can access it directly via `http://127.0.0.1:8080/jolokia/` if you still have questions you can ask at the [InfluxData Community](https://community.influxdata.com) site."}}
{"actor":{"display_login":"danielnelson"}}