Within 30 days after a septic tank has been found by the county health department to be so defective as to constitute a health hazard and a declaration thereof has been made by the health department to the owner of the tank, the owner shall either repair the septic tank so as to correct the defective condition or shall, if the county's sewer line is available to the owner's property, connect the premises which had been so served by the septic tank to the county's system.