When the Town can require a repair
By-law 562 gives clear powers to the fire safety department. Article 7 allows its members to order that a condition constituting a fire hazard be remedied. Article 8 adds that, failing that, the work may be done by the Town, at the expense of the owner, tenant or occupant. And article 13 states that no acquired right prevents the application of the prevention rules.
For a chimney that is no longer used, article 27 goes further: it must be closed at the base and at the top with a non-combustible material, and the authority may decide that it must be restored or demolished within a reasonable time. Better to deal with problems before it comes to that.