This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
connectivity_watchdog [2021/09/13 16:41] – hogwild | connectivity_watchdog [2024/03/02 18:03] (current) – Fix scheduler 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 in, for example: Administration/ | ||
- | The basic command | + | For various reasons, you might want to monitor your Internet connectivity. The simplest way to do this is to run a custom task script. |
+ | |||
+ | For example, in the [[: | ||
+ | |||
+ | \\ | ||
<code -> | <code -> | ||
/bin/ping -q -c1 8.8.4.4 | /bin/ping -q -c1 8.8.4.4 | ||
</ | </ | ||
- | \\ | ||
- | (8.8.4.4. is a google DNS server) which would cover the monitoring part without performing any action. | ||
- | In order to link an action to a success (&& | + | \\ The 8.8.4.4. IP address is a google DNS server. This scheduled command would allow monitoring without requiring any further interaction with the user. |
+ | |||
+ | Next, in order to link an action to a success (&& | ||
+ | |||
+ | \\ | ||
+ | |||
+ | For example: | ||
- | For example: | ||
- | \\ | ||
<code -> | <code -> | ||
#if ping fails, restart the wan. | #if ping fails, restart the wan. | ||
Line 23: | Line 27: | ||
# successful pings will log " | # successful pings will log " | ||
- | /bin/ping -q -c1 8.8.4.4 && / | + | /bin/ping -q -c1 8.8.4.4 && / |
</ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== Connectivity Watchdog Notes ===== | ||
+ | |||
+ | This script is a custom one. Please note that there is also a setting in FreshTomato' | ||