script to quickly check if lag is on master or slave