Patches for check_mysql - allow until condition on a slave [sf#3351505] [#1112]