Home Directory Plugins Databases MySQL Check MySQL Slave

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check MySQL Slave

Rating
2 votes
Favoured:
0
Current Version
0.0.1
Last Release Date
2012-07-12
License
MIT
Hits
67194
Files:
FileDescription
check_mysqlslave.shcheck_mysqlslave
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This is an update of check_mysqlslaverun.sh.

In addition to ensuring that the slave is running, it will also record the seconds behind, and issue a WARNING when the slave is more than 10 seconds behind.
Pretty simple to use.

ARG1 = username
ARG2 = password

$USER1$/check_mysqlslave.sh -u $ARG1$ -p $ARG2$ -H $HOSTADDRESS$

Make sure the user specified has either SUPER or REPLICATION CLIENT privileges.
Reviews (2)
See above review.

This script is now redundant: it's built into the nagios-plugins published 'check_mysql' package, which is tested and maintained. Use 'check_mysql -S' and review the options desired.
byjtnix, January 7, 2013
very basic options and script is completely not portable nor does it feature a default exit code / message if any of the enclosed script fails to path and run. Spent hours troubleshooting dreaded 'NRPE: Unable to read output' before getting it to work. Basically ended up rewriting the thing from scratch.