How to tell if the switch is open or closed on a mains line?
You monitoring circuit can try send a tiny current though the endpoints and if it succeeds the switch is closed. The circuit must be isolated from the mains. 

At the same time the circuit must be able to withstand the full mains voltage. A simple resistor with voltage clamp will do that.

Of course if the clamp voltage is detected the switch is open...