If any officer fails or neglects to perform any of the duties required of him by this Code, upon being required so to do by any person interested in the matter, and for the failure or neglect to perform that duty there is no other or specific penalty provided in this Code, he shall be liable to a fine of not less than $10 nor more than $500, to be recovered in a civil action in the circuit court of the proper county, and may be removed from office at the discretion of the court. Any officer who knowingly violates any of the provisions of this Code, for the violation of which there is no other specific penalty provided in this Code, shall be liable to a fine not less than $10 nor more than $1,000 to be recovered in a civil action in the name of the People of the State of Illinois, in any court having jurisdiction and may be removed from office at the discretion of the court. Fines when recovered shall be paid into the county treasury.
35 ILCS 200/25-25