MySQL slave lag monitoring script
Installation
- You need to place this in somewhere in the server.
- change the [path] inside the script.
- create mysql user who has access to mysql database or user who has grants for replication status
- change the user inside the script
Pre-required packages
- sys
- MySQLdb
- MySQLdb.cursors
- smtplib
- os
- datetime
- time
- logging