HI Team,
Is there any mysql plugin to monitor myisam crashed tables in Nagios XI ? IF yes can you please let us know how to use that one.
Myisam table crash plugin
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Myisam table crash plugin
@sandeep027, Crashed tables can be tricky to identify. You can try using the following plugin I found:
https://gist.github.com/RPDiep/c71187ba6d8df24fc366
**I applied a couple of fixes to the plugin output to get it to work with XI and attached the modified script to this post. Please use it instead.
Place the plugin in the /usr/local/nagios/libexec/ folder and create a new command in XI:
https://gist.github.com/RPDiep/c71187ba6d8df24fc366
**I applied a couple of fixes to the plugin output to get it to work with XI and attached the modified script to this post. Please use it instead.
Place the plugin in the /usr/local/nagios/libexec/ folder and create a new command in XI:
Also, you need to install the following python module to get it to work:$USER1$/dbcheck.py
pip install mysql-python
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
sandeep027
- Posts: 33
- Joined: Tue May 08, 2018 2:12 am
Re: Myisam table crash plugin
Thanks much bro.. i will check the script in my server and will let you know incase of any issues.
is Everytime we want to run this script to know corrupted tables ? i mean everytime we need to check output file for crashed tables ? or we will get any emails ?
is Everytime we want to run this script to know corrupted tables ? i mean everytime we need to check output file for crashed tables ? or we will get any emails ?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Myisam table crash plugin
@sandeep027, I modified the script to not use the output file. You can use this tutorial to upload the plugin to XI and set it up as a regular service check.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Then you can set up email notification for the service check.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Unless you want to use it on a remote MYSQL server?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Then you can set up email notification for the service check.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Unless you want to use it on a remote MYSQL server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.