Add the functionality to check status of the master when MHA calls master_ip_failover_script with the status command