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/09/13 16:41] – hogwild | connectivity_watchdog [2021/12/29 19:32] – [Notes about Connectivity Watchdog Script]-added link to Network menu 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/ | 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/ | ||
Line 8: | Line 8: | ||
/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. | + | \\ (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 (&& | 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 25: | ||
# 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 Script ===== | ||
+ | |||
+ | This script is a custom one. Please note that there is also a setting in the // | ||