If you need functionality like heartbeat but instead for linux, for windows and Windows Enterprise Cluster Services are to expensive, to powerful or in a two node case doesn't work. Maybe this little Program helps. It monitors another server with udp - packets in and executes scripts in case the nodes goes up or down. Multiple Timeouts can be configured.
These details are provided for information only. No information here is legal advice and should not be used as such.