{"action":"created","issue":{"url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/3","repository_url":"https://api.github.com/repos/kairosdb/collectd-kairosdb","labels_url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/3/comments","events_url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/3/events","html_url":"https://github.com/kairosdb/collectd-kairosdb/issues/3","id":142017426,"number":3,"title":"collectd-kairosdb does not reconnect","user":{"login":"farzadpanahi","id":3793563,"avatar_url":"https://avatars.githubusercontent.com/u/3793563?v=3","gravatar_id":"","url":"https://api.github.com/users/farzadpanahi","html_url":"https://github.com/farzadpanahi","followers_url":"https://api.github.com/users/farzadpanahi/followers","following_url":"https://api.github.com/users/farzadpanahi/following{/other_user}","gists_url":"https://api.github.com/users/farzadpanahi/gists{/gist_id}","starred_url":"https://api.github.com/users/farzadpanahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farzadpanahi/subscriptions","organizations_url":"https://api.github.com/users/farzadpanahi/orgs","repos_url":"https://api.github.com/users/farzadpanahi/repos","events_url":"https://api.github.com/users/farzadpanahi/events{/privacy}","received_events_url":"https://api.github.com/users/farzadpanahi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-19T02:03:41Z","updated_at":"2016-03-23T01:44:41Z","closed_at":null,"body":"I am not sure if this is the plugin issue or collectd issue. I am using telnet to connect to kairosdb. The problem is that I had my kairosdb instances down for a while and after they came backup collectd is not pushing any data. I need to restart collectd to fix it. \r\n\r\nI am not sure how collectd internals work. Does it open one tcp connection and keep it open or it opens a connection every time? I guess former is true. Somehow I guess the plugin fails to reconnect. \r\n\r\nI looked at the code. \r\nhttps://github.com/kairosdb/collectd-kairosdb/blob/master/kairosdb_writer.py#L226\r\n\r\nIt looks like that if there is an error sending data it would log errors. But I don't see any error logs or anything suggesting anything went wrong. \r\n\r\nAny thoughts? \r\n"},"comment":{"url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/comments/200121092","html_url":"https://github.com/kairosdb/collectd-kairosdb/issues/3#issuecomment-200121092","issue_url":"https://api.github.com/repos/kairosdb/collectd-kairosdb/issues/3","id":200121092,"user":{"login":"farzadpanahi","id":3793563,"avatar_url":"https://avatars.githubusercontent.com/u/3793563?v=3","gravatar_id":"","url":"https://api.github.com/users/farzadpanahi","html_url":"https://github.com/farzadpanahi","followers_url":"https://api.github.com/users/farzadpanahi/followers","following_url":"https://api.github.com/users/farzadpanahi/following{/other_user}","gists_url":"https://api.github.com/users/farzadpanahi/gists{/gist_id}","starred_url":"https://api.github.com/users/farzadpanahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farzadpanahi/subscriptions","organizations_url":"https://api.github.com/users/farzadpanahi/orgs","repos_url":"https://api.github.com/users/farzadpanahi/repos","events_url":"https://api.github.com/users/farzadpanahi/events{/privacy}","received_events_url":"https://api.github.com/users/farzadpanahi/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T01:44:41Z","updated_at":"2016-03-23T01:44:41Z","body":"I have the latest version of the plugin but I am using collectd 5.4.1 (not the latest). I do not see those error logs from collectd when connection was down. You think the error might be on collectd end?"}}