Sounds like it desperately need a bath.
If it is an outside dog, it sounds like he likes to roll in something stinky. He needs a bath!
My dog vomited one morning and then got diarrhea. I noticed that it was a little bloody. She is not eating and smells terible.