Without a picture to see exactly what you are talking about, it sounds like it might be the oil level sensor. Mine started leaking a couple of years ago (apparently not uncommon). If I remember correctly the repair cost was about $300, and you need to change the oil since you have to drain the oil to replace the sensor.
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
BimmerFest BMW Forum
A forum community dedicated to BMW owners and enthusiasts. Come join the discussion about Bimmerfest events, production numbers, programming, performance, modifications, classifieds, troubleshooting, maintenance, and more! Bringing the BMW community together.