Section 7. If, in the opinion of such inspector of buildings, if any, otherwise of the board of health, of a town, the holder of a license or certificate violates any statute, ordinance, by-law, rule or regulation relative to plumbing and gas fitting, said inspector or board of health of the town where such violation is committed shall give notice thereof to the examiners.