How to determine if hot water heater going bad?

How can one determine if cast iron plumbing water pipes are deteriorating Home was built in 1968 and have city water and sewer have noted discoloration of water City flushed fire hydrants recently and this seemed to make a difference but on occasion still have problem could it be hot water heater Any suggestions

  6 answers