Amit's Blog
  • Home
  • Videos
  • All Posts
  • Tags
  • About Me
Subscribe
Tagged

mysql replication monitor

A collection of 1 post

mysql

Shell Script to Check the Status of MySQL Replication

!/bin/bash emailAddress="emailtoNotify@domain.com [emailAddress=%22emailtoNotify@domain.com]" cmd=mysql -e 'show slave status\G' | grep Slave_SQL_Running | awk '{print $2}' if [ "$cmd" == "No" ];then         MSG="Mysql Replication Broken on hostname, please check asap"         echo

  • amit
amit Jun 30, 2012 • 1 min read
Amit's Blog © 2025
Powered by Ghost