1 #!/bin/sh -e
2 echo -n - mysql.slave_lagging
3 mysql -ureader -Bse "show slave status\\G" | grep Seconds_Behind_Master | cut -d: -f 2