{"action":"created","comment":{"url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/comments/85420130","pull_request_review_id":6138850,"id":85420130,"diff_hunk":"@@ -69,6 +69,15 @@ if [[ -e $collectd_conf ]]; then\n     fi\n   done\n \n+  # Older (v13) style -- all-in-one config\n+  if $sudo grep -E 'Server.*rightscale.com' \"$collectd_conf\" 2>/dev/null; then\n+    echo \"RightScale collectd-based monitoring is enabled. Disabling collectd configuration in $collectd_conf.\"\n+    backup_time=$(date -u +%Y%m%d%H%M%S)\n+    $sudo cp \"${collectd_conf}\" \"${collectd_conf}.${backup_time}\"\n+    perl -0777 -pi -e 's/LoadPlugin network.*?rightscale.*?Plugin>//is' \"${collectd_conf}\"","path":"rll-examples/disable-monitoring.sh","position":27,"original_position":27,"commit_id":"5b4c46f56bd10316cd78aaf1ff6b90bf051be110","original_commit_id":"5b4c46f56bd10316cd78aaf1ff6b90bf051be110","user":{"login":"lopaka","id":820060,"avatar_url":"https://avatars.githubusercontent.com/u/820060?v=3","gravatar_id":"","url":"https://api.github.com/users/lopaka","html_url":"https://github.com/lopaka","followers_url":"https://api.github.com/users/lopaka/followers","following_url":"https://api.github.com/users/lopaka/following{/other_user}","gists_url":"https://api.github.com/users/lopaka/gists{/gist_id}","starred_url":"https://api.github.com/users/lopaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopaka/subscriptions","organizations_url":"https://api.github.com/users/lopaka/orgs","repos_url":"https://api.github.com/users/lopaka/repos","events_url":"https://api.github.com/users/lopaka/events{/privacy}","received_events_url":"https://api.github.com/users/lopaka/received_events","type":"User","site_admin":false},"body":"If we require `sudo` in the `cp` command above, will editing the file with perl not require `sudo`?","created_at":"2016-10-27T20:25:58Z","updated_at":"2016-10-27T20:28:28Z","html_url":"https://github.com/rightscale/rightlink_scripts/pull/110#discussion_r85420130","pull_request_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/comments/85420130"},"html":{"href":"https://github.com/rightscale/rightlink_scripts/pull/110#discussion_r85420130"},"pull_request":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110","id":91235767,"html_url":"https://github.com/rightscale/rightlink_scripts/pull/110","diff_url":"https://github.com/rightscale/rightlink_scripts/pull/110.diff","patch_url":"https://github.com/rightscale/rightlink_scripts/pull/110.patch","issue_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/110","number":110,"state":"open","locked":false,"title":"IV-4904 Support for RL 5/older collateral","user":{"login":"psschroeter","id":1106718,"avatar_url":"https://avatars.githubusercontent.com/u/1106718?v=3","gravatar_id":"","url":"https://api.github.com/users/psschroeter","html_url":"https://github.com/psschroeter","followers_url":"https://api.github.com/users/psschroeter/followers","following_url":"https://api.github.com/users/psschroeter/following{/other_user}","gists_url":"https://api.github.com/users/psschroeter/gists{/gist_id}","starred_url":"https://api.github.com/users/psschroeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psschroeter/subscriptions","organizations_url":"https://api.github.com/users/psschroeter/orgs","repos_url":"https://api.github.com/users/psschroeter/repos","events_url":"https://api.github.com/users/psschroeter/events{/privacy}","received_events_url":"https://api.github.com/users/psschroeter/received_events","type":"User","site_admin":false},"body":"At some point we switched from having all plugin configuration in one\r\nfile to multiple files. I don't know when this happened exactly, so\r\nadded a little code to handle the one-file style configuration as well.","created_at":"2016-10-27T16:26:07Z","updated_at":"2016-10-27T20:28:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"decb2687a43c860e2940c27aba953227335227e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110/commits","review_comments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110/comments","review_comment_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/110/comments","statuses_url":"https://api.github.com/repos/rightscale/rightlink_scripts/statuses/5b4c46f56bd10316cd78aaf1ff6b90bf051be110","head":{"label":"rightscale:IV-4904_uninstall_monitoring2","ref":"IV-4904_uninstall_monitoring2","sha":"5b4c46f56bd10316cd78aaf1ff6b90bf051be110","user":{"login":"rightscale","id":27964,"avatar_url":"https://avatars.githubusercontent.com/u/27964?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale","html_url":"https://github.com/rightscale","followers_url":"https://api.github.com/users/rightscale/followers","following_url":"https://api.github.com/users/rightscale/following{/other_user}","gists_url":"https://api.github.com/users/rightscale/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale/subscriptions","organizations_url":"https://api.github.com/users/rightscale/orgs","repos_url":"https://api.github.com/users/rightscale/repos","events_url":"https://api.github.com/users/rightscale/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale/received_events","type":"Organization","site_admin":false},"repo":{"id":28283820,"name":"rightlink_scripts","full_name":"rightscale/rightlink_scripts","owner":{"login":"rightscale","id":27964,"avatar_url":"https://avatars.githubusercontent.com/u/27964?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale","html_url":"https://github.com/rightscale","followers_url":"https://api.github.com/users/rightscale/followers","following_url":"https://api.github.com/users/rightscale/following{/other_user}","gists_url":"https://api.github.com/users/rightscale/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale/subscriptions","organizations_url":"https://api.github.com/users/rightscale/orgs","repos_url":"https://api.github.com/users/rightscale/repos","events_url":"https://api.github.com/users/rightscale/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rightscale/rightlink_scripts","description":"RightScripts for RightScale's RightLink10 (aka RightLinkLite) agent","fork":false,"url":"https://api.github.com/repos/rightscale/rightlink_scripts","forks_url":"https://api.github.com/repos/rightscale/rightlink_scripts/forks","keys_url":"https://api.github.com/repos/rightscale/rightlink_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rightscale/rightlink_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rightscale/rightlink_scripts/teams","hooks_url":"https://api.github.com/repos/rightscale/rightlink_scripts/hooks","issue_events_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rightscale/rightlink_scripts/events","assignees_url":"https://api.github.com/repos/rightscale/rightlink_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rightscale/rightlink_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rightscale/rightlink_scripts/tags","blobs_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rightscale/rightlink_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rightscale/rightlink_scripts/languages","stargazers_url":"https://api.github.com/repos/rightscale/rightlink_scripts/stargazers","contributors_url":"https://api.github.com/repos/rightscale/rightlink_scripts/contributors","subscribers_url":"https://api.github.com/repos/rightscale/rightlink_scripts/subscribers","subscription_url":"https://api.github.com/repos/rightscale/rightlink_scripts/subscription","commits_url":"https://api.github.com/repos/rightscale/rightlink_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rightscale/rightlink_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rightscale/rightlink_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rightscale/rightlink_scripts/merges","archive_url":"https://api.github.com/repos/rightscale/rightlink_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rightscale/rightlink_scripts/downloads","issues_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rightscale/rightlink_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rightscale/rightlink_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rightscale/rightlink_scripts/labels{/name}","releases_url":"https://api.github.com/repos/rightscale/rightlink_scripts/releases{/id}","deployments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/deployments","created_at":"2014-12-21T00:41:29Z","updated_at":"2016-10-26T22:16:54Z","pushed_at":"2016-10-27T16:26:07Z","git_url":"git://github.com/rightscale/rightlink_scripts.git","ssh_url":"git@github.com:rightscale/rightlink_scripts.git","clone_url":"https://github.com/rightscale/rightlink_scripts.git","svn_url":"https://github.com/rightscale/rightlink_scripts","homepage":null,"size":2226,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":1,"forks":13,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"rightscale:master","ref":"master","sha":"248beac3daaa0a3253fd46e838938690f7b4e8ce","user":{"login":"rightscale","id":27964,"avatar_url":"https://avatars.githubusercontent.com/u/27964?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale","html_url":"https://github.com/rightscale","followers_url":"https://api.github.com/users/rightscale/followers","following_url":"https://api.github.com/users/rightscale/following{/other_user}","gists_url":"https://api.github.com/users/rightscale/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale/subscriptions","organizations_url":"https://api.github.com/users/rightscale/orgs","repos_url":"https://api.github.com/users/rightscale/repos","events_url":"https://api.github.com/users/rightscale/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale/received_events","type":"Organization","site_admin":false},"repo":{"id":28283820,"name":"rightlink_scripts","full_name":"rightscale/rightlink_scripts","owner":{"login":"rightscale","id":27964,"avatar_url":"https://avatars.githubusercontent.com/u/27964?v=3","gravatar_id":"","url":"https://api.github.com/users/rightscale","html_url":"https://github.com/rightscale","followers_url":"https://api.github.com/users/rightscale/followers","following_url":"https://api.github.com/users/rightscale/following{/other_user}","gists_url":"https://api.github.com/users/rightscale/gists{/gist_id}","starred_url":"https://api.github.com/users/rightscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightscale/subscriptions","organizations_url":"https://api.github.com/users/rightscale/orgs","repos_url":"https://api.github.com/users/rightscale/repos","events_url":"https://api.github.com/users/rightscale/events{/privacy}","received_events_url":"https://api.github.com/users/rightscale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rightscale/rightlink_scripts","description":"RightScripts for RightScale's RightLink10 (aka RightLinkLite) agent","fork":false,"url":"https://api.github.com/repos/rightscale/rightlink_scripts","forks_url":"https://api.github.com/repos/rightscale/rightlink_scripts/forks","keys_url":"https://api.github.com/repos/rightscale/rightlink_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rightscale/rightlink_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rightscale/rightlink_scripts/teams","hooks_url":"https://api.github.com/repos/rightscale/rightlink_scripts/hooks","issue_events_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rightscale/rightlink_scripts/events","assignees_url":"https://api.github.com/repos/rightscale/rightlink_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rightscale/rightlink_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rightscale/rightlink_scripts/tags","blobs_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rightscale/rightlink_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rightscale/rightlink_scripts/languages","stargazers_url":"https://api.github.com/repos/rightscale/rightlink_scripts/stargazers","contributors_url":"https://api.github.com/repos/rightscale/rightlink_scripts/contributors","subscribers_url":"https://api.github.com/repos/rightscale/rightlink_scripts/subscribers","subscription_url":"https://api.github.com/repos/rightscale/rightlink_scripts/subscription","commits_url":"https://api.github.com/repos/rightscale/rightlink_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rightscale/rightlink_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rightscale/rightlink_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rightscale/rightlink_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rightscale/rightlink_scripts/merges","archive_url":"https://api.github.com/repos/rightscale/rightlink_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rightscale/rightlink_scripts/downloads","issues_url":"https://api.github.com/repos/rightscale/rightlink_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rightscale/rightlink_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rightscale/rightlink_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rightscale/rightlink_scripts/labels{/name}","releases_url":"https://api.github.com/repos/rightscale/rightlink_scripts/releases{/id}","deployments_url":"https://api.github.com/repos/rightscale/rightlink_scripts/deployments","created_at":"2014-12-21T00:41:29Z","updated_at":"2016-10-26T22:16:54Z","pushed_at":"2016-10-27T16:26:07Z","git_url":"git://github.com/rightscale/rightlink_scripts.git","ssh_url":"git@github.com:rightscale/rightlink_scripts.git","clone_url":"https://github.com/rightscale/rightlink_scripts.git","svn_url":"https://github.com/rightscale/rightlink_scripts","homepage":null,"size":2226,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":1,"forks":13,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110"},"html":{"href":"https://github.com/rightscale/rightlink_scripts/pull/110"},"issue":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/110"},"comments":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/rightscale/rightlink_scripts/statuses/5b4c46f56bd10316cd78aaf1ff6b90bf051be110"}}}}
{"actor":{"display_login":"lopaka"}}