I think that a post-op infection is unlikely this far out from the date of surgery. Plus, if it were related to the surgery, the problem would have been at the actual incision site, not throughout the coat.
Cephalexin is a very good choice for skin infections, however, I do not understand the use of Rimadyl in this case. Rimadyl is in a class of drug called non steroidal anti-inflammatory (NSAID), meant to be taken for pain and inflammation. It is great for painful conditions like post-op pain, arthritis or other orthopedic pain, but it is not going to do much to alleivate irritated skin. A better choice to help reduce irritation and inflmmation would be a steroid or antihistamine.
Also, if the dog was found to found to have hypothyroidism (low thyoroid), then he really should be maintained on thyroid hormone supplementation. If he is not already on thyroid hormone, I would talk to your vet about starting hiim on it immediately. While the low thyroid is not likely the primary problem that is setting off the skin inflammation, it certainly does not help, as low thyroid can cause chronic skin infections and hair loss. Also, the dog's overall quality of life would be improved by stablizing thyroid levels, as thyroid hormone is a very important metabolic mediator.
Returning mainly to the skin problem, I feel strongly that the main issue is skin allergy, given the history you provided, combined with the time of year. We are currently in the midst of one of the peak allergy seasons. Howeveer, there could also be a component in the dog's diet that is contributing to the allergy. For more information on both environmental and food related skin allergies, what causes them, and how to treat them, please refer to this indepth article I recently wrote about the topic:
http://www.maybeckvet.com/skinallergies.html
Thank for posting oon JustAnswer, and best of luck to you. Please feel free to let me know if I may be of further assistance.
Best of luck to you, and thank you for choosing JustAnswer! Please do not hesitate to let me know if I may be of any further assistance.
Sincerely,
Roger L. Welton, DVM
President, Maybeck Animal Hospital
Author, "Canine And Feline 101"