Triggering active galactic nuclei in galaxy clusters