This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
connectivity_watchdog [2021/08/24 14:56] – rs232 | connectivity_watchdog [2023/06/23 15:44] – [Notes about Connectivity Watchdog] -update Network link hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Connectivity Watchdog ====== | ====== Connectivity Watchdog ====== | ||
- | You might want to monitor your Internet connectivity. The simplest way to do this is to run a custom task script | + | For various reasons, you might want to monitor your Internet connectivity. The simplest way to do this is to run a custom task script. The basic command structure might look something like this: |
- | The basic command would be something like: | + | For example, in the [[admin-sched|Scheduler]] menu, in the** **//Custom 1 field:// |
+ | |||
+ | \\ | ||
<code -> | <code -> | ||
Line 9: | Line 11: | ||
</ | </ | ||
- | (8.8.4.4. is a google DNS server) which would cover the monitoring | + | \\ The 8.8.4.4. |
- | In order to link an action to a success (&& | + | Next, in order to link an action to a success (&& |
- | For example: | + | \\ |
- | ><code -> | + | For example: |
+ | \\ | ||
+ | \\ | ||
+ | <code -> | ||
#if ping fails, restart the wan. | #if ping fails, restart the wan. | ||
/bin/ping -q -c1 8.8.4.4 || / | /bin/ping -q -c1 8.8.4.4 || / | ||
+ | |||
# if ping fails, reboot the device. | # if ping fails, reboot the device. | ||
/bin/ping -q -c1 8.8.4.4 || / | /bin/ping -q -c1 8.8.4.4 || / | ||
+ | |||
# successful pings will log " | # successful pings will log " | ||
- | /bin/ping -q -c1 8.8.4.4 && / | + | /bin/ping -q -c1 8.8.4.4 && / |
</ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Notes about Connectivity Watchdog ===== | ||
+ | |||
+ | This script is a custom one. Please note that there is also a setting in FreshTomato' | ||