All chimneys, smokestacks or similar devices for conveying smoke or hot gases to the outer air and the stoves, furnaces, fire boxes or boilers to which they are connected shall be constructed and maintained in such a manner as not to create a fire hazard.