{"action":"created","comment":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/comments/54983026","id":54983026,"diff_hunk":"@@ -64,10 +65,13 @@ def run\n       critical \"Tried to access #{config[:host]} but failed\"\n     end\n \n+    failed_processes = Set.new\n     @super.processes.each do |process|\n-      critical \"#{process['name']} not running: #{process['statename'].downcase}\" if config[:critical].include?(process['statename'])\n+      failed_processes << \"#{process['name']} not running: #{process['statename'].downcase}\" if config[:critical].include?(process['statename'])\n     end\n \n+    critical \"\\n#{failed_processes.to_a.join(\"\\n\")}\" if not failed_processes.empty?","path":"bin/check-supervisor.rb","position":18,"original_position":18,"commit_id":"54e02d635deb20edcab65a451f3c7e9c30d860ab","original_commit_id":"54e02d635deb20edcab65a451f3c7e9c30d860ab","user":{"login":"eheydrick","id":328689,"avatar_url":"https://avatars.githubusercontent.com/u/328689?v=3","gravatar_id":"","url":"https://api.github.com/users/eheydrick","html_url":"https://github.com/eheydrick","followers_url":"https://api.github.com/users/eheydrick/followers","following_url":"https://api.github.com/users/eheydrick/following{/other_user}","gists_url":"https://api.github.com/users/eheydrick/gists{/gist_id}","starred_url":"https://api.github.com/users/eheydrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eheydrick/subscriptions","organizations_url":"https://api.github.com/users/eheydrick/orgs","repos_url":"https://api.github.com/users/eheydrick/repos","events_url":"https://api.github.com/users/eheydrick/events{/privacy}","received_events_url":"https://api.github.com/users/eheydrick/received_events","type":"User","site_admin":false},"body":"use `unless` instead of `if not` here.","created_at":"2016-03-04T02:30:01Z","updated_at":"2016-03-04T02:30:01Z","html_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7#discussion_r54983026","pull_request_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/comments/54983026"},"html":{"href":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7#discussion_r54983026"},"pull_request":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7","id":60051648,"html_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7","diff_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7.diff","patch_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7.patch","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/7","number":7,"state":"open","locked":false,"title":"Add support to show multiple supervisor processes","user":{"login":"rajasaur","id":108777,"avatar_url":"https://avatars.githubusercontent.com/u/108777?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasaur","html_url":"https://github.com/rajasaur","followers_url":"https://api.github.com/users/rajasaur/followers","following_url":"https://api.github.com/users/rajasaur/following{/other_user}","gists_url":"https://api.github.com/users/rajasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasaur/subscriptions","organizations_url":"https://api.github.com/users/rajasaur/orgs","repos_url":"https://api.github.com/users/rajasaur/repos","events_url":"https://api.github.com/users/rajasaur/events{/privacy}","received_events_url":"https://api.github.com/users/rajasaur/received_events","type":"User","site_admin":false},"body":"Show all the processes that failed as part of supervisor instead of stopping at the first one","created_at":"2016-02-20T15:51:26Z","updated_at":"2016-03-04T02:30:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"291fef8b0b5afc67d850c432b0c3aa1f80d5b481","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7/commits","review_comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7/comments","review_comment_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/7/comments","statuses_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/statuses/54e02d635deb20edcab65a451f3c7e9c30d860ab","head":{"label":"rajasaur:master","ref":"master","sha":"54e02d635deb20edcab65a451f3c7e9c30d860ab","user":{"login":"rajasaur","id":108777,"avatar_url":"https://avatars.githubusercontent.com/u/108777?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasaur","html_url":"https://github.com/rajasaur","followers_url":"https://api.github.com/users/rajasaur/followers","following_url":"https://api.github.com/users/rajasaur/following{/other_user}","gists_url":"https://api.github.com/users/rajasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasaur/subscriptions","organizations_url":"https://api.github.com/users/rajasaur/orgs","repos_url":"https://api.github.com/users/rajasaur/repos","events_url":"https://api.github.com/users/rajasaur/events{/privacy}","received_events_url":"https://api.github.com/users/rajasaur/received_events","type":"User","site_admin":false},"repo":{"id":52153258,"name":"sensu-plugins-supervisor","full_name":"rajasaur/sensu-plugins-supervisor","owner":{"login":"rajasaur","id":108777,"avatar_url":"https://avatars.githubusercontent.com/u/108777?v=3","gravatar_id":"","url":"https://api.github.com/users/rajasaur","html_url":"https://github.com/rajasaur","followers_url":"https://api.github.com/users/rajasaur/followers","following_url":"https://api.github.com/users/rajasaur/following{/other_user}","gists_url":"https://api.github.com/users/rajasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/rajasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajasaur/subscriptions","organizations_url":"https://api.github.com/users/rajasaur/orgs","repos_url":"https://api.github.com/users/rajasaur/repos","events_url":"https://api.github.com/users/rajasaur/events{/privacy}","received_events_url":"https://api.github.com/users/rajasaur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rajasaur/sensu-plugins-supervisor","description":"Sensu plugins for Supervisor","fork":true,"url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor","forks_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/forks","keys_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/teams","hooks_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/hooks","issue_events_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/events","assignees_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/tags","blobs_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/languages","stargazers_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/stargazers","contributors_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/contributors","subscribers_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/subscribers","subscription_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/subscription","commits_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/merges","archive_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/downloads","issues_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/labels{/name}","releases_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/releases{/id}","deployments_url":"https://api.github.com/repos/rajasaur/sensu-plugins-supervisor/deployments","created_at":"2016-02-20T12:55:05Z","updated_at":"2016-02-20T12:55:06Z","pushed_at":"2016-02-20T13:00:08Z","git_url":"git://github.com/rajasaur/sensu-plugins-supervisor.git","ssh_url":"git@github.com:rajasaur/sensu-plugins-supervisor.git","clone_url":"https://github.com/rajasaur/sensu-plugins-supervisor.git","svn_url":"https://github.com/rajasaur/sensu-plugins-supervisor","homepage":"http://sensu-plugins.github.io","size":21,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sensu-plugins:master","ref":"master","sha":"319cd39e0656a165ca9dd2415af2be797d9092a4","user":{"login":"sensu-plugins","id":10713628,"avatar_url":"https://avatars.githubusercontent.com/u/10713628?v=3","gravatar_id":"","url":"https://api.github.com/users/sensu-plugins","html_url":"https://github.com/sensu-plugins","followers_url":"https://api.github.com/users/sensu-plugins/followers","following_url":"https://api.github.com/users/sensu-plugins/following{/other_user}","gists_url":"https://api.github.com/users/sensu-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu-plugins/subscriptions","organizations_url":"https://api.github.com/users/sensu-plugins/orgs","repos_url":"https://api.github.com/users/sensu-plugins/repos","events_url":"https://api.github.com/users/sensu-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/sensu-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":30850570,"name":"sensu-plugins-supervisor","full_name":"sensu-plugins/sensu-plugins-supervisor","owner":{"login":"sensu-plugins","id":10713628,"avatar_url":"https://avatars.githubusercontent.com/u/10713628?v=3","gravatar_id":"","url":"https://api.github.com/users/sensu-plugins","html_url":"https://github.com/sensu-plugins","followers_url":"https://api.github.com/users/sensu-plugins/followers","following_url":"https://api.github.com/users/sensu-plugins/following{/other_user}","gists_url":"https://api.github.com/users/sensu-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu-plugins/subscriptions","organizations_url":"https://api.github.com/users/sensu-plugins/orgs","repos_url":"https://api.github.com/users/sensu-plugins/repos","events_url":"https://api.github.com/users/sensu-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/sensu-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor","description":"Sensu plugins for Supervisor","fork":false,"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor","forks_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/forks","keys_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/teams","hooks_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/hooks","issue_events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/events","assignees_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/tags","blobs_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/languages","stargazers_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/stargazers","contributors_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/contributors","subscribers_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/subscribers","subscription_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/subscription","commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/merges","archive_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/downloads","issues_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/labels{/name}","releases_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/releases{/id}","deployments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/deployments","created_at":"2015-02-16T02:20:36Z","updated_at":"2016-02-22T10:09:16Z","pushed_at":"2016-03-02T16:32:27Z","git_url":"git://github.com/sensu-plugins/sensu-plugins-supervisor.git","ssh_url":"git@github.com:sensu-plugins/sensu-plugins-supervisor.git","clone_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor.git","svn_url":"https://github.com/sensu-plugins/sensu-plugins-supervisor","homepage":"http://sensu-plugins.github.io","size":23,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7"},"html":{"href":"https://github.com/sensu-plugins/sensu-plugins-supervisor/pull/7"},"issue":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/7"},"comments":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/sensu-plugins/sensu-plugins-supervisor/statuses/54e02d635deb20edcab65a451f3c7e9c30d860ab"}}}}