{"action":"created","comment":{"url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/comments/25252404","id":25252404,"diff_hunk":"@@ -18,18 +18,23 @@\n #   - @Andor on github\n #   - Steven Richards - Captainkrtek on github\n #   - Max Vernimmen\n+#   - @burdandrei Added CloudWatch monitoring for Mongodb\n #\n # USAGE\n #\n # See the README.md\n #\n \n+\n import sys\n import time\n+import datetime\n import optparse\n import textwrap\n import re\n import os\n+import commands\n+from boto.ec2.cloudwatch import CloudWatchConnection","path":"check_mongodb.py","position":20,"original_position":20,"commit_id":"e4e3e5d50feaf99fb3f6b410281a403cd0923b17","original_commit_id":"e4e3e5d50feaf99fb3f6b410281a403cd0923b17","user":{"login":"mzupan","id":205373,"avatar_url":"https://avatars.githubusercontent.com/u/205373?v=3","gravatar_id":"","url":"https://api.github.com/users/mzupan","html_url":"https://github.com/mzupan","followers_url":"https://api.github.com/users/mzupan/followers","following_url":"https://api.github.com/users/mzupan/following{/other_user}","gists_url":"https://api.github.com/users/mzupan/gists{/gist_id}","starred_url":"https://api.github.com/users/mzupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzupan/subscriptions","organizations_url":"https://api.github.com/users/mzupan/orgs","repos_url":"https://api.github.com/users/mzupan/repos","events_url":"https://api.github.com/users/mzupan/events{/privacy}","received_events_url":"https://api.github.com/users/mzupan/received_events","type":"User","site_admin":false},"body":"this will break the plugin for a lot of people that don't have boto installed.. we should wrap it in a try/except to enable the check later on or not","created_at":"2015-02-24T13:48:52Z","updated_at":"2015-02-24T13:48:52Z","html_url":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144#discussion_r25252404","pull_request_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/comments/25252404"},"html":{"href":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144#discussion_r25252404"},"pull_request":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144","id":29881917,"html_url":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144","diff_url":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144.diff","patch_url":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144.patch","issue_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/144","number":144,"state":"open","locked":false,"title":"Added Cloudwatch reporting","user":{"login":"burdandrei","id":2526486,"avatar_url":"https://avatars.githubusercontent.com/u/2526486?v=3","gravatar_id":"","url":"https://api.github.com/users/burdandrei","html_url":"https://github.com/burdandrei","followers_url":"https://api.github.com/users/burdandrei/followers","following_url":"https://api.github.com/users/burdandrei/following{/other_user}","gists_url":"https://api.github.com/users/burdandrei/gists{/gist_id}","starred_url":"https://api.github.com/users/burdandrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burdandrei/subscriptions","organizations_url":"https://api.github.com/users/burdandrei/orgs","repos_url":"https://api.github.com/users/burdandrei/repos","events_url":"https://api.github.com/users/burdandrei/events{/privacy}","received_events_url":"https://api.github.com/users/burdandrei/received_events","type":"User","site_admin":false},"body":"for replicaLag, LockPercentage and current_lock","created_at":"2015-02-24T09:30:14Z","updated_at":"2015-02-24T13:48:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42cc62363320130c181e756cdb1379925a02dfa3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144/commits","review_comments_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144/comments","review_comment_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/144/comments","statuses_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/statuses/e4e3e5d50feaf99fb3f6b410281a403cd0923b17","head":{"label":"burdandrei:master","ref":"master","sha":"e4e3e5d50feaf99fb3f6b410281a403cd0923b17","user":{"login":"burdandrei","id":2526486,"avatar_url":"https://avatars.githubusercontent.com/u/2526486?v=3","gravatar_id":"","url":"https://api.github.com/users/burdandrei","html_url":"https://github.com/burdandrei","followers_url":"https://api.github.com/users/burdandrei/followers","following_url":"https://api.github.com/users/burdandrei/following{/other_user}","gists_url":"https://api.github.com/users/burdandrei/gists{/gist_id}","starred_url":"https://api.github.com/users/burdandrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burdandrei/subscriptions","organizations_url":"https://api.github.com/users/burdandrei/orgs","repos_url":"https://api.github.com/users/burdandrei/repos","events_url":"https://api.github.com/users/burdandrei/events{/privacy}","received_events_url":"https://api.github.com/users/burdandrei/received_events","type":"User","site_admin":false},"repo":{"id":31209136,"name":"nagios-plugin-mongodb","full_name":"burdandrei/nagios-plugin-mongodb","owner":{"login":"burdandrei","id":2526486,"avatar_url":"https://avatars.githubusercontent.com/u/2526486?v=3","gravatar_id":"","url":"https://api.github.com/users/burdandrei","html_url":"https://github.com/burdandrei","followers_url":"https://api.github.com/users/burdandrei/followers","following_url":"https://api.github.com/users/burdandrei/following{/other_user}","gists_url":"https://api.github.com/users/burdandrei/gists{/gist_id}","starred_url":"https://api.github.com/users/burdandrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burdandrei/subscriptions","organizations_url":"https://api.github.com/users/burdandrei/orgs","repos_url":"https://api.github.com/users/burdandrei/repos","events_url":"https://api.github.com/users/burdandrei/events{/privacy}","received_events_url":"https://api.github.com/users/burdandrei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/burdandrei/nagios-plugin-mongodb","description":"A Nagios plugin to check the status of MongoDB","fork":true,"url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb","forks_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/forks","keys_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/teams","hooks_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/hooks","issue_events_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/events","assignees_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/tags","blobs_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/languages","stargazers_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/stargazers","contributors_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/contributors","subscribers_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/subscribers","subscription_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/subscription","commits_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/merges","archive_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/downloads","issues_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/burdandrei/nagios-plugin-mongodb/releases{/id}","created_at":"2015-02-23T13:28:11Z","updated_at":"2015-02-23T16:06:52Z","pushed_at":"2015-02-23T16:06:52Z","git_url":"git://github.com/burdandrei/nagios-plugin-mongodb.git","ssh_url":"git@github.com:burdandrei/nagios-plugin-mongodb.git","clone_url":"https://github.com/burdandrei/nagios-plugin-mongodb.git","svn_url":"https://github.com/burdandrei/nagios-plugin-mongodb","homepage":"","size":264,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mzupan:master","ref":"master","sha":"9e277ecea8c69affa38baf3d245c62cbb0b5aa46","user":{"login":"mzupan","id":205373,"avatar_url":"https://avatars.githubusercontent.com/u/205373?v=3","gravatar_id":"","url":"https://api.github.com/users/mzupan","html_url":"https://github.com/mzupan","followers_url":"https://api.github.com/users/mzupan/followers","following_url":"https://api.github.com/users/mzupan/following{/other_user}","gists_url":"https://api.github.com/users/mzupan/gists{/gist_id}","starred_url":"https://api.github.com/users/mzupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzupan/subscriptions","organizations_url":"https://api.github.com/users/mzupan/orgs","repos_url":"https://api.github.com/users/mzupan/repos","events_url":"https://api.github.com/users/mzupan/events{/privacy}","received_events_url":"https://api.github.com/users/mzupan/received_events","type":"User","site_admin":false},"repo":{"id":713714,"name":"nagios-plugin-mongodb","full_name":"mzupan/nagios-plugin-mongodb","owner":{"login":"mzupan","id":205373,"avatar_url":"https://avatars.githubusercontent.com/u/205373?v=3","gravatar_id":"","url":"https://api.github.com/users/mzupan","html_url":"https://github.com/mzupan","followers_url":"https://api.github.com/users/mzupan/followers","following_url":"https://api.github.com/users/mzupan/following{/other_user}","gists_url":"https://api.github.com/users/mzupan/gists{/gist_id}","starred_url":"https://api.github.com/users/mzupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzupan/subscriptions","organizations_url":"https://api.github.com/users/mzupan/orgs","repos_url":"https://api.github.com/users/mzupan/repos","events_url":"https://api.github.com/users/mzupan/events{/privacy}","received_events_url":"https://api.github.com/users/mzupan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mzupan/nagios-plugin-mongodb","description":"A Nagios plugin to check the status of MongoDB","fork":false,"url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb","forks_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/forks","keys_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/teams","hooks_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/hooks","issue_events_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/events","assignees_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/tags","blobs_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/languages","stargazers_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/stargazers","contributors_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/contributors","subscribers_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/subscribers","subscription_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/subscription","commits_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/merges","archive_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/downloads","issues_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/releases{/id}","created_at":"2010-06-10T15:05:39Z","updated_at":"2015-02-23T15:08:36Z","pushed_at":"2014-11-25T15:24:31Z","git_url":"git://github.com/mzupan/nagios-plugin-mongodb.git","ssh_url":"git@github.com:mzupan/nagios-plugin-mongodb.git","clone_url":"https://github.com/mzupan/nagios-plugin-mongodb.git","svn_url":"https://github.com/mzupan/nagios-plugin-mongodb","homepage":"","size":868,"stargazers_count":212,"watchers_count":212,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":145,"mirror_url":null,"open_issues_count":43,"forks":145,"open_issues":43,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144"},"html":{"href":"https://github.com/mzupan/nagios-plugin-mongodb/pull/144"},"issue":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/144"},"comments":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/mzupan/nagios-plugin-mongodb/statuses/e4e3e5d50feaf99fb3f6b410281a403cd0923b17"}}}}