{"action":"created","issue":{"url":"https://api.github.com/repos/naparuba/shinken/issues/1560","labels_url":"https://api.github.com/repos/naparuba/shinken/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/naparuba/shinken/issues/1560/comments","events_url":"https://api.github.com/repos/naparuba/shinken/issues/1560/events","html_url":"https://github.com/naparuba/shinken/issues/1560","id":66461906,"number":1560,"title":"Stats sent to Statsd error : bad lines","user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-05T17:26:31Z","updated_at":"2015-04-07T14:05:43Z","closed_at":null,"body":"I configured my Shinken 2.2 to enable statistics and to send them to a running Statsd node with a Graphite backend but I do not see any metrics in my Whisper database.\r\n\r\nHere are my Statsd logs ... where you can see that there is a space before the counter value ... syntax not accepted by Statsd ! \r\n\r\n``\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.poller-master.core.worker-fork.queue-size: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.poller-master.core.worker-fork.queue-size: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  1026,ms in msg \"knm.shinken22.poller-master.core.wait-ratio: 1026|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  1026,ms in msg \"knm.shinken22.poller-master.core.timeout: 1026|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.ping.args: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.ping.aqulock: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.ping.calling: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.ping.json: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.ping.global: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.get_checks.args: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.get_checks.aqulock: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.get_checks.calling: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.get_checks.json: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  0,ms in msg \"knm.shinken22.scheduler-master.http.get_checks.global: 0|ms\"\r\n5 Apr 17:11:57 - DEBUG: Bad line:  2,ms in msg \"knm.shinken22.poller-master.core.get-new-actions: 2|ms\"\r\n``\r\n"},"comment":{"url":"https://api.github.com/repos/naparuba/shinken/issues/comments/90571155","html_url":"https://github.com/naparuba/shinken/issues/1560#issuecomment-90571155","issue_url":"https://api.github.com/repos/naparuba/shinken/issues/1560","id":90571155,"user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T14:05:43Z","updated_at":"2015-04-07T14:05:43Z","body":"Yes !\r\n\r\nI fixed my problem with : \r\n``\r\n            packet = '%s.%s.%s:%d|ms' % (self.statsd_prefix, self.name, k, v*1000)\r\n``\r\ninstead of\r\n``\r\n            packet = '%s.%s.%s: %d|ms' % (self.statsd_prefix, self.name, k, v*1000)\r\n\r\n``\r\n\r\nNo space character before %d ..."}}