Portal Alarm

Portal alarm sounds a mental or audible alarm each time a creature of Tiny or larger size passes through the magic portal the spell is cast upon.
Range: Close (25 ft. + 5 ft./2 levels)
Brd 2, Sor 2, Wiz 2

From: Manual of the Planes
Spell Compendium