How could I get notifications when the full node disconnected?

I found when the full node disconnected, it don’t reconnect automatically. How could I get notifications when the full node disconnected. Further more, there are some auto reconnect solutions for full node?