Skip to content

Instantly share code, notes, and snippets.

@jemiam
jemiam / mysql_check_repl.sh
Last active October 6, 2016 08:07
mysql replication check script
#!/bin/bash
# replication delay threshold
TH_SECONDS_BEHIND=60
set -euo pipefail
IFS=$'\n\t'
SERVER=$(hostname -f)
ERRORS=()