chimney in a valley? 1st issue is that. depending upon pitch and where on rise of roof it is and if its attic or rooms below, maybe think about moving the chimney. if there is enough dim it can be corbled over. the pic looks like the rise flashing isn't let into and sealed into the chimney...