Monitor Network Connectivity

Hey Team,

Am looking for some best practice advise on something I am needing to implement.
Basically I have two routers, I want to make sure that if traffic stops between both of them for say 10 Minutes they reboot.
For Example.

R1 = 192.168.1.1
R2 = 192.168.1.2

If R1 and R2 Cannot ping each other for 10 Minutes straight, they both reboot.

I see some people saying Watchdog to do it, others saying scripts and other netwatch.
Ultimately what is the most commonly way to perform this kind of monitoring and automation?

Thanks