The smell emitted by the plant is irritating for mice and they try to avoid them. Poo from bobcats, snakes, and cats are also effective mice deterrent because of their distinct smell. That smell scares mice away due to their natural fear on their predators. Pet stores have products that contain this unique smell which you can buy to spread over your house to keep mice away.
1) A myth exists that a cucumber smell comes from rattlesnakes. 2) The Tongue Mountain Range is known for harboring rattlesnakes. 3) The only place I have ever smelled random cucumber is the Tongue Mountain Range. Which leads me to believe the tiny minority, that rattlesnakes do in fact give off a cucumber smell.
A snake may appear threatening when it flicks its tongue out, but it's simply trying to get a better sense of its surroundings by tasting the air. To compensate for their poor eyesight and limited hearing, most snakes have an excellent sense of smell. Although snakes have nostrils, they also use their tongues to pick up the scent of nearby prey or predators. When a snake flicks its tongue, it collects odors that are present in miniscule moisture particles floating through the air. The snake darts the tongue into its Jacobson's organ, which is located inside the roof of the snake's mouth.