-
Notifications
You must be signed in to change notification settings - Fork 555
add Galera checks to mysql check plugin #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ed0623c
add Galera checks to mysql check plugin
gurubert 3745672
fancy comments
gurubert b596397
missed one comment…
gurubert 4fffad3
use iteritems() instead of items()
gurubert 1a01553
code cleanup
gurubert 97f04b9
now with @get_parsed_item_data decorator
gurubert dddb5a1
man pages
gurubert cf0cff8
Merge branch 'master' into mysql
gurubert 95d1f2e
replaced values with data
gurubert d9300d4
better wording
gurubert 8437746
remove default has_perfdata
gurubert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| title: MySQL Database: Galera sync status | ||
| agents: linux | ||
| catalog: app/mysql | ||
| license: GPL | ||
| distribution: check_mk | ||
| description: | ||
| This checks monitors if the value of wsrep_sst_donor has changed | ||
| since service discovery or last tabula rasa. | ||
|
|
||
| This check needs the agent plugin {mk_mysql} to be installed. | ||
| Further details about this plugin and monitoring of MySQL can be | ||
| found in the Check_MK online documentation in the article | ||
| "Monitoring MySQL with Check_MK". | ||
|
|
||
| inventory: | ||
| On each host where the agent plugin {mk_mysql} is being installed | ||
| and the MySQL daemon is running one service per instance is being generated | ||
| if the instance has Galera enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| title: MySQL Database: Galera sync status | ||
| agents: linux | ||
| catalog: app/mysql | ||
| license: GPL | ||
| distribution: check_mk | ||
| description: | ||
| This checks monitors the size of the Galera cluster and compares | ||
| it to size size of the cluster at service discovery. | ||
|
|
||
| This check needs the agent plugin {mk_mysql} to be installed. | ||
| Further details about this plugin and monitoring of MySQL can be | ||
| found in the Check_MK online documentation in the article | ||
| "Monitoring MySQL with Check_MK". | ||
|
|
||
| inventory: | ||
| On each host where the agent plugin {mk_mysql} is being installed | ||
| and the MySQL daemon is running one service per instance is being generated | ||
| if the instance has Galera enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| title: MySQL Database: Galera sync status | ||
| agents: linux | ||
| catalog: app/mysql | ||
| license: GPL | ||
| distribution: check_mk | ||
| description: | ||
| This checks monitors the value of the Galera cluster address. | ||
|
|
||
| This check needs the agent plugin {mk_mysql} to be installed. | ||
| Further details about this plugin and monitoring of MySQL can be | ||
| found in the Check_MK online documentation in the article | ||
| "Monitoring MySQL with Check_MK". | ||
|
|
||
| inventory: | ||
| On each host where the agent plugin {mk_mysql} is being installed | ||
| and the MySQL daemon is running one service per instance is being generated | ||
| if the instance has Galera enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| title: MySQL Database: Galera sync status | ||
| agents: linux | ||
| catalog: app/mysql | ||
| license: GPL | ||
| distribution: check_mk | ||
| description: | ||
| This checks monitors the status of the local Galera node and | ||
| returns CRIT when it is not "Primary". | ||
|
|
||
| This check needs the agent plugin {mk_mysql} to be installed. | ||
| Further details about this plugin and monitoring of MySQL can be | ||
| found in the Check_MK online documentation in the article | ||
| "Monitoring MySQL with Check_MK". | ||
|
|
||
| inventory: | ||
| On each host where the agent plugin {mk_mysql} is being installed | ||
| and the MySQL daemon is running one service per instance is being generated | ||
| if the instance has Galera enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| title: MySQL Database: Galera sync status | ||
| agents: linux | ||
| catalog: app/mysql | ||
| license: GPL | ||
| distribution: check_mk | ||
| description: | ||
| For Galera enabled MySQL instances this check monitors the | ||
| state of the sync on the local instance. | ||
|
|
||
| This check needs the agent plugin {mk_mysql} to be installed. | ||
| Further details about this plugin and monitoring of MySQL can be | ||
| found in the Check_MK online documentation in the article | ||
| "Monitoring MySQL with Check_MK". | ||
|
|
||
| inventory: | ||
| On each host where the agent plugin {mk_mysql} is being installed | ||
| and the MySQL daemon is running one service per instance is being generated | ||
| if the instance has Galera enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
values.get('KEY') is not None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this has been written that way because wsrep_provider may also return False if set and then the if does not eval correctly.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure it does:
`