failover sollution

No wiki topic has be able to help me.How do I configure failover with 2 ISP and a lan network.
The two ISP connections are via DHCP client.
If ISP modem is down switches to ISP2 thats work.
but if the internet goes down at ISP1 detects check ping that not.
How can I fix it?

have a check gateway=arp to your default route. Then have a distance 2 to your second default route (and check gateway=arp)

Thanks Samsung172 it working.