IPsec health check

I don’t see a way to restart based on failed pings in the vpn address range. Did I miss something, or any ideas? If this is not a feature, I can buy an ac plug that has a ping outlet power on/off.