{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu/issues/980","labels_url":"https://api.github.com/repos/sensu/sensu/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu/issues/980/comments","events_url":"https://api.github.com/repos/sensu/sensu/issues/980/events","html_url":"https://github.com/sensu/sensu/issues/980","id":89618626,"number":980,"title":"JIT Client subscriptions Issues","user":{"login":"luisdalves","id":11091389,"avatar_url":"https://avatars.githubusercontent.com/u/11091389?v=3","gravatar_id":"","url":"https://api.github.com/users/luisdalves","html_url":"https://github.com/luisdalves","followers_url":"https://api.github.com/users/luisdalves/followers","following_url":"https://api.github.com/users/luisdalves/following{/other_user}","gists_url":"https://api.github.com/users/luisdalves/gists{/gist_id}","starred_url":"https://api.github.com/users/luisdalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisdalves/subscriptions","organizations_url":"https://api.github.com/users/luisdalves/orgs","repos_url":"https://api.github.com/users/luisdalves/repos","events_url":"https://api.github.com/users/luisdalves/events{/privacy}","received_events_url":"https://api.github.com/users/luisdalves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T17:30:57Z","updated_at":"2015-06-19T17:46:36Z","closed_at":null,"body":"Hello,\r\n\r\nWhen a JIT client is present is obtaining the same subscriptions that real client:\r\n\r\nExample:\r\n00-client.json [ Host running sensu-client ]\r\n```\r\n{\r\n  \"client\": {\r\n    \"name\": \"host.e.example.com\",\r\n    \"address\": \"127.0.0.1\",\r\n    \"subscriptions\": [\r\n      \"system-metrics\",\r\n      \"deb-system-checks\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n00-jit-client.json \r\n```\r\n{\r\n  \"client\": {\r\n    \"name\": \"us-west-2.elb.amazonaws.com\",\r\n    \"address\": \"unknown\",\r\n    \"subscriptions\": [],\r\n    \"keepalives\": false\r\n  }\r\n}\r\n```\r\n98-elb-checks.json\r\n```\r\n{\r\n  \"checks\": {\r\n    \"check_elb_west_2_middleware_api_health\": {\r\n      \"command\": \"/etc/sensu/plugins/check-elb-health.rb -r us-west-2 -n middleware-api\",\r\n      \"subscribers\": [],\r\n      \"source\": \"us-west-2.elb.amazonaws.com\",\r\n      \"interval\": 60,\r\n      \"handlers\": [\"flapjack\"]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nSENSU API Response [ curl http://sensu-api:4567/clients/us-west-2.elb.amazonaws.com ]\r\n```\r\n{\r\n  \"timestamp\": 1434728021,\r\n  \"version\": \"0.19.2\",\r\n  \"keepalives\": false,\r\n  \"subscriptions\": [\r\n    \"system-metrics\",\r\n    \"deb-system-checks\"\r\n  ],\r\n  \"address\": \"unknown\",\r\n  \"name\": \"us-west-2.elb.amazonaws.com\"\r\n}\r\n```\r\nSensu Version\r\n```\r\ndpkg -l | grep sensu\r\nii  sensu                            0.19.2-1                            amd64        A monitoring framework that aims to be simple, malleable, and scalable.\r\n```"},"comment":{"url":"https://api.github.com/repos/sensu/sensu/issues/comments/113585619","html_url":"https://github.com/sensu/sensu/issues/980#issuecomment-113585619","issue_url":"https://api.github.com/repos/sensu/sensu/issues/980","id":113585619,"user":{"login":"portertech","id":149630,"avatar_url":"https://avatars.githubusercontent.com/u/149630?v=3","gravatar_id":"","url":"https://api.github.com/users/portertech","html_url":"https://github.com/portertech","followers_url":"https://api.github.com/users/portertech/followers","following_url":"https://api.github.com/users/portertech/following{/other_user}","gists_url":"https://api.github.com/users/portertech/gists{/gist_id}","starred_url":"https://api.github.com/users/portertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portertech/subscriptions","organizations_url":"https://api.github.com/users/portertech/orgs","repos_url":"https://api.github.com/users/portertech/repos","events_url":"https://api.github.com/users/portertech/events{/privacy}","received_events_url":"https://api.github.com/users/portertech/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T17:46:36Z","updated_at":"2015-06-19T17:46:36Z","body":"You do not configure JIT clients with JSON. Your client configs are simply merging to create a single client config. "}}