We had fungus gnats on a plumeria plant that we overwintered in the kitchen. My husband put glue boards on top of the soil and then fitted a piece of styrofoam over the stem of the plant. They couldn't escape and eventually got stuck on the glue boards.