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