{"action":"created","comment":{"url":"https://api.github.com/repos/tribe29/checkmk/pulls/comments/308728647","pull_request_review_id":268397692,"id":308728647,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwODcyODY0Nw==","diff_hunk":"@@ -250,3 +248,171 @@ check_info['mysql.connections'] = {\n     \"group\": \"mysql_connections\",\n     \"has_perfdata\": True,\n }\n+\n+#.\n+#   .--Galera Sync Status--------------------------------------------------.\n+#   |         ____       _                  ____                           |\n+#   |        / ___| __ _| | ___ _ __ __ _  / ___| _   _ _ __   ___         |\n+#   |       | |  _ / _` | |/ _ \\ '__/ _` | \\___ \\| | | | '_ \\ / __|        |\n+#   |       | |_| | (_| | |  __/ | | (_| |  ___) | |_| | | | | (__         |\n+#   |        \\____|\\__,_|_|\\___|_|  \\__,_| |____/ \\__, |_| |_|\\___|        |\n+#   |                                             |___/                    |\n+#   |                    ____  _        _                                  |\n+#   |                   / ___|| |_ __ _| |_ _   _ ___                      |\n+#   |                   \\___ \\| __/ _` | __| | | / __|                     |\n+#   |                    ___) | || (_| | |_| |_| \\__ \\                     |\n+#   |                   |____/ \\__\\__,_|\\__|\\__,_|___/                     |\n+#   |                                                                      |\n+#   +----------------------------------------------------------------------+\n+\n+def inventory_mysql_galerasync(parsed):\n+    for instance, values in parsed.iteritems():\n+        if values.get('wsrep_provider', 'none') != 'none' and u'wsrep_local_state_comment' in values:\n+            yield instance, {}\n+\n+@get_parsed_item_data\n+def check_mysql_galerasync(item, _no_params, values):\n+    if u'wsrep_local_state_comment' in values:\n+        if values[u'wsrep_local_state_comment'] == 'Synced':\n+            state = 0\n+        else:\n+            state = 2\n+        return (state, 'WSREP local state comment: %s' % values[u'wsrep_local_state_comment'])\n+\n+check_info['mysql.galerasync'] = {\n+    \"inventory_function\"      : inventory_mysql_galerasync,\n+    \"check_function\"          : check_mysql_galerasync,\n+    \"service_description\"     : \"MySQL Galera Sync %s\",\n+    \"has_perfdata\"            : False,","path":"checks/mysql","position":163,"original_position":163,"commit_id":"97f04b93ad75b51019a43e2f9bd95ed195fee70c","original_commit_id":"97f04b93ad75b51019a43e2f9bd95ed195fee70c","user":{"login":"si-23","id":49709828,"node_id":"MDQ6VXNlcjQ5NzA5ODI4","avatar_url":"https://avatars1.githubusercontent.com/u/49709828?v=4","gravatar_id":"","url":"https://api.github.com/users/si-23","html_url":"https://github.com/si-23","followers_url":"https://api.github.com/users/si-23/followers","following_url":"https://api.github.com/users/si-23/following{/other_user}","gists_url":"https://api.github.com/users/si-23/gists{/gist_id}","starred_url":"https://api.github.com/users/si-23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/si-23/subscriptions","organizations_url":"https://api.github.com/users/si-23/orgs","repos_url":"https://api.github.com/users/si-23/repos","events_url":"https://api.github.com/users/si-23/events{/privacy}","received_events_url":"https://api.github.com/users/si-23/received_events","type":"User","site_admin":false},"body":"that's the default, can be removed","created_at":"2019-07-30T13:43:48Z","updated_at":"2019-07-30T13:47:38Z","html_url":"https://github.com/tribe29/checkmk/pull/2#discussion_r308728647","pull_request_url":"https://api.github.com/repos/tribe29/checkmk/pulls/2","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/comments/308728647"},"html":{"href":"https://github.com/tribe29/checkmk/pull/2#discussion_r308728647"},"pull_request":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tribe29/checkmk/pulls/2","id":275427580,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc1NDI3NTgw","html_url":"https://github.com/tribe29/checkmk/pull/2","diff_url":"https://github.com/tribe29/checkmk/pull/2.diff","patch_url":"https://github.com/tribe29/checkmk/pull/2.patch","issue_url":"https://api.github.com/repos/tribe29/checkmk/issues/2","number":2,"state":"open","locked":false,"title":"add Galera checks to mysql check plugin","user":{"login":"gurubert","id":2285147,"node_id":"MDQ6VXNlcjIyODUxNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/2285147?v=4","gravatar_id":"","url":"https://api.github.com/users/gurubert","html_url":"https://github.com/gurubert","followers_url":"https://api.github.com/users/gurubert/followers","following_url":"https://api.github.com/users/gurubert/following{/other_user}","gists_url":"https://api.github.com/users/gurubert/gists{/gist_id}","starred_url":"https://api.github.com/users/gurubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurubert/subscriptions","organizations_url":"https://api.github.com/users/gurubert/orgs","repos_url":"https://api.github.com/users/gurubert/repos","events_url":"https://api.github.com/users/gurubert/events{/privacy}","received_events_url":"https://api.github.com/users/gurubert/received_events","type":"User","site_admin":false},"body":"This pull request adds some MySQL Galera checks.\r\n\r\nNo modification of the agent plugin is necessary as the required variables will be included if the MySQL instance is part of a Galera cluster.","created_at":"2019-05-02T16:10:49Z","updated_at":"2019-07-30T13:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d34d596c022e4fd399efecbafacf25e5b999cd0","assignee":{"login":"si-23","id":49709828,"node_id":"MDQ6VXNlcjQ5NzA5ODI4","avatar_url":"https://avatars1.githubusercontent.com/u/49709828?v=4","gravatar_id":"","url":"https://api.github.com/users/si-23","html_url":"https://github.com/si-23","followers_url":"https://api.github.com/users/si-23/followers","following_url":"https://api.github.com/users/si-23/following{/other_user}","gists_url":"https://api.github.com/users/si-23/gists{/gist_id}","starred_url":"https://api.github.com/users/si-23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/si-23/subscriptions","organizations_url":"https://api.github.com/users/si-23/orgs","repos_url":"https://api.github.com/users/si-23/repos","events_url":"https://api.github.com/users/si-23/events{/privacy}","received_events_url":"https://api.github.com/users/si-23/received_events","type":"User","site_admin":false},"assignees":[{"login":"si-23","id":49709828,"node_id":"MDQ6VXNlcjQ5NzA5ODI4","avatar_url":"https://avatars1.githubusercontent.com/u/49709828?v=4","gravatar_id":"","url":"https://api.github.com/users/si-23","html_url":"https://github.com/si-23","followers_url":"https://api.github.com/users/si-23/followers","following_url":"https://api.github.com/users/si-23/following{/other_user}","gists_url":"https://api.github.com/users/si-23/gists{/gist_id}","starred_url":"https://api.github.com/users/si-23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/si-23/subscriptions","organizations_url":"https://api.github.com/users/si-23/orgs","repos_url":"https://api.github.com/users/si-23/repos","events_url":"https://api.github.com/users/si-23/events{/privacy}","received_events_url":"https://api.github.com/users/si-23/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1362351523,"node_id":"MDU6TGFiZWwxMzYyMzUxNTIz","url":"https://api.github.com/repos/tribe29/checkmk/labels/Component:%20Checks%20&%20Agents","name":"Component: Checks & Agents","color":"fbca04","default":false},{"id":1241077564,"node_id":"MDU6TGFiZWwxMjQxMDc3NTY0","url":"https://api.github.com/repos/tribe29/checkmk/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/tribe29/checkmk/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tribe29/checkmk/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tribe29/checkmk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tribe29/checkmk/issues/2/comments","statuses_url":"https://api.github.com/repos/tribe29/checkmk/statuses/97f04b93ad75b51019a43e2f9bd95ed195fee70c","head":{"label":"HeinleinSupport:mysql","ref":"mysql","sha":"97f04b93ad75b51019a43e2f9bd95ed195fee70c","user":{"login":"HeinleinSupport","id":4901519,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDE1MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4901519?v=4","gravatar_id":"","url":"https://api.github.com/users/HeinleinSupport","html_url":"https://github.com/HeinleinSupport","followers_url":"https://api.github.com/users/HeinleinSupport/followers","following_url":"https://api.github.com/users/HeinleinSupport/following{/other_user}","gists_url":"https://api.github.com/users/HeinleinSupport/gists{/gist_id}","starred_url":"https://api.github.com/users/HeinleinSupport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeinleinSupport/subscriptions","organizations_url":"https://api.github.com/users/HeinleinSupport/orgs","repos_url":"https://api.github.com/users/HeinleinSupport/repos","events_url":"https://api.github.com/users/HeinleinSupport/events{/privacy}","received_events_url":"https://api.github.com/users/HeinleinSupport/received_events","type":"Organization","site_admin":false},"repo":{"id":184579655,"node_id":"MDEwOlJlcG9zaXRvcnkxODQ1Nzk2NTU=","name":"checkMK","full_name":"HeinleinSupport/checkMK","private":false,"owner":{"login":"HeinleinSupport","id":4901519,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDE1MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4901519?v=4","gravatar_id":"","url":"https://api.github.com/users/HeinleinSupport","html_url":"https://github.com/HeinleinSupport","followers_url":"https://api.github.com/users/HeinleinSupport/followers","following_url":"https://api.github.com/users/HeinleinSupport/following{/other_user}","gists_url":"https://api.github.com/users/HeinleinSupport/gists{/gist_id}","starred_url":"https://api.github.com/users/HeinleinSupport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeinleinSupport/subscriptions","organizations_url":"https://api.github.com/users/HeinleinSupport/orgs","repos_url":"https://api.github.com/users/HeinleinSupport/repos","events_url":"https://api.github.com/users/HeinleinSupport/events{/privacy}","received_events_url":"https://api.github.com/users/HeinleinSupport/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HeinleinSupport/checkMK","description":"CheckMK - Best-in-class infrastructure & application monitoring","fork":true,"url":"https://api.github.com/repos/HeinleinSupport/checkMK","forks_url":"https://api.github.com/repos/HeinleinSupport/checkMK/forks","keys_url":"https://api.github.com/repos/HeinleinSupport/checkMK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HeinleinSupport/checkMK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HeinleinSupport/checkMK/teams","hooks_url":"https://api.github.com/repos/HeinleinSupport/checkMK/hooks","issue_events_url":"https://api.github.com/repos/HeinleinSupport/checkMK/issues/events{/number}","events_url":"https://api.github.com/repos/HeinleinSupport/checkMK/events","assignees_url":"https://api.github.com/repos/HeinleinSupport/checkMK/assignees{/user}","branches_url":"https://api.github.com/repos/HeinleinSupport/checkMK/branches{/branch}","tags_url":"https://api.github.com/repos/HeinleinSupport/checkMK/tags","blobs_url":"https://api.github.com/repos/HeinleinSupport/checkMK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HeinleinSupport/checkMK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HeinleinSupport/checkMK/git/refs{/sha}","trees_url":"https://api.github.com/repos/HeinleinSupport/checkMK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HeinleinSupport/checkMK/statuses/{sha}","languages_url":"https://api.github.com/repos/HeinleinSupport/checkMK/languages","stargazers_url":"https://api.github.com/repos/HeinleinSupport/checkMK/stargazers","contributors_url":"https://api.github.com/repos/HeinleinSupport/checkMK/contributors","subscribers_url":"https://api.github.com/repos/HeinleinSupport/checkMK/subscribers","subscription_url":"https://api.github.com/repos/HeinleinSupport/checkMK/subscription","commits_url":"https://api.github.com/repos/HeinleinSupport/checkMK/commits{/sha}","git_commits_url":"https://api.github.com/repos/HeinleinSupport/checkMK/git/commits{/sha}","comments_url":"https://api.github.com/repos/HeinleinSupport/checkMK/comments{/number}","issue_comment_url":"https://api.github.com/repos/HeinleinSupport/checkMK/issues/comments{/number}","contents_url":"https://api.github.com/repos/HeinleinSupport/checkMK/contents/{+path}","compare_url":"https://api.github.com/repos/HeinleinSupport/checkMK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HeinleinSupport/checkMK/merges","archive_url":"https://api.github.com/repos/HeinleinSupport/checkMK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HeinleinSupport/checkMK/downloads","issues_url":"https://api.github.com/repos/HeinleinSupport/checkMK/issues{/number}","pulls_url":"https://api.github.com/repos/HeinleinSupport/checkMK/pulls{/number}","milestones_url":"https://api.github.com/repos/HeinleinSupport/checkMK/milestones{/number}","notifications_url":"https://api.github.com/repos/HeinleinSupport/checkMK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HeinleinSupport/checkMK/labels{/name}","releases_url":"https://api.github.com/repos/HeinleinSupport/checkMK/releases{/id}","deployments_url":"https://api.github.com/repos/HeinleinSupport/checkMK/deployments","created_at":"2019-05-02T12:47:00Z","updated_at":"2019-07-29T14:48:03Z","pushed_at":"2019-07-29T14:50:48Z","git_url":"git://github.com/HeinleinSupport/checkMK.git","ssh_url":"git@github.com:HeinleinSupport/checkMK.git","clone_url":"https://github.com/HeinleinSupport/checkMK.git","svn_url":"https://github.com/HeinleinSupport/checkMK","homepage":"https://mathias-kettner.com/","size":1770576,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"tribe29:master","ref":"master","sha":"7248a2c3a83777bbdc4ed519e61abfd423230ffe","user":{"login":"tribe29","id":47812383,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODEyMzgz","avatar_url":"https://avatars2.githubusercontent.com/u/47812383?v=4","gravatar_id":"","url":"https://api.github.com/users/tribe29","html_url":"https://github.com/tribe29","followers_url":"https://api.github.com/users/tribe29/followers","following_url":"https://api.github.com/users/tribe29/following{/other_user}","gists_url":"https://api.github.com/users/tribe29/gists{/gist_id}","starred_url":"https://api.github.com/users/tribe29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tribe29/subscriptions","organizations_url":"https://api.github.com/users/tribe29/orgs","repos_url":"https://api.github.com/users/tribe29/repos","events_url":"https://api.github.com/users/tribe29/events{/privacy}","received_events_url":"https://api.github.com/users/tribe29/received_events","type":"Organization","site_admin":false},"repo":{"id":171669368,"node_id":"MDEwOlJlcG9zaXRvcnkxNzE2NjkzNjg=","name":"checkmk","full_name":"tribe29/checkmk","private":false,"owner":{"login":"tribe29","id":47812383,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODEyMzgz","avatar_url":"https://avatars2.githubusercontent.com/u/47812383?v=4","gravatar_id":"","url":"https://api.github.com/users/tribe29","html_url":"https://github.com/tribe29","followers_url":"https://api.github.com/users/tribe29/followers","following_url":"https://api.github.com/users/tribe29/following{/other_user}","gists_url":"https://api.github.com/users/tribe29/gists{/gist_id}","starred_url":"https://api.github.com/users/tribe29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tribe29/subscriptions","organizations_url":"https://api.github.com/users/tribe29/orgs","repos_url":"https://api.github.com/users/tribe29/repos","events_url":"https://api.github.com/users/tribe29/events{/privacy}","received_events_url":"https://api.github.com/users/tribe29/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tribe29/checkmk","description":"Checkmk - Best-in-class infrastructure & application monitoring","fork":false,"url":"https://api.github.com/repos/tribe29/checkmk","forks_url":"https://api.github.com/repos/tribe29/checkmk/forks","keys_url":"https://api.github.com/repos/tribe29/checkmk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tribe29/checkmk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tribe29/checkmk/teams","hooks_url":"https://api.github.com/repos/tribe29/checkmk/hooks","issue_events_url":"https://api.github.com/repos/tribe29/checkmk/issues/events{/number}","events_url":"https://api.github.com/repos/tribe29/checkmk/events","assignees_url":"https://api.github.com/repos/tribe29/checkmk/assignees{/user}","branches_url":"https://api.github.com/repos/tribe29/checkmk/branches{/branch}","tags_url":"https://api.github.com/repos/tribe29/checkmk/tags","blobs_url":"https://api.github.com/repos/tribe29/checkmk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tribe29/checkmk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tribe29/checkmk/git/refs{/sha}","trees_url":"https://api.github.com/repos/tribe29/checkmk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tribe29/checkmk/statuses/{sha}","languages_url":"https://api.github.com/repos/tribe29/checkmk/languages","stargazers_url":"https://api.github.com/repos/tribe29/checkmk/stargazers","contributors_url":"https://api.github.com/repos/tribe29/checkmk/contributors","subscribers_url":"https://api.github.com/repos/tribe29/checkmk/subscribers","subscription_url":"https://api.github.com/repos/tribe29/checkmk/subscription","commits_url":"https://api.github.com/repos/tribe29/checkmk/commits{/sha}","git_commits_url":"https://api.github.com/repos/tribe29/checkmk/git/commits{/sha}","comments_url":"https://api.github.com/repos/tribe29/checkmk/comments{/number}","issue_comment_url":"https://api.github.com/repos/tribe29/checkmk/issues/comments{/number}","contents_url":"https://api.github.com/repos/tribe29/checkmk/contents/{+path}","compare_url":"https://api.github.com/repos/tribe29/checkmk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tribe29/checkmk/merges","archive_url":"https://api.github.com/repos/tribe29/checkmk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tribe29/checkmk/downloads","issues_url":"https://api.github.com/repos/tribe29/checkmk/issues{/number}","pulls_url":"https://api.github.com/repos/tribe29/checkmk/pulls{/number}","milestones_url":"https://api.github.com/repos/tribe29/checkmk/milestones{/number}","notifications_url":"https://api.github.com/repos/tribe29/checkmk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tribe29/checkmk/labels{/name}","releases_url":"https://api.github.com/repos/tribe29/checkmk/releases{/id}","deployments_url":"https://api.github.com/repos/tribe29/checkmk/deployments","created_at":"2019-02-20T12:29:54Z","updated_at":"2019-07-30T13:41:10Z","pushed_at":"2019-07-30T13:41:06Z","git_url":"git://github.com/tribe29/checkmk.git","ssh_url":"git@github.com:tribe29/checkmk.git","clone_url":"https://github.com/tribe29/checkmk.git","svn_url":"https://github.com/tribe29/checkmk","homepage":"https://checkmk.com/","size":1779261,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":25,"open_issues":10,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/2"},"html":{"href":"https://github.com/tribe29/checkmk/pull/2"},"issue":{"href":"https://api.github.com/repos/tribe29/checkmk/issues/2"},"comments":{"href":"https://api.github.com/repos/tribe29/checkmk/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tribe29/checkmk/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tribe29/checkmk/statuses/97f04b93ad75b51019a43e2f9bd95ed195fee70c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"si-23"}}