add Master-Slave Script.

this Script make nagios monitor service can still work when master services died