{"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":10,"created_at":"2017-07-14T17:41:07Z","updated_at":"2018-07-26T13:52:01Z","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/408104691","html_url":"https://github.com/influxdata/telegraf/issues/3019#issuecomment-408104691","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/3019","id":408104691,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODEwNDY5MQ==","user":{"login":"glinton","id":2653109,"node_id":"MDQ6VXNlcjI2NTMxMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/2653109?v=4","gravatar_id":"","url":"https://api.github.com/users/glinton","html_url":"https://github.com/glinton","followers_url":"https://api.github.com/users/glinton/followers","following_url":"https://api.github.com/users/glinton/following{/other_user}","gists_url":"https://api.github.com/users/glinton/gists{/gist_id}","starred_url":"https://api.github.com/users/glinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glinton/subscriptions","organizations_url":"https://api.github.com/users/glinton/orgs","repos_url":"https://api.github.com/users/glinton/repos","events_url":"https://api.github.com/users/glinton/events{/privacy}","received_events_url":"https://api.github.com/users/glinton/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T13:52:01Z","updated_at":"2018-07-26T13:52:01Z","author_association":"CONTRIBUTOR","body":"You will need to run it so it is accessible by telegraf, whether that is \"standalone\" or not, i'm not certain. How are you currently running it?"}}
{"actor":{"display_login":"glinton"}}