http://www.koetterfire.com/leak-detection-systems/

A tad pricey. but very effective.
I have just a simple detector in a pan under my water heater (similar to those for Leibert units) this controls a bell and a normally open solenoid on my feed line.

I'm on a well. A broken water heater could put a huge amount of water in my basement.