Disable VPN based on a track

Hello everyone,

Is there a way to enable a VPN only when a host came down?

I need my VPN to came UP only when a host that I monitor goes down because we having a routing problem when the VPN stays up full-time.