monitoring_gateway_ping
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
monitoring_gateway_ping [2009/09/24 01:37] – created k2patel | monitoring_gateway_ping [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 28: | Line 28: | ||
netmonitor & | netmonitor & | ||
</ | </ | ||
+ | |||
+ | ==== OR ==== | ||
+ | |||
+ | Following script you should run from the crontab. | ||
+ | |||
+ | <code bash | gatewayping.sh> | ||
+ | # | ||
+ | |||
+ | gtway=24.24.222.25 | ||
+ | ping -c 5 -t 1 $gtway | ||
+ | if [ $? -ne 0 ]; then | ||
+ | sh / | ||
+ | sh / | ||
+ | echo "$date Gateway issue Detected" | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ |
monitoring_gateway_ping.1253756246.txt.gz · Last modified: 2020/08/10 02:30 (external edit)