User Tools

Site Tools


monitoring_gateway_ping

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
monitoring_gateway_ping [2009/09/24 01:37] – created k2patelmonitoring_gateway_ping [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 28: Line 28:
 netmonitor & netmonitor &
 </code> </code>
 +
 +==== OR ====
 +
 +Following script you should run from the crontab.
 +
 +<code bash | gatewayping.sh>
 +#!/usr/local/bin/bash
 +
 +gtway=24.24.222.25
 +ping -c 5 -t 1 $gtway
 +      if [ $? -ne 0 ]; then
 +         sh /etc/netstart
 +         sh /etc/rc.virtual
 +         echo "$date Gateway issue Detected" >> /var/log/messages
 +      fi
 +</code>
 +
 +
monitoring_gateway_ping.1253756246.txt.gz · Last modified: 2020/08/10 02:30 (external edit)