It's the oil pressure switch on the crank case behind the air filter. It is the switch for the light (which explains why it came on) and they are bad about cracking around the top and spraying oil all over the back of the engine. Tou can change it with the engine in the car, but it's a mother to get to.
I shamelessly took this picture from "Simon's Porsche 911SC Site"