Repair or replace

This really is a decision only you can make.  Repairing the odd couple of timber posts though will often prove to be the best approach since broken/rotten posts often can take down an entire fence run.  Lots of customers opt for an inexpensive repair and then replace the entire fence run another time.