Patches for Add slave check to check_mysql [sf#1006777] [#298]